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()))
158 if(!$this->group_obj->isRegistrationUnlimited())
163 $this->
xmlEndTag(
'temporarilyAvailable');
168 $attrs[
'enabled'] = $this->group_obj->isMembershipLimited() ?
'Yes' :
'No';
169 $this->
xmlElement(
'maxMembers',$attrs,$this->group_obj->getMaxMembers());
176 foreach($this->group_obj->getGroupAdminIds() as $id)
178 $attr[
'id'] =
'il_'.$this->ilias->getSetting(
'inst_id').
'_usr_'.$id;
179 $attr[
'notification'] = $this->participants->isNotificationEnabled($id) ?
'Yes' :
'No';
188 foreach($this->group_obj->getGroupMemberIds() as $id)
190 if(!$this->group_obj->isAdmin($id))
192 $attr[
'id'] =
'il_'.$this->ilias->getSetting(
'inst_id').
'_usr_'.$id;
206 $this->attach_users = $value ?
true :
false;