38 include_once
"./classes/class.ilXmlWriter.php";
73 $this->user_id = $ilUser->getId();
78 $this->check_permission = $a_status;
88 $this->user_id = $a_id;
97 $this->enable_operations = $a_status;
114 return $this->objects ? $this->objects : array();
119 global $ilAccess,$objDefinition;
125 if(method_exists($object,
'getType') and $objDefinition->isRBACObject($object->getType()))
149 global $tree, $rbacreview;
151 $id = $object->getId();
152 if ($object->getType() ==
"role" && $rbacreview->isRoleDeleted($id))
157 $attrs = array(
'type' => $object->getType(),
161 $this->
xmlElement(
'Title',null,$object->getTitle());
162 $this->
xmlElement(
'Description',null,$object->getDescription());
163 $this->
xmlElement(
'Owner',null,$object->getOwner());
164 $this->
xmlElement(
'CreateDate',null,$object->getCreateDate());
165 $this->
xmlElement(
'LastUpdate',null,$object->getLastUpdateDate());
166 $this->
xmlElement(
'ImportId',null,$object->getImportId());
170 if (!$tree->isInTree($ref_id))
173 $attr = array(
'ref_id' => $ref_id,
'parent_id'=> $tree->getParentId(intval($ref_id)));
193 if(!$tree->checkForParentType($a_ref_id,
'crs')) {
196 include_once(
'./Modules/Course/classes/class.ilCourseItems.php');
199 switch($time_targets[
'timing_type'])
217 # if($type == self::TIMING_TEMPORARILY_AVAILABLE)
221 array(
'starting_time' => $time_targets[
'timing_start'],
222 'ending_time' => $time_targets[
'timing_end'],
223 'visibility' => $vis));
226 # if($type == self::TIMING_PRESETTING)
228 if($time_targets[
'changeable'] or 1)
231 array(
'starting_time' => $time_targets[
'suggestion_start'],
232 'ending_time' => $time_targets[
'suggestion_end'],
233 'changeable' => $time_targets[
'changeable'],
234 'earliest_start' => $time_targets[
'earliest_start'],
235 'latest_end' => $time_targets[
'latest_end']));
240 array(
'starting_time' => $time_targets[
'suggestion_start'],
241 'ending_time' => $time_targets[
'suggestion_end'],
242 'changeable' => $time_targets[
'changeable']));
253 global $ilAccess,$rbacreview;
257 $ops = $rbacreview->getOperationsOnTypeString($a_type);
260 foreach($ops as $ops_id)
262 $operation = $rbacreview->getOperation($ops_id);
264 if(count ($operation) && $ilAccess->checkAccessOfUser($this->getUserId(),$operation[
'operation'],
'view',$a_ref_id))
266 $this->
xmlElement(
'Operation',null,$operation[
'operation']);
281 $this->
xmlSetDtdDef(
"<!DOCTYPE Objects PUBLIC \"-//ILIAS//DTD ILIAS Repositoryobjects//EN\" \"".ILIAS_HTTP_PATH.
"/xml/ilias_object_4_0.dtd\">");
297 include_once
'Services/AccessControl/classes/class.ilAccessHandler.php';
299 $ilAccess->checkAccessOfUser($this->
getUserId(),
'read',
'view',
$ref_id,$object->getType(),$object->getId());
301 if(!$info = $ilAccess->getInfo())
307 return $info[0][
'type'];
314 $items = $tree->getPathFull($refid);
315 $writer->xmlStartTag(
"Path");
316 foreach ($items as $item) {
317 if ($item[
"ref_id"] == $refid)
319 if ($item[
"type"] ==
"root")
321 $item[
"title"] = $lng->txt(
"repository");
323 $writer->xmlElement(
"Element", array(
"ref_id" => $item[
"ref_id"],
"type" => $item[
"type"]), $item[
"title"]);
325 $writer->xmlEndTag(
"Path");