25 include_once
"./classes/class.ilXmlWriter.php";
26 include_once(
'./Modules/Group/classes/class.ilGroupParticipants.php');
57 $this->EXPORT_VERSION =
"3";
70 if ($this->attach_users)
87 $this->
xmlSetDtdDef(
"<!DOCTYPE group PUBLIC \"-//ILIAS//DTD Group//EN\" \"".ILIAS_HTTP_PATH.
"/xml/ilias_group_3_10.dtd\">");
88 $this->
xmlSetGenCmt(
"Export of ILIAS group ". $this->group_obj->getId().
" of installation ".$this->ilias->getSetting(
'inst_id').
".");
91 $attrs[
"exportVersion"] = $this->EXPORT_VERSION;
92 $attrs[
"id"] =
"il_".$this->ilias->getSetting(
'inst_id').
'_grp_'.$this->group_obj->getId();
94 switch($this->group_obj->readGroupStatus())
97 $attrs[
'type'] =
'open';
102 $attrs[
'type'] =
'closed';
113 $this->
xmlElement(
'title',null,$this->group_obj->getTitle());
115 if($desc = $this->group_obj->getDescription())
120 $attr[
'id'] =
'il_'.$this->ilias->getSetting(
'inst_id').
'_usr_'.$this->group_obj->getOwner();
123 $this->
xmlElement(
'information',null,$this->group_obj->getInformation());
130 switch($this->group_obj->getRegistrationType())
133 $attrs[
'type'] =
'direct';
136 $attrs[
'type'] =
'confirmation';
139 $attrs[
'type'] =
'password';
144 $attrs[
'type'] =
'disabled';
147 $attrs[
'waitingList'] = $this->group_obj->isWaitingListEnabled() ?
'Yes' :
'No';
151 if(strlen($pwd = $this->group_obj->getPassword()))
155 if($timest = $this->group_obj->getExpirationTimestamp())
162 if(!$this->group_obj->isRegistrationUnlimited())
167 $this->
xmlEndTag(
'temporarilyAvailable');
172 $attrs[
'enabled'] = $this->group_obj->isMembershipLimited() ?
'Yes' :
'No';
173 $this->
xmlElement(
'maxMembers',$attrs,$this->group_obj->getMaxMembers());
180 foreach($this->group_obj->getGroupAdminIds() as $id)
182 $attr[
'id'] =
'il_'.$this->ilias->getSetting(
'inst_id').
'_usr_'.$id;
183 $attr[
'notification'] = $this->participants->isNotificationEnabled($id) ?
'Yes' :
'No';
192 foreach($this->group_obj->getGroupMemberIds() as $id)
194 if(!$this->group_obj->isAdmin($id))
196 $attr[
'id'] =
'il_'.$this->ilias->getSetting(
'inst_id').
'_usr_'.$id;
210 $this->attach_users = $value ?
true :
false;