5 include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
41 $this->user_id = $ilUser->getId();
52 $this->role_type =
$type;
59 if (!is_array($this->roles))
64 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
65 include_once
'./webservice/soap/classes/class.ilObjectXMLWriter.php';
67 foreach ($this->roles as $role)
70 if (!empty($this->role_type) && strcasecmp ($this->role_type, $role[
"role_type"]) != 0 )
74 if ($rbacreview->isRoleDeleted($role[
"obj_id"]))
79 $attrs = array(
'role_type' => ucwords($role[
"role_type"]),
80 'id' =>
"il_".IL_INST_ID.
"_role_".$role[
"obj_id"]);
86 $this->
xmlElement(
'Title',null, $role[
"title"]);
87 $this->
xmlElement(
'Description',null, $role[
"description"]);
93 $ownerObj = IlObjectFactory::getInstanceByRefId(
$ref_id,
false);
95 if (is_object($ownerObj))
97 $attrs = array (
"obj_id" =>
98 "il_".IL_INST_ID.
"_".$ownerObj->getType().
"_".$ownerObj->getId(),
"ref_id" => $ownerObj->getRefId(),
"type" => $ownerObj->getType());
100 $this->
xmlElement (
'Title', null, $ownerObj->getTitle());
101 $this->
xmlElement (
'Description', null, $ownerObj->getDescription());
103 $this->
xmlEndTag (
'AssignedObject', $attrs);
124 $this->
xmlSetDtdDef(
"<!DOCTYPE Roles PUBLIC \"-//ILIAS//DTD ILIAS Roles//EN\" \"".ILIAS_HTTP_PATH.
"/xml/ilias_role_object_3_10.dtd\">");
125 $this->
xmlSetGenCmt(
"Roles information of ilias system");