61 $this->user_id = $a_user_id;
64 $this->lng->loadLanguageModule(
'dateplaner');
79 $next_class = $this->ctrl->getNextClass($this);
80 $this->ctrl->saveParameter($this,
'category_id');
81 $this->ctrl->setParameter($this,
'seed',$this->seed->get(
IL_CAL_DATE));
84 case 'ilcalendarappointmentgui':
85 $this->ctrl->setReturn($this,
'details');
87 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
89 $this->ctrl->forwardCommand($app);
93 $cmd = $this->ctrl->getCmd(
"show");
95 if(!in_array(
$cmd, array(
"details",
"askDeleteAppointments",
"deleteAppointments")))
111 $this->ctrl->returnToParent($this);
122 global
$tpl, $ilTabs;
124 $ilTabs->clearTargets();
126 if(
$_REQUEST[
'backv'] == self::VIEW_MANAGE)
135 $ilTabs->setBackTarget($this->lng->txt(
"cal_back_to_list"), $this->ctrl->getLinkTarget($this, $back));
137 $this->tpl =
new ilTemplate(
'tpl.edit_category.html',
true,
true,
'Services/Calendar');
139 $this->tpl->setVariable(
'EDIT_CAT',$this->form->getHTML());
140 $tpl->setContent($this->tpl->get());
152 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
156 $category->setLocationType((
int)
$_POST[
'type_rl']);
163 $category->setType((
int) $_POST[
'type']);
164 $category->setObjId(0);
169 $category->setObjId($ilUser->getId());
172 if(!$category->validate())
210 global
$tpl, $ilTabs;
212 if(!
$_GET[
'category_id'])
215 $this->ctrl->returnToParent($this);
228 $ilTabs->clearTargets();
229 $ilTabs->setBackTarget($this->lng->txt(
"cal_back_to_list"), $this->ctrl->getLinkTarget($this,
"manage"));
232 $tpl->setContent($this->form->getHTML());
245 if(!
$_GET[
'category_id'])
248 $this->ctrl->returnToParent($this);
257 include_once
"./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php";
258 $toolbar =
new ilToolbarGui();
259 $toolbar->addButton($this->lng->txt(
"cal_add_appointment"), $this->ctrl->getLinkTargetByClass(
"ilcalendarappointmentgui",
"add"));
263 $toolbar->addButton($this->lng->txt(
"cal_import_appointments"), $this->ctrl->getLinkTarget($this,
"importAppointments"));
265 $toolbar = $toolbar->getHTML();
269 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
271 $info->setFormAction($this->ctrl->getFormAction($this));
273 $info->addSection($this->lng->txt(
'cal_cal_details'));
276 $info->addProperty($this->lng->txt(
'cal_calendar_name'),$category->getTitle());
277 switch($category->getType())
280 $info->addProperty($this->lng->txt(
'cal_cal_type'),$this->lng->txt(
'cal_type_personal'));
284 $info->addProperty($this->lng->txt(
'cal_cal_type'),$this->lng->txt(
'cal_type_system'));
288 $info->addProperty($this->lng->txt(
'cal_cal_type'),$this->lng->txt(
'cal_type_'.$category->getObjType()));
290 $info->addSection($this->lng->txt(
'additional_info'));
291 $info->addProperty($this->lng->txt(
'perma_link'),$this->
addReferenceLinks($category->getObjId()));
301 $this->ctrl->setParameterByClass(
'ilcalendarsubscriptiongui',
'cal_id',(
int) $_GET[
'category_id']);
303 $this->lng->txt(
'cal_ical_infoscreen'),
304 '<img src="'.ilUtil::getImagePath(
'ical.png').
'" />',
305 $this->ctrl->getLinkTargetByClass(array(
'ilcalendarpresentationgui',
'ilcalendarsubscriptiongui'))
308 $tpl->setContent($toolbar.$info->getHTML().$this->showAssignedAppointments());
313 if(!
$_GET[
'category_id'])
316 $this->ctrl->returnToParent($this);
326 $this->ctrl->redirect($this,
'manage');
329 $this->ctrl->redirect($this,
'manage');
338 include_once
'./Services/Calendar/classes/class.ilCalendarRemoteReader.php';
343 $remote->import($category);
354 if(!
$_GET[
'category_id'])
357 $this->ctrl->returnToParent($this);
367 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
388 if(!
$_POST[
'selected_cat_ids'])
404 include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
407 $confirmation_gui->setFormAction($this->ctrl->getFormAction($this));
408 $confirmation_gui->setHeaderText($this->lng->txt(
'cal_del_cal_sure'));
409 $confirmation_gui->setConfirm($this->lng->txt(
'delete'),
'delete');
410 $confirmation_gui->setCancel($this->lng->txt(
'cancel'),
'manage');
412 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
413 foreach(
$_POST[
'selected_cat_ids'] as $cat_id)
416 $confirmation_gui->addItem(
'category_id[]',$cat_id,$category->getTitle());
419 $tpl->setContent($confirmation_gui->getHTML());
429 protected function delete()
433 if(!
$_POST[
'category_id'])
449 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
450 foreach(
$_POST[
'category_id'] as $cat_id)
457 $ilCtrl->redirect($this,
'manage');
473 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
474 include_once(
'./Services/Calendar/classes/class.ilCalendarHidden.php');
476 $selected_cat_ids =
$_POST[
'selected_cat_ids'] ?
$_POST[
'selected_cat_ids'] : array();
477 $shown_cat_ids =
$_POST[
'shown_cat_ids'] ?
$_POST[
'shown_cat_ids'] : array();
480 $cat_ids = $cats->getCategories();
483 $hidden_cat_ids = $hidden_cats->getHidden();
487 foreach($hidden_cat_ids as $hidden_cat_id)
489 if( !in_array($hidden_cat_id,$shown_cat_ids) )
491 $hidden[] = $hidden_cat_id;
495 foreach($shown_cat_ids as $shown_cat_id)
497 $shown_cat_id = (int)$shown_cat_id;
498 if( !in_array($shown_cat_id, $selected_cat_ids) )
500 $hidden[] = $shown_cat_id;
505 $hidden_categories->hideSelected($hidden);
506 $hidden_categories->save();
509 $this->ctrl->returnToParent($this);
521 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryTableGUI.php');
523 $nav_parameter = $table_gui->getNavParameter();
525 if(
$_POST[$nav_parameter] !=
"")
527 if(
$_POST[$nav_parameter.
"1"] !=
$_POST[$nav_parameter])
529 $nav_value =
$_POST[$nav_parameter.
"1"];
531 elseif(
$_POST[$nav_parameter.
"2"] !=
$_POST[$nav_parameter])
533 $nav_value =
$_POST[$nav_parameter.
"2"];
538 $nav_value =
$_GET[$nav_parameter];
543 $this->ctrl->returnToParent($this);
555 global
$tpl, $ilTabs;
557 if(!
$_GET[
'category_id'])
560 $this->ctrl->returnToParent($this);
571 $ilTabs->clearTargets();
572 $ilTabs->setBackTarget($this->lng->txt(
"cal_back_to_list"), $this->ctrl->getLinkTarget($this,
"manage"));
576 $this->ctrl->saveParameter($this,
'category_id');
579 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedListTableGUI.php');
581 $table->setTitle($this->lng->txt(
'cal_shared_header'));
582 $table->setCalendarId((
int)
$_GET[
'category_id']);
585 $tpl->setContent($this->form->getHTML().
'<br />'.$table->getHTML());
598 $this->lng->loadLanguageModule(
'search');
600 if(!
$_GET[
'category_id'])
603 $this->ctrl->returnToParent($this);
605 $this->ctrl->saveParameter($this,
'category_id');
608 if(!isset(
$_POST[
'query']))
627 include_once
'Services/Search/classes/class.ilQueryParser.php';
628 include_once
'Services/Search/classes/class.ilObjectSearchFactory.php';
629 include_once
'Services/Search/classes/class.ilSearchResult.php';
635 $query_parser->setMinWordLength(3);
636 $query_parser->parse();
641 case self::SEARCH_USER:
643 $search->enableActiveCheck(
true);
645 $search->setFields(array(
'login'));
646 $res = $search->performSearch();
647 $res_sum->mergeEntries(
$res);
649 $search->setFields(array(
'firstname'));
650 $res = $search->performSearch();
651 $res_sum->mergeEntries(
$res);
653 $search->setFields(array(
'lastname'));
654 $res = $search->performSearch();
655 $res_sum->mergeEntries(
$res);
660 case self::SEARCH_ROLE:
662 include_once
'Services/Search/classes/Like/class.ilLikeObjectSearch.php';
664 $search->setFilter(array(
'role'));
666 $res = $search->performSearch();
667 $res_sum->mergeEntries(
$res);
673 if(!count($res_sum->getResults()))
680 $ilTabs->clearTargets();
681 $ilTabs->setBackTarget($this->lng->txt(
"cal_back_to_search"), $this->ctrl->getLinkTarget($this,
"shareSearch"));
685 case self::SEARCH_USER:
689 case self::SEARCH_ROLE:
713 if(!
$_GET[
'category_id'])
716 $this->ctrl->returnToParent($this);
718 if(!count(
$_POST[
'user_ids']))
734 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
767 if(!
$_GET[
'category_id'])
770 $this->ctrl->returnToParent($this);
772 if(!count(
$_POST[
'role_ids']))
787 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
790 foreach(
$_POST[
'role_ids'] as $role_id)
807 if(!
$_GET[
'category_id'])
810 $this->ctrl->returnToParent($this);
812 if(!count(
$_POST[
'obj_ids']))
828 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
831 foreach(
$_POST[
'obj_ids'] as $obj_id)
833 $shared->stopSharing($obj_id);
852 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedUserListTableGUI.php');
855 $table->setTitle($this->lng->txt(
'cal_share_search_usr_header'));
856 $table->setFormAction($this->ctrl->getFormAction($this));
857 $table->setUsers($a_ids);
863 $tpl->setContent($table->getHTML());
877 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedRoleListTableGUI.php');
880 $table->setTitle($this->lng->txt(
'cal_share_search_role_header'));
881 $table->setFormAction($this->ctrl->getFormAction($this));
882 $table->setRoles($a_ids);
888 $tpl->setContent($table->getHTML());
902 $lng->loadLanguageModule(
'search');
904 if(!is_object($this->form))
906 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
908 $this->form->setFormAction($this->ctrl->getFormAction($this));
909 $this->form->setTitle($this->lng->txt(
'cal_share_search_header'));
914 $type->setRequired(
true);
916 $user =
new ilRadioOption($this->lng->txt(
'obj_user'),self::SEARCH_USER);
917 $type->addOption($user);
919 $role =
new ilRadioOption($this->lng->txt(
'obj_role'),self::SEARCH_ROLE);
920 $type->addOption($role);
922 $this->form->addItem($type);
924 $search =
new ilTextInputGUI($this->lng->txt(
'cal_search'),
'query');
926 $search->setSize(16);
927 $search->setMaxLength(128);
928 $search->setRequired(
true);
929 $search->setInfo($this->lng->txt(
'cal_search_info_share'));
931 $this->form->addItem($search);
932 $this->form->addCommandButton(
'sharePerformSearch',$this->lng->txt(
'search'));
944 global $rbacsystem,
$ilUser, $ilHelp;
946 $ilHelp->setScreenIdComponent(
"cal");
947 $ilHelp->setScreenId(
"cal");
948 if ($a_mode ==
"edit")
950 $ilHelp->setSubScreenId(
"edit");
954 $ilHelp->setSubScreenId(
"create");
957 include_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
958 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
960 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
964 #$this->form->setTableWidth('40%'); 969 $this->form->setTitle($this->lng->txt(
'cal_edit_category'));
970 $this->ctrl->saveParameter($this,array(
'seed',
'category_id'));
971 $this->form->setFormAction($this->ctrl->getFormAction($this));
974 $this->form->addCommandButton(
'update',$this->lng->txt(
'save'));
984 $this->form->addCommandButton(
'manage',$this->lng->txt(
'cancel'));
988 $this->editable =
true;
990 $this->ctrl->saveParameter($this,array(
'category_id'));
991 $this->form->setFormAction($this->ctrl->getFormAction($this));
992 $this->form->setTitle($this->lng->txt(
'cal_add_category'));
993 $this->form->addCommandButton(
'save',$this->lng->txt(
'save'));
994 $this->form->addCommandButton(
'manage',$this->lng->txt(
'cancel'));
999 $title =
new ilTextInputGUI($this->lng->txt(
'cal_calendar_name'),
'title');
1000 if($a_mode ==
'edit')
1004 $title->setRequired(
true);
1005 $title->setMaxLength(64);
1006 $title->setSize(32);
1007 $title->setValue($category->getTitle());
1008 $this->form->addItem($title);
1011 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
1015 $type->
setValue($category->getType());
1016 $type->setRequired(
true);
1019 $type->addOption($opt);
1022 $type->addOption($opt);
1023 $type->
setInfo($this->lng->txt(
'cal_type_info'));
1024 $this->form->addItem($type);
1029 $color->
setValue($category->getColor());
1032 $color->setDisabled(
true);
1034 $color->setRequired(
true);
1035 $this->form->addItem($color);
1038 $location->setDisabled($a_mode ==
'edit');
1043 $location->setValue($category->getLocationType());
1046 $url =
new ilTextInputGUI($this->lng->txt(
'cal_remote_url'),
'remote_url');
1048 $url->setValue($category->getRemoteUrl());
1049 $url->setMaxLength(500);
1051 $url->setRequired(
true);
1052 $location_remote->addSubItem($url);
1054 $user =
new ilTextInputGUI($this->lng->txt(
'username'),
'remote_user');
1056 $user->setValue($category->getRemoteUser());
1057 $user->setMaxLength(50);
1059 $user->setRequired(
false);
1060 $location_remote->addSubItem($user);
1063 $pass->setDisabled($a_mode ==
'edit');
1064 $pass->setValue($category->getRemotePass());
1065 $pass->setMaxLength(50);
1067 $pass->setRetype(
false);
1068 $pass->setInfo($this->lng->txt(
'remote_pass_info'));
1069 $location_remote->addSubItem(
$pass);
1082 if(!
$_GET[
'category_id'])
1085 $this->ctrl->returnToParent($this);
1091 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedStatus.php');
1094 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
1101 $status->decline(
$_GET[
'category_id']);
1104 $this->ctrl->redirect($this,
'manage');
1115 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryTableGUI.php');
1116 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
1117 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentsTableGUI.php');
1120 $table_gui->setTitle($this->lng->txt(
'cal_assigned_appointments'));
1121 $table_gui->setAppointments(
1124 return $table_gui->getHTML();
1137 if(!count(
$_POST[
'appointments']))
1144 include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
1147 $this->ctrl->setParameter($this,
'category_id',(
int)
$_GET[
'category_id']);
1148 $confirmation_gui->setFormAction($this->ctrl->getFormAction($this));
1149 $confirmation_gui->setHeaderText($this->lng->txt(
'cal_del_app_sure'));
1150 $confirmation_gui->setConfirm($this->lng->txt(
'delete'),
'deleteAppointments');
1151 $confirmation_gui->setCancel($this->lng->txt(
'cancel'),
'details');
1153 include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php');
1154 foreach(
$_POST[
'appointments'] as $app_id)
1157 $confirmation_gui->addItem(
'appointments[]',(
int) $app_id,$app->getTitle());
1160 $tpl->setContent($confirmation_gui->getHTML());
1171 if(!count(
$_POST[
'appointments']))
1177 include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php');
1178 foreach(
$_POST[
'appointments'] as $app_id)
1183 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
1197 include_once(
"./Services/Calendar/classes/class.ilCalendarSelectionBlockGUI.php");
1199 $html = $ilCtrl->getHTML($block_gui);
1213 $this->lng->loadLanguageModule(
'pd');
1215 $tpl =
new ilTemplate(
'tpl.calendar_selection.html',
true,
true,
'Services/Calendar');
1216 include_once(
'./Services/Calendar/classes/class.ilCalendarUserSettings.php');
1220 $tpl->setVariable(
'HTEXT',$this->lng->txt(
'pd_my_memberships'));
1221 $tpl->touchBlock(
'head_item');
1222 $tpl->touchBlock(
'head_delim');
1223 $tpl->touchBlock(
'head_item');
1226 $this->ctrl->setParameter($this,
'seed',$this->seed->get(
IL_CAL_DATE));
1227 $tpl->setVariable(
'HHREF',$this->ctrl->getLinkTarget($this,
'switchCalendarMode'));
1228 $tpl->setVariable(
'HLINK',$this->lng->txt(
'pd_my_offers'));
1229 $tpl->touchBlock(
'head_item');
1234 $this->ctrl->setParameter($this,
'seed',$this->seed->get(
IL_CAL_DATE));
1235 $tpl->setVariable(
'HHREF',$this->ctrl->getLinkTarget($this,
'switchCalendarMode'));
1236 $tpl->setVariable(
'HLINK',$this->lng->txt(
'pd_my_memberships'));
1237 $tpl->touchBlock(
'head_item');
1238 $tpl->touchBlock(
'head_delim');
1239 $tpl->touchBlock(
'head_item');
1241 $tpl->setVariable(
'HTEXT',$this->lng->txt(
'pd_my_offers'));
1242 $tpl->touchBlock(
'head_item');
1256 include_once(
'./Services/Calendar/classes/class.ilCalendarUserSettings.php');
1260 $this->ctrl->returnToParent($this);
1274 global
$ilUser,$rbacsystem,$ilAccess;
1276 $this->editable =
false;
1277 $this->visible =
false;
1278 $this->importable =
false;
1280 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
1285 switch($cat->getType())
1289 if($cat->getObjId() == $ilUser->getId())
1291 $this->visible =
true;
1292 $this->editable =
true;
1293 $this->importable =
true;
1295 elseif(isset($shared[$cat->getCategoryID()]))
1297 $this->visible =
true;
1303 $this->visible =
true;
1307 $this->editable =
false;
1310 foreach($refs as $ref)
1312 if($ilAccess->checkAccess(
'read',
'',$ref))
1314 $this->visible =
true;
1316 if($ilAccess->checkAccess(
'edit_event',
'',$ref))
1318 $this->importable =
true;
1325 $this->editable = $ilUser->getId() == $cat->getCategoryID();
1326 $this->visible =
true;
1327 $this->importable =
false;
1344 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->FATAL);
1360 return $this->importable;
1373 $tpl =
new ilTemplate(
'tpl.cal_reference_links.html',
true,
true,
'Services/Calendar');
1377 include_once(
'./Services/Link/classes/class.ilLink.php');
1379 $parent_ref_id = $tree->getParentId(
$ref_id);
1387 $tpl->setCurrentBlock(
'reference');
1389 $tpl->setVariable(
'PIMG_ALT',$this->lng->txt(
'obj_'.$parent_type));
1390 $tpl->setVariable(
'PARENT_TITLE',$parent_title);
1394 $tpl->setVariable(
'ALT',$this->lng->txt(
'obj_'.$type));
1395 $tpl->setVariable(
'TITLE',$title);
1397 $tpl->parseCurrentBlock();
1408 protected function manage($a_reset_offsets =
false)
1412 include_once(
'./Services/Calendar/classes/class.ilCalendarManageTableGUI.php');
1415 if($a_reset_offsets)
1417 $table_gui->resetToDefaults();
1420 $table_gui->parse();
1422 include_once
"./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php";
1423 $toolbar =
new ilToolbarGui();
1424 $ilCtrl->setParameter($this,
'backv',self::VIEW_MANAGE);
1425 $toolbar->addButton($lng->txt(
"cal_add_calendar"), $ilCtrl->getLinkTarget($this,
"add"));
1427 $tpl->setContent($toolbar->getHTML().$table_gui->getHTML());
1435 global $ilTabs,
$tpl;
1437 if(!
$_GET[
'category_id'])
1440 $this->ctrl->returnToParent($this);
1443 $this->ctrl->setParameter($this,
'category_id',(
int)
$_GET[
'category_id']);
1456 $ilTabs->clearTargets();
1457 $ilTabs->setBackTarget($this->lng->txt(
"cal_back_to_list"), $this->ctrl->getLinkTarget($this,
"manage"));
1464 $tpl->setContent($form->getHTML());
1472 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
1474 $form->setTitle($this->lng->txt(
'cal_import_tbl'));
1475 $form->setFormAction($this->ctrl->getFormAction($this));
1477 $form->addCommandButton(
'uploadAppointments',$this->lng->txt(
'import'));
1479 $ics =
new ilFileInputGUI($this->lng->txt(
'cal_import_file'),
'file');
1481 $ics->setSuffixes(array(
'ics'));
1482 $ics->setInfo($this->lng->txt(
'cal_import_file_info'));
1483 $form->addItem($ics);
1496 if($form->checkInput())
1498 $file = $form->getInput(
'file');
1506 $this->ctrl->redirect($this,
'manage');
1520 include_once
'./Services/Calendar/classes/../classes/iCal/class.ilICalParser.php';
1521 include_once
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php';
1523 $GLOBALS[
'ilLog']->write(__METHOD__.
': Starting ical import...');
1528 $parser->setCategoryId($category_id);
1533 return $assigned_after - $assigned_before;
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
This class represents an option in a radio group.
initImportForm()
Create import form.
Model for a calendar entry.
static _getInstance()
get singleton instance
readPermissions()
read permissions
initFormCategory($a_mode)
init edit/create category form
sharePerformSearch()
share perform search
show presentation of calendar category side block
appendCalendarSelection()
static getSharedCalendarsForUser($a_usr_id=0)
get shared calendars of user
addReferenceLinks($a_obj_id)
Show links to references.
unshare()
Stop calendar sharing.
Stores status (accepted/declined) of shared calendars.
shareAssignRoles($a_editable=false)
share assign roles
saveSelection()
save selection of categories
static lookupNumberOfAssignedAppointments($a_cat_ids)
Get number of assigned appoitments.
executeCommand()
Execute command.
show list of alle calendars to manage
const CAL_SELECTION_MEMBERSHIP
static _lookupTitle($a_id)
lookup object title
isEditable()
check if calendar is editable private
Stores calendar categories.
Reader for remote ical calendars.
showUserList($a_ids=array())
show user list
BlockGUI class calendar selection.
__construct($a_user_id, $seed)
Constructor.
setInfo($a_info)
Set Info.
static getTypeIconPath($a_type, $a_obj_id, $a_size='small')
Get type icon path path Return image path for icon_xxx.pngs Or (if enabled) path to custom icon...
Handles shared calendars.
switchCalendarMode()
Switch calendar selection nmode.
static _getAllReferences($a_id)
get all reference ids of object
doSynchronisation(ilCalendarCategory $category)
Sync calendar.
static _getInstanceByUserId($a_user_id)
get instance by user id
importAppointments(ilPropertyFormGUI $form=null)
import appointments
deleteAppointments()
delete appointments
showAssignedAppointments()
show assigned aapointments
static _getUserSearchInstance($query_parser)
get reference of ilLikeUserSearch
const CAL_SELECTION_ITEMS
static moveUploadedFile($a_file, $a_name, $a_target, $a_raise_errors=true, $a_mode="move_uploaded")
move uploaded file
static _getInstance()
get instance for logged in user
static _lookupObjId($a_id)
special template class to simplify handling of ITX/PEAR
This class represents a text property in a property form.
shareAssign($a_editable=false)
share assign
shareAssignRolesEditable()
Share editable.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static _deleteByAppointmentId($a_app_id)
Delete appointment assignment.
static _getInstance($a_usr_id=0)
get singleton instance
askDeleteAppointments()
ask delete appointments
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static _getAssignedAppointments($a_cat_id)
Get assigned apointments.
doImportFile($file, $category_id)
Import ics.
shareAssignEditable()
Share with write access.
static ilTempnam()
Create a temporary file in an ILIAS writable directory.
Administrate calendar appointments.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
showRoleList($a_ids=array())
show role list
setValue($a_value)
Set Value.
confirmDelete()
confirm delete
details()
show calendar details
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
initFormSearch()
init form search
static isSharedWithUser($a_usr_id, $a_calendar_id)
is shared with user
manage($a_reset_offsets=false)
Manage calendars type $lng type $ilCtrl type $tpl.
shareSearch()
share calendar
shareDeassign()
desassign users/roles from calendar
Administration, Side-Block presentation of calendar categories.
Confirmation screen class.
uploadAppointments()
Upload appointments.