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'));
301 include_once(
"./Services/News/classes/class.ilRSSButtonGUI.php");
302 $this->ctrl->setParameterByClass(
'ilcalendarsubscriptiongui',
'cal_id',(
int) $_GET[
'category_id']);
304 $this->lng->txt(
'cal_ical_infoscreen'),
306 $this->ctrl->getLinkTargetByClass(
array(
'ilcalendarpresentationgui',
'ilcalendarsubscriptiongui'))
309 $tpl->setContent($toolbar.$info->getHTML().$this->showAssignedAppointments());
314 if(!
$_GET[
'category_id'])
317 $this->ctrl->returnToParent($this);
327 $this->ctrl->redirect($this,
'manage');
330 $this->ctrl->redirect($this,
'manage');
339 include_once
'./Services/Calendar/classes/class.ilCalendarRemoteReader.php';
344 $remote->import($category);
355 if(!
$_GET[
'category_id'])
358 $this->ctrl->returnToParent($this);
368 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
389 if(!
$_POST[
'selected_cat_ids'])
405 include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
408 $confirmation_gui->setFormAction($this->ctrl->getFormAction($this));
409 $confirmation_gui->setHeaderText($this->lng->txt(
'cal_del_cal_sure'));
410 $confirmation_gui->setConfirm($this->lng->txt(
'delete'),
'delete');
411 $confirmation_gui->setCancel($this->lng->txt(
'cancel'),
'manage');
413 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
414 foreach(
$_POST[
'selected_cat_ids'] as $cat_id)
417 $confirmation_gui->addItem(
'category_id[]',$cat_id,$category->getTitle());
420 $tpl->setContent($confirmation_gui->getHTML());
430 protected function delete()
434 if(!
$_POST[
'category_id'])
450 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
451 foreach(
$_POST[
'category_id'] as $cat_id)
458 $ilCtrl->redirect($this,
'manage');
474 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
475 include_once(
'./Services/Calendar/classes/class.ilCalendarHidden.php');
477 $selected_cat_ids =
$_POST[
'selected_cat_ids'] ?
$_POST[
'selected_cat_ids'] :
array();
481 $cat_ids = $cats->getCategories();
484 $hidden_cat_ids = $hidden_cats->getHidden();
488 foreach($hidden_cat_ids as $hidden_cat_id)
490 if( !in_array($hidden_cat_id,$shown_cat_ids) )
492 $hidden[] = $hidden_cat_id;
496 foreach($shown_cat_ids as $shown_cat_id)
498 $shown_cat_id = (int)$shown_cat_id;
499 if( !in_array($shown_cat_id, $selected_cat_ids) )
501 $hidden[] = $shown_cat_id;
506 $hidden_categories->hideSelected($hidden);
507 $hidden_categories->save();
510 $this->ctrl->returnToParent($this);
522 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryTableGUI.php');
524 $nav_parameter = $table_gui->getNavParameter();
526 if(
$_POST[$nav_parameter] !=
"")
528 if(
$_POST[$nav_parameter.
"1"] !=
$_POST[$nav_parameter])
530 $nav_value =
$_POST[$nav_parameter.
"1"];
532 elseif(
$_POST[$nav_parameter.
"2"] !=
$_POST[$nav_parameter])
534 $nav_value =
$_POST[$nav_parameter.
"2"];
539 $nav_value =
$_GET[$nav_parameter];
544 $this->ctrl->returnToParent($this);
556 global
$tpl, $ilTabs;
558 if(!
$_GET[
'category_id'])
561 $this->ctrl->returnToParent($this);
572 $ilTabs->clearTargets();
573 $ilTabs->setBackTarget($this->lng->txt(
"cal_back_to_list"), $this->ctrl->getLinkTarget($this,
"manage"));
577 $this->ctrl->saveParameter($this,
'category_id');
580 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedListTableGUI.php');
582 $table->setTitle($this->lng->txt(
'cal_shared_header'));
583 $table->setCalendarId((
int)
$_GET[
'category_id']);
586 $tpl->setContent($this->form->getHTML().
'<br />'.$table->getHTML());
599 $this->lng->loadLanguageModule(
'search');
601 if(!
$_GET[
'category_id'])
604 $this->ctrl->returnToParent($this);
606 $this->ctrl->saveParameter($this,
'category_id');
609 if(!isset(
$_POST[
'query']))
628 include_once
'Services/Search/classes/class.ilQueryParser.php';
629 include_once
'Services/Search/classes/class.ilObjectSearchFactory.php';
630 include_once
'Services/Search/classes/class.ilSearchResult.php';
636 $query_parser->setMinWordLength(3);
637 $query_parser->parse();
642 case self::SEARCH_USER:
644 $search->enableActiveCheck(
true);
646 $search->setFields(
array(
'login'));
647 $res = $search->performSearch();
648 $res_sum->mergeEntries(
$res);
650 $search->setFields(
array(
'firstname'));
651 $res = $search->performSearch();
652 $res_sum->mergeEntries(
$res);
654 $search->setFields(
array(
'lastname'));
655 $res = $search->performSearch();
656 $res_sum->mergeEntries(
$res);
661 case self::SEARCH_ROLE:
663 include_once
'Services/Search/classes/Like/class.ilLikeObjectSearch.php';
665 $search->setFilter(
array(
'role'));
667 $res = $search->performSearch();
668 $res_sum->mergeEntries(
$res);
674 if(!count($res_sum->getResults()))
681 $ilTabs->clearTargets();
682 $ilTabs->setBackTarget($this->lng->txt(
"cal_back_to_search"), $this->ctrl->getLinkTarget($this,
"shareSearch"));
686 case self::SEARCH_USER:
690 case self::SEARCH_ROLE:
714 if(!
$_GET[
'category_id'])
717 $this->ctrl->returnToParent($this);
719 if(!count(
$_POST[
'user_ids']))
735 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
768 if(!
$_GET[
'category_id'])
771 $this->ctrl->returnToParent($this);
773 if(!count(
$_POST[
'role_ids']))
788 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
791 foreach(
$_POST[
'role_ids'] as $role_id)
808 if(!
$_GET[
'category_id'])
811 $this->ctrl->returnToParent($this);
813 if(!count(
$_POST[
'obj_ids']))
829 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
832 foreach(
$_POST[
'obj_ids'] as $obj_id)
834 $shared->stopSharing($obj_id);
853 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedUserListTableGUI.php');
856 $table->setTitle($this->lng->txt(
'cal_share_search_usr_header'));
857 $table->setFormAction($this->ctrl->getFormAction($this));
858 $table->setUsers($a_ids);
864 $tpl->setContent($table->getHTML());
878 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedRoleListTableGUI.php');
881 $table->setTitle($this->lng->txt(
'cal_share_search_role_header'));
882 $table->setFormAction($this->ctrl->getFormAction($this));
883 $table->setRoles($a_ids);
889 $tpl->setContent($table->getHTML());
903 $lng->loadLanguageModule(
'search');
905 if(!is_object($this->form))
907 include_once(
'Services/Form/classes/class.ilPropertyFormGUI.php');
909 $this->form->setFormAction($this->ctrl->getFormAction($this));
910 $this->form->setTitle($this->lng->txt(
'cal_share_search_header'));
915 $type->setRequired(
true);
917 $user =
new ilRadioOption($this->lng->txt(
'obj_user'),self::SEARCH_USER);
918 $type->addOption($user);
920 $role =
new ilRadioOption($this->lng->txt(
'obj_role'),self::SEARCH_ROLE);
921 $type->addOption($role);
923 $this->form->addItem($type);
925 $search =
new ilTextInputGUI($this->lng->txt(
'cal_search'),
'query');
927 $search->setSize(16);
928 $search->setMaxLength(128);
929 $search->setRequired(
true);
930 $search->setInfo($this->lng->txt(
'cal_search_info_share'));
932 $this->form->addItem($search);
933 $this->form->addCommandButton(
'sharePerformSearch',$this->lng->txt(
'search'));
945 global $rbacsystem,
$ilUser, $ilHelp;
947 $ilHelp->setScreenIdComponent(
"cal");
948 $ilHelp->setScreenId(
"cal");
949 if ($a_mode ==
"edit")
951 $ilHelp->setSubScreenId(
"edit");
955 $ilHelp->setSubScreenId(
"create");
958 include_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
959 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
961 include_once(
'./Services/Calendar/classes/class.ilCalendarCategories.php');
965 #$this->form->setTableWidth('40%'); 970 $this->form->setTitle($this->lng->txt(
'cal_edit_category'));
971 $this->ctrl->saveParameter($this,
array(
'seed',
'category_id'));
972 $this->form->setFormAction($this->ctrl->getFormAction($this));
975 $this->form->addCommandButton(
'update',$this->lng->txt(
'save'));
985 $this->form->addCommandButton(
'manage',$this->lng->txt(
'cancel'));
989 $this->editable =
true;
991 $this->ctrl->saveParameter($this,
array(
'category_id'));
992 $this->form->setFormAction($this->ctrl->getFormAction($this));
993 $this->form->setTitle($this->lng->txt(
'cal_add_category'));
994 $this->form->addCommandButton(
'save',$this->lng->txt(
'save'));
995 $this->form->addCommandButton(
'manage',$this->lng->txt(
'cancel'));
1001 if($a_mode ==
'edit')
1005 $title->setRequired(
true);
1006 $title->setMaxLength(64);
1008 $title->setValue($category->getTitle());
1009 $this->form->addItem(
$title);
1012 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
1016 $type->
setValue($category->getType());
1017 $type->setRequired(
true);
1020 $type->addOption($opt);
1023 $type->addOption($opt);
1024 $type->
setInfo($this->lng->txt(
'cal_type_info'));
1025 $this->form->addItem($type);
1030 $color->
setValue($category->getColor());
1033 $color->setDisabled(
true);
1035 $color->setRequired(
true);
1036 $this->form->addItem($color);
1039 $location->setDisabled($a_mode ==
'edit');
1044 $location->setValue($category->getLocationType());
1048 $url->setDisabled($a_mode ==
'edit');
1049 $url->setValue($category->getRemoteUrl());
1050 $url->setMaxLength(500);
1052 $url->setRequired(
true);
1053 $location_remote->addSubItem(
$url);
1055 $user =
new ilTextInputGUI($this->lng->txt(
'username'),
'remote_user');
1057 $user->setValue($category->getRemoteUser());
1058 $user->setMaxLength(50);
1060 $user->setRequired(
false);
1061 $location_remote->addSubItem($user);
1064 $pass->setDisabled($a_mode ==
'edit');
1065 $pass->setValue($category->getRemotePass());
1066 $pass->setMaxLength(50);
1068 $pass->setRetype(
false);
1069 $pass->setInfo($this->lng->txt(
'remote_pass_info'));
1070 $location_remote->addSubItem(
$pass);
1083 if(!
$_GET[
'category_id'])
1086 $this->ctrl->returnToParent($this);
1092 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedStatus.php');
1095 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
1102 $status->decline(
$_GET[
'category_id']);
1105 $this->ctrl->redirect($this,
'manage');
1116 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryTableGUI.php');
1117 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
1118 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentsTableGUI.php');
1121 $table_gui->setTitle($this->lng->txt(
'cal_assigned_appointments'));
1122 $table_gui->setAppointments(
1125 return $table_gui->getHTML();
1138 if(!count(
$_POST[
'appointments']))
1145 include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
1148 $this->ctrl->setParameter($this,
'category_id',(
int)
$_GET[
'category_id']);
1149 $confirmation_gui->setFormAction($this->ctrl->getFormAction($this));
1150 $confirmation_gui->setHeaderText($this->lng->txt(
'cal_del_app_sure'));
1151 $confirmation_gui->setConfirm($this->lng->txt(
'delete'),
'deleteAppointments');
1152 $confirmation_gui->setCancel($this->lng->txt(
'cancel'),
'details');
1154 include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php');
1155 foreach(
$_POST[
'appointments'] as $app_id)
1158 $confirmation_gui->addItem(
'appointments[]',(
int) $app_id,$app->getTitle());
1161 $tpl->setContent($confirmation_gui->getHTML());
1172 if(!count(
$_POST[
'appointments']))
1178 include_once(
'./Services/Calendar/classes/class.ilCalendarEntry.php');
1179 foreach(
$_POST[
'appointments'] as $app_id)
1184 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
1198 include_once(
"./Services/Calendar/classes/class.ilCalendarSelectionBlockGUI.php");
1200 $html = $ilCtrl->getHTML($block_gui);
1214 $this->lng->loadLanguageModule(
'pd');
1216 $tpl =
new ilTemplate(
'tpl.calendar_selection.html',
true,
true,
'Services/Calendar');
1217 include_once(
'./Services/Calendar/classes/class.ilCalendarUserSettings.php');
1221 $tpl->setVariable(
'HTEXT',$this->lng->txt(
'pd_my_memberships'));
1222 $tpl->touchBlock(
'head_item');
1223 $tpl->touchBlock(
'head_delim');
1224 $tpl->touchBlock(
'head_item');
1227 $this->ctrl->setParameter($this,
'seed',$this->seed->get(
IL_CAL_DATE));
1228 $tpl->setVariable(
'HHREF',$this->ctrl->getLinkTarget($this,
'switchCalendarMode'));
1229 $tpl->setVariable(
'HLINK',$this->lng->txt(
'pd_my_offers'));
1230 $tpl->touchBlock(
'head_item');
1235 $this->ctrl->setParameter($this,
'seed',$this->seed->get(
IL_CAL_DATE));
1236 $tpl->setVariable(
'HHREF',$this->ctrl->getLinkTarget($this,
'switchCalendarMode'));
1237 $tpl->setVariable(
'HLINK',$this->lng->txt(
'pd_my_memberships'));
1238 $tpl->touchBlock(
'head_item');
1239 $tpl->touchBlock(
'head_delim');
1240 $tpl->touchBlock(
'head_item');
1242 $tpl->setVariable(
'HTEXT',$this->lng->txt(
'pd_my_offers'));
1243 $tpl->touchBlock(
'head_item');
1257 include_once(
'./Services/Calendar/classes/class.ilCalendarUserSettings.php');
1261 $this->ctrl->returnToParent($this);
1275 global
$ilUser,$rbacsystem,$ilAccess;
1277 $this->editable =
false;
1278 $this->visible =
false;
1279 $this->importable =
false;
1281 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
1286 switch($cat->getType())
1290 if($cat->getObjId() == $ilUser->getId())
1292 $this->visible =
true;
1293 $this->editable =
true;
1294 $this->importable =
true;
1296 elseif(isset($shared[$cat->getCategoryID()]))
1298 $this->visible =
true;
1304 $this->visible =
true;
1308 $this->editable =
false;
1311 foreach($refs as $ref)
1313 if($ilAccess->checkAccess(
'read',
'',$ref))
1315 $this->visible =
true;
1317 if($ilAccess->checkAccess(
'edit_event',
'',$ref))
1319 $this->importable =
true;
1326 $this->editable = $ilUser->getId() == $cat->getCategoryID();
1327 $this->visible =
true;
1328 $this->importable =
false;
1345 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->FATAL);
1361 return $this->importable;
1374 $tpl =
new ilTemplate(
'tpl.cal_reference_links.html',
true,
true,
'Services/Calendar');
1378 include_once(
'./Services/Link/classes/class.ilLink.php');
1380 $parent_ref_id = $tree->getParentId(
$ref_id);
1388 $tpl->setCurrentBlock(
'reference');
1390 $tpl->setVariable(
'PIMG_ALT',$this->lng->txt(
'obj_'.$parent_type));
1391 $tpl->setVariable(
'PARENT_TITLE',$parent_title);
1395 $tpl->setVariable(
'ALT',$this->lng->txt(
'obj_'.$type));
1398 $tpl->parseCurrentBlock();
1409 protected function manage($a_reset_offsets =
false)
1413 include_once(
'./Services/Calendar/classes/class.ilCalendarManageTableGUI.php');
1416 if($a_reset_offsets)
1418 $table_gui->resetToDefaults();
1421 $table_gui->parse();
1423 include_once
"./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php";
1424 $toolbar =
new ilToolbarGui();
1425 $ilCtrl->setParameter($this,
'backv',self::VIEW_MANAGE);
1426 $toolbar->addButton($lng->txt(
"cal_add_calendar"), $ilCtrl->getLinkTarget($this,
"add"));
1428 $tpl->setContent($toolbar->getHTML().$table_gui->getHTML());
1436 global $ilTabs,
$tpl;
1438 if(!
$_GET[
'category_id'])
1441 $this->ctrl->returnToParent($this);
1444 $this->ctrl->setParameter($this,
'category_id',(
int)
$_GET[
'category_id']);
1457 $ilTabs->clearTargets();
1458 $ilTabs->setBackTarget($this->lng->txt(
"cal_back_to_list"), $this->ctrl->getLinkTarget($this,
"manage"));
1465 $tpl->setContent($form->getHTML());
1473 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
1475 $form->setTitle($this->lng->txt(
'cal_import_tbl'));
1476 $form->setFormAction($this->ctrl->getFormAction($this));
1478 $form->addCommandButton(
'uploadAppointments',$this->lng->txt(
'import'));
1480 $ics =
new ilFileInputGUI($this->lng->txt(
'cal_import_file'),
'file');
1482 $ics->setSuffixes(
array(
'ics'));
1483 $ics->setInfo($this->lng->txt(
'cal_import_file_info'));
1484 $form->addItem($ics);
1497 if($form->checkInput())
1499 $file = $form->getInput(
'file');
1504 $num = $this->
doImportFile($tmp, (
int) $_REQUEST[
'category_id']);
1507 $this->ctrl->redirect($this,
'manage');
1521 include_once
'./Services/Calendar/classes/../classes/iCal/class.ilICalParser.php';
1522 include_once
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php';
1524 $GLOBALS[
'ilLog']->write(__METHOD__.
': Starting ical import...');
1529 $parser->setCategoryId($category_id);
1534 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
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
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 Depre...
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
Create styles array
The data for the language used.
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.
static ilTempnam($a_temp_path=null)
Create a temporary file in an ILIAS writable directory.
doImportFile($file, $category_id)
Import ics.
shareAssignEditable()
Share with write access.
Administrate calendar appointments.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
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.