24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   48                 $this->
setId(
"calmng");
 
   51                 $this->lng->loadLanguageModule(
'dateplaner');
 
   57                 $this->
addColumn($this->lng->txt(
'type'), 
'', 
'10%');
 
   58                 $this->
addColumn($this->lng->txt(
'title'),
'title', 
'50%');
 
   62                 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, 
"manage"));
 
   64                 $this->
enable(
'select_all');
 
   91                 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
 
   93                 $current_selection_list->setListTitle($this->lng->txt(
"actions"));
 
   94                 $current_selection_list->setId(
"act_".$a_set[
'id']);
 
   96                 $this->ctrl->setParameter($this->
getParentObject(),
'category_id',$a_set[
'id']);
 
  102                         $current_selection_list->addItem($this->lng->txt(
'edit'), 
'', $url);
 
  104                         $this->tpl->setCurrentBlock(
"checkbox");
 
  105                         $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
 
  106                         $this->tpl->parseCurrentBlock();
 
  109                 if($a_set[
'accepted'])
 
  111                         $url = $this->ctrl->getLinkTarget($this->
getParentObject(), 
'unshare');
 
  112                         $current_selection_list->addItem($this->lng->txt(
'cal_unshare'), 
'', $url);
 
  116                         $url = $this->ctrl->getLinkTarget($this->
getParentObject(), 
'shareSearch');
 
  117                         $current_selection_list->addItem($this->lng->txt(
'cal_share'), 
'', $url);
 
  122                 switch($a_set[
'type'])
 
  126                                 $this->tpl->setVariable(
'IMG_ALT', $this->lng->txt(
'cal_type_system'));
 
  131                                 $this->tpl->setVariable(
'IMG_ALT',$this->lng->txt(
'cal_type_personal'));
 
  137                                 $this->tpl->setVariable(
'IMG_ALT',$this->lng->txt(
'cal_type_'.$type));
 
  141                 $this->tpl->setVariable(
'VAL_TITLE',$a_set[
'title']);
 
  142                 $this->tpl->setVariable(
'BGCOLOR',$a_set[
'color']);
 
  143                 $this->tpl->setVariable(
"ACTIONS", $current_selection_list->getHTML());
 
  145                 if(strlen($a_set[
'path']))
 
  147                         $this->tpl->setCurrentBlock(
'calendar_path');
 
  148                         $this->tpl->setVariable(
'ADD_PATH_INFO',$a_set[
'path']);
 
  149                         $this->tpl->parseCurrentBlock();
 
  161                 global $ilUser, $tree;
 
  163                 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
 
  167                 $tmp_title_counter = array();
 
  168                 $categories = array();
 
  169                 foreach($cats->getCategoriesInfo() as $category)
 
  171                         $tmp_arr[
'obj_id'] = $category[
'obj_id'];
 
  172                         $tmp_arr[
'id'] = $category[
'cat_id'];
 
  173                         $tmp_arr[
'title'] = $category[
'title'];
 
  174                         $tmp_arr[
'type'] = $category[
'type'];
 
  175                         $tmp_arr[
'color'] = $category[
'color'];
 
  176                         $tmp_arr[
'editable'] = $category[
'editable'];
 
  177                         $tmp_arr[
'accepted'] = $category[
'accepted'];
 
  179                         $categories[] = $tmp_arr;
 
  182                         $tmp_title_counter[$category[
'type'].
'_'.$category[
'title']]++;
 
  185                 $path_categories = array();
 
  186                 foreach($categories as $cat)
 
  190                                 if($tmp_title_counter[$cat[
'type'].
'_'.$cat[
'title']] > 1)
 
  194                                                 $cat[
'path'] = $this->
buildPath($ref_id);
 
  199                         $path_categories[] = $cat;
 
  201                 $this->
setData($path_categories ? $path_categories : array());
 
  208                 $path_arr = $tree->getPathFull($a_ref_id,ROOT_FOLDER_ID);
 
  210                 unset($path_arr[count($path_arr) - 1]);
 
  212                 foreach($path_arr as 
$data)
 
  218                         $path .= $data[
'title'];
 
  220                 if(strlen(
$path) > 30)
 
  222                         return '...'.substr(
$path,-30);