38 include_once
"./classes/class.ilXmlWriter.php";
63 $this->user_id = $ilUser->getId();
68 $this->user_id = $a_id;
77 $this->enable_operations = $a_status;
94 return $this->objects ? $this->objects : array();
125 global $tree, $rbacreview;
127 $id = $object->getId();
128 if ($object->getType() ==
"role" && $rbacreview->isRoleDeleted($id))
133 $attrs = array(
'type' => $object->getType(),
137 $this->
xmlElement(
'Title',null,$object->getTitle());
138 $this->
xmlElement(
'Description',null,$object->getDescription());
139 $this->
xmlElement(
'Owner',null,$object->getOwner());
140 $this->
xmlElement(
'CreateDate',null,$object->getCreateDate());
141 $this->
xmlElement(
'LastUpdate',null,$object->getLastUpdateDate());
142 $this->
xmlElement(
'ImportId',null,$object->getImportId());
146 if (!$tree->isInTree($ref_id))
149 $attr = array(
'ref_id' => $ref_id,
'parent_id'=> $tree->getParentId(intval($ref_id)));
161 global $ilAccess,$rbacreview;
165 $ops = $rbacreview->getOperationsOnTypeString($a_type);
168 foreach($ops as $ops_id)
170 $operation = $rbacreview->getOperation($ops_id);
172 if(count ($operation) && $ilAccess->checkAccessOfUser($this->getUserId(),$operation[
'operation'],
'view',$a_ref_id))
174 $this->
xmlElement(
'Operation',null,$operation[
'operation']);
189 $this->
xmlSetDtdDef(
"<!DOCTYPE Objects PUBLIC \"-//ILIAS//DTD ILIAS Repositoryobjects//EN\" \"".ILIAS_HTTP_PATH.
"/xml/ilias_object_3_10.dtd\">");
205 include_once
'Services/AccessControl/classes/class.ilAccessHandler.php';
207 $ilAccess->checkAccessOfUser($this->
getUserId(),
'read',
'view',
$ref_id,$object->getType(),$object->getId());
209 if(!$info = $ilAccess->getInfo())
215 return $info[0][
'type'];
222 $items = $tree->getPathFull($refid);
223 $writer->xmlStartTag(
"Path");
224 foreach ($items as $item) {
225 if ($item[
"ref_id"] == $refid)
227 if ($item[
"type"] ==
"root")
229 $item[
"title"] = $lng->txt(
"repository");
231 $writer->xmlElement(
"Element", array(
"ref_id" => $item[
"ref_id"],
"type" => $item[
"type"]), $item[
"title"]);
233 $writer->xmlEndTag(
"Path");