From cb422ef6277b71215b0ee072e8a797c9fb702c57 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 14 Jul 2018 11:01:40 +0200 Subject: [PATCH] Added virtual directory property --- classes/models/GroupInfo.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/classes/models/GroupInfo.php b/classes/models/GroupInfo.php index 2cfb379..0ef295d 100644 --- a/classes/models/GroupInfo.php +++ b/classes/models/GroupInfo.php @@ -35,6 +35,7 @@ class GroupInfo extends BaseUniqueObject { private $membership_level = -1; private $visiblity = -1; private $registration_level = -1; + private $virtual_directory; //Get and set the name of group public function set_name(string $name){ @@ -128,4 +129,17 @@ class GroupInfo extends BaseUniqueObject { public function get_registration_level() : int { return $this->registration_level; } + + //Get and set virtual directory + public function set_virtual_directory(int $virtual_directory){ + $this->virtual_directory = $virtual_directory; + } + + public function has_virtual_directory() : bool { + return $this->virtual_directory > -1; + } + + public function get_virtual_directory() : int { + return $this->virtual_directory; + } } \ No newline at end of file