24include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
 
   54        $ilCtrl = 
$DIC[
'ilCtrl'];
 
   57        $this->
setId(
"calmng");
 
   59        include_once(
"./Services/Calendar/classes/class.ilCalendarActions.php");
 
   63        $this->lng->loadLanguageModule(
'dateplaner');
 
   64        $this->ctrl = $ilCtrl;
 
   69        $this->
addColumn($this->lng->txt(
'type'), 
'type_sortable', 
'1%');
 
   70        $this->
addColumn($this->lng->txt(
'title'), 
'title', 
'79%');
 
   74        $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, 
"manage"));
 
   76        $this->
enable(
'select_all');
 
  118        include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
 
  120        $current_selection_list->setListTitle($this->lng->txt(
"actions"));
 
  121        $current_selection_list->setId(
"act_" . $a_set[
'id']);
 
  123        $this->ctrl->setParameter($this->
getParentObject(), 
'category_id', $a_set[
'id']);
 
  126        if ($this->actions->checkSettingsCal($a_set[
'id'])) {
 
  128            $current_selection_list->addItem($this->lng->txt(
'settings'), 
'', 
$url);
 
  132        if ($this->actions->checkAddEvent($a_set[
'id'])) {
 
  134            $current_selection_list->addItem($this->lng->txt(
'cal_import_appointments'), 
'', 
$url);
 
  138        if ($this->actions->checkUnshareCal($a_set[
'id'])) {
 
  140            $current_selection_list->addItem($this->lng->txt(
'cal_unshare'), 
'', 
$url);
 
  144        if ($this->actions->checkShareCal($a_set[
'id'])) {
 
  146            $current_selection_list->addItem($this->lng->txt(
'cal_share'), 
'', 
$url);
 
  150        if ($this->actions->checkSynchronizeCal($a_set[
'id'])) {
 
  152            $current_selection_list->addItem($this->lng->txt(
'cal_cal_synchronize'), 
'', 
$url);
 
  156        if ($this->actions->checkDeleteCal($a_set[
'id'])) {
 
  158            $current_selection_list->addItem($this->lng->txt(
'delete'), 
'', 
$url);
 
  160            $this->tpl->setCurrentBlock(
"checkbox");
 
  161            $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
 
  162            $this->tpl->parseCurrentBlock();
 
  165        $this->ctrl->setParameter($this->
getParentObject(), 
'category_id', 
'');
 
  167        switch ($a_set[
'type']) {
 
  170                $this->tpl->setVariable(
'IMG_ALT', $this->lng->txt(
'cal_type_system'));
 
  175                $this->tpl->setVariable(
'IMG_ALT', $this->lng->txt(
'cal_type_personal'));
 
  181                $this->tpl->setVariable(
'IMG_ALT', $this->lng->txt(
'cal_type_' . 
$type));
 
  186                $this->tpl->setVariable(
'IMG_ALT', $this->lng->txt(
'cal_type_' . 
$type));
 
  191                $this->tpl->setVariable(
'IMG_ALT', $this->lng->txt(
'cal_ch_ch'));
 
  196        $this->tpl->setVariable(
'VAL_TITLE', $a_set[
'title']);
 
  197        $this->ctrl->setParameterByClass(ilCalendarPresentationGUI::class, 
'backvm', 1);
 
  198        $this->ctrl->setParameterByClass(
 
  199            "ilcalendarpresentationgui",
 
  203        $this->tpl->setVariable(
 
  205            $this->ctrl->getLinkTargetByClass(
 
  206                "ilcalendarpresentationgui",
 
  210        $this->ctrl->setParameterByClass(
"ilcalendarpresentationgui", 
'category_id', 
$_GET[
"category_id"]);
 
  212        $this->tpl->setVariable(
'BGCOLOR', $a_set[
'color']);
 
  213        $this->tpl->setVariable(
"ACTIONS", $current_selection_list->getHTML());
 
  234        $tree = 
$DIC[
'tree'];
 
  236        include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
 
  240        $tmp_title_counter = array();
 
  241        $categories = array();
 
  242        foreach ($cats->getCategoriesInfo() as $category) {
 
  243            $tmp_arr[
'obj_id'] = $category[
'obj_id'];
 
  244            $tmp_arr[
'id'] = $category[
'cat_id'];
 
  245            $tmp_arr[
'title'] = $category[
'title'];
 
  246            $tmp_arr[
'type'] = $category[
'type'];
 
  254            $tmp_arr[
'color'] = $category[
'color'];
 
  255            $tmp_arr[
'editable'] = $category[
'editable'];
 
  256            $tmp_arr[
'accepted'] = $category[
'accepted'];
 
  257            $tmp_arr[
'remote'] = $category[
'remote'];
 
  259            $categories[] = $tmp_arr;
 
  262            $tmp_title_counter[$category[
'type'] . 
'_' . $category[
'title']]++;
 
  265        $path_categories = array();
 
  266        foreach ($categories as $cat) {
 
  268                if ($tmp_title_counter[$cat[
'type'] . 
'_' . $cat[
'title']] > 1) {
 
  270                        include_once 
'./Services/Tree/classes/class.ilPathGUI.php';
 
  272                        $path->setUseImages(
false);
 
  273                        $path->enableTextOnly(
false);
 
  279            $path_categories[] = $cat;
 
  281        $this->
setData($path_categories);
 
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
static getInstance()
Get instance.
static _getInstance($a_usr_id=0)
get singleton instance
static lookupCategorySortIndex($a_type_id)
Lookup sort index of calendar type.
show list of alle calendars to manage
resetToDefaults()
reset table to defaults
__construct($a_parent_obj)
Constructor.
static _getAllReferences($a_id)
get all reference ids of object
static _lookupType($a_id, $a_reference=false)
lookup object type
Creates a path for a start and endnode.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
getParentObject()
Get parent object.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
resetOffset($a_in_determination=false)
Reset offset.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setOrderField($a_order_field)
set order column
setFormName($a_formname="")
Set Form name.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setOrderDirection($a_order_direction)
set order direction @access public
enable($a_module_name)
enables particular modules of table
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc