ILIAS
Release_5_0_x_branch Revision 61816
|
Administration, Side-Block presentation of calendar categories. More...
Public Member Functions | |
__construct ($a_user_id, $seed) | |
Constructor. | |
executeCommand () | |
Execute command. | |
saveSelection () | |
save selection of categories | |
showCategories () | |
public | |
shareSearch () | |
share calendar | |
sharePerformSearch () | |
share perform search | |
shareAssignEditable () | |
Share with write access. | |
shareAssign ($a_editable=false) | |
share assign | |
shareAssignRoles ($a_editable=false) | |
share assign roles | |
shareDeassign () | |
desassign users/roles from calendar | |
getHTML () |
Data Fields | |
const | SEARCH_USER = 1 |
const | SEARCH_ROLE = 2 |
const | VIEW_MANAGE = 1 |
Protected Member Functions | |
cancel () | |
cancel | |
add () | |
add new calendar | |
save () | |
save new calendar | |
edit () | |
edit category | |
details () | |
show calendar details | |
synchroniseCalendar () | |
doSynchronisation (ilCalendarCategory $category) | |
Sync calendar. | |
update () | |
update | |
confirmDelete () | |
confirm delete | |
delete () | |
Delete. | |
shareAssignRolesEditable () | |
Share editable. | |
showUserList ($a_ids=array()) | |
show user list | |
showRoleList ($a_ids=array()) | |
show role list | |
initFormSearch () | |
init form search | |
initFormCategory ($a_mode) | |
init edit/create category form | |
unshare () | |
Stop calendar sharing. | |
showAssignedAppointments () | |
show assigned aapointments | |
askDeleteAppointments () | |
ask delete appointments | |
deleteAppointments () | |
delete appointments | |
appendCalendarSelection () | |
switchCalendarMode () | |
Switch calendar selection nmode. | |
checkVisible () | |
isImportable () | |
addReferenceLinks ($a_obj_id) | |
Show links to references. | |
manage ($a_reset_offsets=false) | |
Manage calendars type $lng type $ilCtrl type $tpl. | |
importAppointments (ilPropertyFormGUI $form=null) | |
import appointments | |
initImportForm () | |
Create import form. | |
uploadAppointments () | |
Upload appointments. | |
doImportFile ($file, $category_id) | |
Import ics. |
Protected Attributes | |
$user_id | |
$tpl | |
$ctrl | |
$lng | |
$editable = false | |
$visible = false |
Private Member Functions | |
readPermissions () | |
read permissions | |
isEditable () | |
check if calendar is editable private |
Administration, Side-Block presentation of calendar categories.
ilCalendarCategoryGUI: ilCalendarAppointmentGUI, ilCalendarSelectionBlockGUI
Definition at line 35 of file class.ilCalendarCategoryGUI.php.
ilCalendarCategoryGUI::__construct | ( | $a_user_id, | |
$seed | |||
) |
Constructor.
public
int | user id |
Definition at line 57 of file class.ilCalendarCategoryGUI.php.
|
protected |
add new calendar
protected
Definition at line 120 of file class.ilCalendarCategoryGUI.php.
References $_REQUEST, $tpl, and initFormCategory().
Referenced by save().
|
protected |
Show links to references.
int | $a_obj_id | $obj_id |
Definition at line 1370 of file class.ilCalendarCategoryGUI.php.
References $ref_id, $tpl, ilObject\_getAllReferences(), ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), and ilUtil\getTypeIconPath().
Referenced by details().
|
protected |
@return |
Definition at line 1210 of file class.ilCalendarCategoryGUI.php.
References $ilUser, $tpl, ilCalendarUserSettings\_getInstance(), ilCalendarUserSettings\CAL_SELECTION_ITEMS, ilCalendarUserSettings\CAL_SELECTION_MEMBERSHIP, and IL_CAL_DATE.
|
protected |
ask delete appointments
protected
Definition at line 1134 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_POST, $tpl, details(), and ilUtil\sendFailure().
|
protected |
cancel
protected
Definition at line 109 of file class.ilCalendarCategoryGUI.php.
|
protected |
@return |
Definition at line 1339 of file class.ilCalendarCategoryGUI.php.
References $ilErr.
Referenced by details(), edit(), importAppointments(), and unshare().
|
protected |
confirm delete
protected
Definition at line 385 of file class.ilCalendarCategoryGUI.php.
References $_POST, $tpl, manage(), and ilUtil\sendFailure().
|
protected |
Delete.
protected
@return |
Definition at line 430 of file class.ilCalendarCategoryGUI.php.
References $_POST, $ilCtrl, manage(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
delete appointments
protected
Definition at line 1170 of file class.ilCalendarCategoryGUI.php.
References $_POST, ilCalendarCategoryAssignments\_deleteByAppointmentId(), details(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
show calendar details
protected
Definition at line 241 of file class.ilCalendarCategoryGUI.php.
References $_GET, $tpl, addReferenceLinks(), checkVisible(), ilRSSButtonGUI\get(), ilRSSButtonGUI\ICON_ICAL, readPermissions(), ilUtil\sendFailure(), ilCalendarCategory\TYPE_BOOK, ilCalendarCategory\TYPE_CH, ilCalendarCategory\TYPE_GLOBAL, ilCalendarCategory\TYPE_OBJ, and ilCalendarCategory\TYPE_USR.
Referenced by askDeleteAppointments(), and deleteAppointments().
|
protected |
Import ics.
type | $file | |
type | $category_id |
Definition at line 1519 of file class.ilCalendarCategoryGUI.php.
References $file, $GLOBALS, ilICalParser\INPUT_FILE, and ilCalendarCategoryAssignments\lookupNumberOfAssignedAppointments().
Referenced by uploadAppointments().
|
protected |
Sync calendar.
ilCalendarCategory | $cat |
Definition at line 337 of file class.ilCalendarCategoryGUI.php.
References ilCalendarCategory\getRemotePass(), ilCalendarCategory\getRemoteUrl(), ilCalendarCategory\getRemoteUser(), and ilCalendarRemoteReader\setUser().
Referenced by save(), and synchroniseCalendar().
|
protected |
edit category
protected
Definition at line 208 of file class.ilCalendarCategoryGUI.php.
References $_GET, $tpl, checkVisible(), initFormCategory(), isEditable(), manage(), readPermissions(), and ilUtil\sendFailure().
Referenced by update().
ilCalendarCategoryGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 75 of file class.ilCalendarCategoryGUI.php.
References $_GET, $cmd, $ilSetting, $ilUser, $tpl, and IL_CAL_DATE.
ilCalendarCategoryGUI::getHTML | ( | ) |
Definition at line 1194 of file class.ilCalendarCategoryGUI.php.
References $ilCtrl, and $ilUser.
|
protected |
import appointments
Definition at line 1434 of file class.ilCalendarCategoryGUI.php.
References $_GET, $tpl, checkVisible(), initImportForm(), isImportable(), manage(), readPermissions(), and ilUtil\sendFailure().
|
protected |
init edit/create category form
protected
Definition at line 943 of file class.ilCalendarCategoryGUI.php.
References $_GET, $ilUser, $location, $pass, ilCalendarCategories\_getInstance(), ilCalendarSettings\_getInstance(), isEditable(), ilCalendarCategory\LTYPE_LOCAL, ilCalendarCategory\LTYPE_REMOTE, ilFormPropertyGUI\setDisabled(), ilRadioOption\setInfo(), ilColorPickerInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), ilCalendarCategory\TYPE_GLOBAL, and ilCalendarCategory\TYPE_USR.
Referenced by add(), and edit().
|
protected |
init form search
protected
@return |
Definition at line 899 of file class.ilCalendarCategoryGUI.php.
References $_POST, $lng, SEARCH_ROLE, SEARCH_USER, ilTextInputGUI\setValue(), and ilRadioGroupInputGUI\setValue().
Referenced by shareSearch().
|
protected |
Create import form.
Definition at line 1471 of file class.ilCalendarCategoryGUI.php.
References ilFileInputGUI\setALlowDeletion().
Referenced by importAppointments(), and uploadAppointments().
|
private |
check if calendar is editable private
Definition at line 1354 of file class.ilCalendarCategoryGUI.php.
References $editable.
Referenced by edit(), initFormCategory(), shareAssign(), shareAssignRoles(), shareDeassign(), shareSearch(), and update().
|
protected |
Definition at line 1359 of file class.ilCalendarCategoryGUI.php.
Referenced by importAppointments().
|
protected |
Manage calendars type $lng type $ilCtrl type $tpl.
Definition at line 1409 of file class.ilCalendarCategoryGUI.php.
References $ilCtrl, $lng, and $tpl.
Referenced by confirmDelete(), delete(), edit(), importAppointments(), save(), shareSearch(), and update().
|
private |
read permissions
private
@return |
Definition at line 1273 of file class.ilCalendarCategoryGUI.php.
References $_GET, $ilUser, ilObject\_getAllReferences(), ilCalendarSettings\_getInstance(), ilCalendarShared\getSharedCalendarsForUser(), ilCalendarCategory\TYPE_BOOK, ilCalendarCategory\TYPE_CH, ilCalendarCategory\TYPE_GLOBAL, ilCalendarCategory\TYPE_OBJ, and ilCalendarCategory\TYPE_USR.
Referenced by details(), edit(), importAppointments(), shareAssign(), shareAssignRoles(), shareDeassign(), shareSearch(), unshare(), and update().
|
protected |
save new calendar
protected
Definition at line 148 of file class.ilCalendarCategoryGUI.php.
References $_POST, $ilUser, add(), doSynchronisation(), ilCalendarCategory\LTYPE_REMOTE, manage(), ilUtil\sendFailure(), ilUtil\sendSuccess(), ilUtil\stripSlashes(), ilCalendarCategory\TYPE_GLOBAL, and ilCalendarCategory\TYPE_USR.
ilCalendarCategoryGUI::saveSelection | ( | ) |
save selection of categories
public
@return |
Definition at line 470 of file class.ilCalendarCategoryGUI.php.
References $_POST, $ilUser, ilCalendarCategories\_getInstance(), ilCalendarHidden\_getInstanceByUserId(), and ilUtil\sendSuccess().
ilCalendarCategoryGUI::shareAssign | ( | $a_editable = false | ) |
share assign
public
Definition at line 710 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_POST, $ilUser, $user_id, isEditable(), readPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), sharePerformSearch(), shareSearch(), and ilCalendarShared\TYPE_USR.
Referenced by shareAssignEditable().
ilCalendarCategoryGUI::shareAssignEditable | ( | ) |
Share with write access.
Definition at line 699 of file class.ilCalendarCategoryGUI.php.
References shareAssign().
ilCalendarCategoryGUI::shareAssignRoles | ( | $a_editable = false | ) |
share assign roles
public
@return |
Definition at line 764 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_POST, $ilUser, isEditable(), readPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), sharePerformSearch(), shareSearch(), and ilCalendarShared\TYPE_ROLE.
Referenced by shareAssignRolesEditable().
|
protected |
Share editable.
Definition at line 752 of file class.ilCalendarCategoryGUI.php.
References shareAssignRoles().
ilCalendarCategoryGUI::shareDeassign | ( | ) |
desassign users/roles from calendar
public
@return |
Definition at line 806 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_POST, isEditable(), readPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and shareSearch().
ilCalendarCategoryGUI::sharePerformSearch | ( | ) |
share perform search
public
Definition at line 595 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_POST, $_SESSION, $query, $res, ilObjectSearchFactory\_getUserSearchInstance(), QP_COMBINATION_OR, ilUtil\sendFailure(), shareSearch(), showRoleList(), showUserList(), and ilUtil\stripSlashes().
Referenced by shareAssign(), and shareAssignRoles().
ilCalendarCategoryGUI::shareSearch | ( | ) |
share calendar
public
@return |
Definition at line 554 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_SESSION, $tpl, initFormSearch(), isEditable(), manage(), readPermissions(), and ilUtil\sendFailure().
Referenced by shareAssign(), shareAssignRoles(), shareDeassign(), and sharePerformSearch().
|
protected |
show assigned aapointments
protected
Definition at line 1114 of file class.ilCalendarCategoryGUI.php.
References $_GET, ilCalendarCategoryAssignments\_getAssignedAppointments(), and ilCalendarCategories\_getInstance().
ilCalendarCategoryGUI::showCategories | ( | ) |
public
@return |
Definition at line 520 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_POST, and $_SESSION.
|
protected |
show role list
protected
array | array of role ids |
Definition at line 874 of file class.ilCalendarCategoryGUI.php.
References $tpl.
Referenced by sharePerformSearch().
|
protected |
show user list
protected
array | array of user ids |
Definition at line 849 of file class.ilCalendarCategoryGUI.php.
References $tpl.
Referenced by sharePerformSearch().
|
protected |
Switch calendar selection nmode.
Definition at line 1255 of file class.ilCalendarCategoryGUI.php.
References $_GET, and ilCalendarUserSettings\_getInstance().
|
protected |
Definition at line 312 of file class.ilCalendarCategoryGUI.php.
References $_GET, doSynchronisation(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Stop calendar sharing.
Definition at line 1079 of file class.ilCalendarCategoryGUI.php.
References $_GET, $ilUser, checkVisible(), ilCalendarShared\isSharedWithUser(), readPermissions(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
update
protected
Definition at line 353 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_POST, edit(), isEditable(), manage(), readPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
|
protected |
Upload appointments.
Definition at line 1492 of file class.ilCalendarCategoryGUI.php.
References $_REQUEST, $file, doImportFile(), ilUtil\ilTempnam(), initImportForm(), ilUtil\moveUploadedFile(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Definition at line 44 of file class.ilCalendarCategoryGUI.php.
|
protected |
Definition at line 47 of file class.ilCalendarCategoryGUI.php.
Referenced by isEditable().
|
protected |
Definition at line 45 of file class.ilCalendarCategoryGUI.php.
Referenced by __construct(), initFormSearch(), and manage().
|
protected |
Definition at line 43 of file class.ilCalendarCategoryGUI.php.
Referenced by add(), addReferenceLinks(), appendCalendarSelection(), askDeleteAppointments(), confirmDelete(), details(), edit(), executeCommand(), importAppointments(), manage(), shareSearch(), showRoleList(), and showUserList().
|
protected |
Definition at line 42 of file class.ilCalendarCategoryGUI.php.
Referenced by shareAssign().
|
protected |
Definition at line 48 of file class.ilCalendarCategoryGUI.php.
const ilCalendarCategoryGUI::SEARCH_ROLE = 2 |
Definition at line 38 of file class.ilCalendarCategoryGUI.php.
Referenced by initFormSearch().
const ilCalendarCategoryGUI::SEARCH_USER = 1 |
Definition at line 37 of file class.ilCalendarCategoryGUI.php.
Referenced by initFormSearch().
const ilCalendarCategoryGUI::VIEW_MANAGE = 1 |
Definition at line 40 of file class.ilCalendarCategoryGUI.php.