5 include_once 
"./Services/Xml/classes/class.ilXmlWriter.php";
 
   52                 $this->user_id = $ilUser->getId();
 
   57                 $this->check_permission = $a_status;
 
   67                 $this->user_id = $a_id;
 
   76                 $this->enable_operations = $a_status;
 
   93                 return $this->objects ? $this->objects : array();
 
   98                 global $ilAccess,$objDefinition;
 
  104                         if(method_exists($object, 
'getType') and $objDefinition->isRBACObject($object->getType()))
 
  128           global $tree, $rbacreview;
 
  130                 $id = $object->getId();
 
  131                 if ($object->getType() == 
"role" && $rbacreview->isRoleDeleted($id))
 
  136                 $attrs = array(
'type' => $object->getType(),
 
  140                 $this->
xmlElement(
'Title',null,$object->getTitle());
 
  141                 $this->
xmlElement(
'Description',null,$object->getDescription());
 
  142                 $this->
xmlElement(
'Owner',null,$object->getOwner());
 
  143                 $this->
xmlElement(
'CreateDate',null,$object->getCreateDate());
 
  144                 $this->
xmlElement(
'LastUpdate',null,$object->getLastUpdateDate());
 
  145                 $this->
xmlElement(
'ImportId',null,$object->getImportId());
 
  149                         if (!$tree->isInTree($ref_id))
 
  152                         $attr = array(
'ref_id' => $ref_id, 
'parent_id'=> $tree->getParentId(intval($ref_id)));
 
  172                 if(!$tree->checkForParentType($a_ref_id,
'crs')) {
 
  175                 include_once(
'./Modules/Course/classes/class.ilCourseItems.php');
 
  178                 switch($time_targets[
'timing_type'])
 
  194                 $this->
xmlStartTag(
'TimeTarget',array(
'type' => $type));
 
  196 #               if($type == self::TIMING_TEMPORARILY_AVAILABLE) 
  200                                 array(
'starting_time' => $time_targets[
'timing_start'],
 
  201                                         'ending_time' => $time_targets[
'timing_end'],
 
  202                                         'visibility' => $vis));
 
  205 #               if($type == self::TIMING_PRESETTING) 
  207                         if($time_targets[
'changeable'] or 1)
 
  210                                         array(
'starting_time' => $time_targets[
'suggestion_start'],
 
  211                                                 'ending_time' => $time_targets[
'suggestion_end'],
 
  212                                                 'changeable' => $time_targets[
'changeable'],
 
  213                                                 'earliest_start' => $time_targets[
'earliest_start'],
 
  214                                                 'latest_end' => $time_targets[
'latest_end']));
 
  219                                         array(
'starting_time' => $time_targets[
'suggestion_start'],
 
  220                                                 'ending_time' => $time_targets[
'suggestion_end'],
 
  221                                                 'changeable' => $time_targets[
'changeable']));
 
  232                 global $ilAccess,$rbacreview;
 
  236                     $ops = $rbacreview->getOperationsOnTypeString($a_type);
 
  239                         foreach($ops as $ops_id)
 
  241                                 $operation = $rbacreview->getOperation($ops_id);
 
  243                                 if(count ($operation) && $ilAccess->checkAccessOfUser($this->getUserId(),$operation[
'operation'],
'view',$a_ref_id))
 
  245                                         $this->
xmlElement(
'Operation',null,$operation[
'operation']);
 
  260                 $this->
xmlSetDtdDef(
"<!DOCTYPE Objects PUBLIC \"-//ILIAS//DTD ILIAS Repositoryobjects//EN\" \"".ILIAS_HTTP_PATH.
"/xml/ilias_object_4_0.dtd\">");
 
  276                 include_once 
'Services/AccessControl/classes/class.ilAccessHandler.php';
 
  278                 $ilAccess->checkAccessOfUser($this->
getUserId(),
'read',
'view',
$ref_id,$object->getType(),$object->getId());
 
  280                 if(!$info = $ilAccess->getInfo())
 
  286                         return $info[0][
'type'];
 
  293                 $items = $tree->getPathFull($refid);
 
  294                 $writer->xmlStartTag(
"Path");
 
  295                 foreach ($items as $item) {
 
  296                         if ($item[
"ref_id"] == $refid)
 
  298                         if ($item[
"type"] == 
"root")
 
  300                                 $item[
"title"] = $lng->txt(
"repository");
 
  302                         $writer->xmlElement(
"Element", array(
"ref_id" => $item[
"ref_id"], 
"type" => $item[
"type"]), $item[
"title"]);
 
  304                 $writer->xmlEndTag(
"Path");