38 include_once
"./classes/class.ilXmlWriter.php";
62 $this->user_id = $ilUser->getId();
73 $this->role_type = $type;
80 if (!is_array($this->roles))
85 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
86 include_once
'./webservice/soap/classes/class.ilObjectXMLWriter.php';
88 foreach ($this->roles as $role)
91 if (!empty($this->role_type) && strcasecmp ($this->role_type, $role[
"role_type"]) != 0 )
95 if ($rbacreview->isRoleDeleted($role[
"obj_id"]))
100 $attrs = array(
'role_type' => ucwords($role[
"role_type"]),
101 'id' =>
"il_".IL_INST_ID.
"_role_".$role[
"obj_id"]);
107 $this->
xmlElement(
'Title',null, $role[
"title"]);
108 $this->
xmlElement(
'Description',null, $role[
"description"]);
114 $ownerObj = IlObjectFactory::getInstanceByRefId(
$ref_id,
false);
116 if (is_object($ownerObj))
118 $attrs = array (
"obj_id" =>
119 "il_".IL_INST_ID.
"_".$ownerObj->getType().
"_".$ownerObj->getId(),
"ref_id" => $ownerObj->getRefId(),
"type" => $ownerObj->getType());
121 $this->
xmlElement (
'Title', null, $ownerObj->getTitle());
122 $this->
xmlElement (
'Description', null, $ownerObj->getDescription());
124 $this->
xmlEndTag (
'AssignedObject', $attrs);
145 $this->
xmlSetDtdDef(
"<!DOCTYPE Roles PUBLIC \"-//ILIAS//DTD ILIAS Roles//EN\" \"".ILIAS_HTTP_PATH.
"/xml/ilias_role_object_3_10.dtd\">");
146 $this->
xmlSetGenCmt(
"Roles information of ilias system");