5 include_once
"./Services/Xml/classes/class.ilXmlWriter.php";
38 parent::__construct();
41 $this->user_id = $ilUser->getId();
52 $this->role_type =
$type;
59 if (!is_array($this->roles)) {
65 include_once
'./Services/AccessControl/classes/class.ilObjRole.php';
66 include_once
'./webservice/soap/classes/class.ilObjectXMLWriter.php';
68 foreach ($this->roles as $role) {
70 if (!empty($this->role_type) && strcasecmp($this->role_type, $role[
"role_type"]) != 0) {
73 if ($rbacreview->isRoleDeleted($role[
"obj_id"])) {
77 $attrs =
array(
'role_type' => ucwords($role[
"role_type"]),
78 'id' =>
"il_" . IL_INST_ID .
"_role_" . $role[
"obj_id"]);
84 $this->
xmlElement(
'Title', null, $role[
"title"]);
85 $this->
xmlElement(
'Description', null, $role[
"description"]);
89 $ownerObj = IlObjectFactory::getInstanceByRefId($ref_id,
false);
91 if (is_object($ownerObj)) {
92 $attrs =
array(
"obj_id" =>
93 "il_" . IL_INST_ID .
"_" . $ownerObj->getType() .
"_" . $ownerObj->getId(),
"ref_id" => $ownerObj->getRefId(),
"type" => $ownerObj->getType());
95 $this->
xmlElement(
'Title', null, $ownerObj->getTitle());
96 $this->
xmlElement(
'Description', null, $ownerObj->getDescription());
98 $this->
xmlEndTag(
'AssignedObject', $attrs);
118 $this->
xmlSetDtdDef(
"<!DOCTYPE Roles PUBLIC \"-//ILIAS//DTD ILIAS Roles//EN\" \"" . ILIAS_HTTP_PATH .
"/xml/ilias_role_object_3_10.dtd\">");
119 $this->
xmlSetGenCmt(
"Roles information of ilias system");
xmlStartTag($tag, $attrs=null, $empty=false, $encode=true, $escape=true)
Writes a starttag.
xmlSetGenCmt($genCmt)
Sets generated comment.
xmlSetDtdDef($dtdDef)
Sets dtd definition.
xmlDumpMem($format=true)
Returns xml document from memory.
xmlEndTag($tag)
Writes an endtag.
static __extractRefId($role_title)
extract ref id from role title, e.g.
static appendPathToObject($writer, $refid)
redirection script todo: (a better solution should control the processing via a xml file) ...
xmlHeader()
Writes xml header public.
static _getTranslation($a_role_title)
Create styles array
The data for the language used.
xmlElement($tag, $attrs=null, $data=null, $encode=true, $escape=true)
Writes a basic element (no children, just textual content)