ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Administration, Side-Block presentation of calendar categories. More...
Public Member Functions | |
__construct ($a_user_id, $seed, $a_ref_id=0) | |
Constructor. More... | |
executeCommand () | |
Execute command. More... | |
saveSelection () | |
save selection of categories More... | |
shareSearch () | |
share calendar More... | |
sharePerformSearch () | |
share perform search More... | |
shareAssignEditable () | |
Share with write access. More... | |
shareAssign ($a_editable=false) | |
share assign More... | |
shareAssignRoles ($a_editable=false) | |
share assign roles More... | |
shareDeassign () | |
desassign users/roles from calendar More... | |
getSearchToolbar () | |
Get search toolbar. More... | |
getHTML () | |
addSubTabs ($a_active) | |
Add subtabs. More... | |
invitations () | |
Invitations. More... | |
Data Fields | |
const | SEARCH_USER = 1 |
const | SEARCH_ROLE = 2 |
const | VIEW_MANAGE = 1 |
Protected Member Functions | |
cancel () | |
cancel More... | |
add (ilPropertyFormGUI $form=null) | |
add new calendar More... | |
save () | |
save new calendar More... | |
edit (ilPropertyFormGUI $form=null) | |
edit category More... | |
details () | |
show calendar details More... | |
synchroniseCalendar () | |
doSynchronisation (ilCalendarCategory $category) | |
Sync calendar. More... | |
update () | |
update More... | |
confirmDelete () | |
confirm delete More... | |
delete () | |
Delete. More... | |
shareAssignRolesEditable () | |
Share editable. More... | |
showUserList ($a_ids=array()) | |
show user list More... | |
showRoleList ($a_ids=array()) | |
show role list More... | |
initFormCategory ($a_mode) | |
init edit/create category form More... | |
unshare () | |
Stop calendar sharing. More... | |
showAssignedAppointments () | |
show assigned aapointments More... | |
askDeleteAppointments () | |
ask delete appointments More... | |
deleteAppointments () | |
delete appointments More... | |
appendCalendarSelection () | |
switchCalendarMode () | |
Switch calendar selection nmode. More... | |
checkVisible () | |
isImportable () | |
addReferenceLinks ($a_obj_id) | |
Show links to references. More... | |
manage ($a_reset_offsets=false) | |
Manage calendars type $lng type $ilCtrl type $tpl. More... | |
importAppointments (ilPropertyFormGUI $form=null) | |
import appointments More... | |
initImportForm () | |
Create import form. More... | |
uploadAppointments () | |
Upload appointments. More... | |
doImportFile ($file, $category_id) | |
Import ics. More... | |
acceptShared () | |
accept shared calendar More... | |
declineShared () | |
accept shared calendar More... | |
Protected Attributes | |
$user_id | |
$ctrl | |
$lng | |
$tabs | |
$editable = false | |
$visible = false | |
$category_id = 0 | |
$tpl | |
Private Member Functions | |
readPermissions () | |
read permissions More... | |
isEditable () | |
check if calendar is editable private More... | |
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, | |||
$a_ref_id = 0 |
|||
) |
Constructor.
public
int | $a_user_id | user id |
int | $seed | seed |
int | $a_ref_id | container ref id |
Definition at line 80 of file class.ilCalendarCategoryGUI.php.
References $_GET, $DIC, ilObject\_lookupObjId(), array, and ilCalendarActions\getInstance().
|
protected |
accept shared calendar
protected
Definition at line 1543 of file class.ilCalendarCategoryGUI.php.
References $_POST, $ilUser, ilCalendarShared\isSharedWithUser(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
add new calendar
protected
Definition at line 165 of file class.ilCalendarCategoryGUI.php.
References $form, $tpl, and initFormCategory().
Referenced by save().
|
protected |
Show links to references.
int | $a_obj_id | $obj_id |
Definition at line 1313 of file class.ilCalendarCategoryGUI.php.
References $title, $tpl, $type, ilObject\_getAllReferences(), ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), and ilObject\_lookupType().
Referenced by initFormCategory().
ilCalendarCategoryGUI::addSubTabs | ( | $a_active | ) |
Add subtabs.
Definition at line 1487 of file class.ilCalendarCategoryGUI.php.
References $ctrl, $ilCtrl, $lng, and $tabs.
Referenced by invitations(), and manage().
|
protected |
Definition at line 1160 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 1089 of file class.ilCalendarCategoryGUI.php.
References $_POST, $tpl, details(), and ilUtil\sendFailure().
|
protected |
|
protected |
Definition at line 1283 of file class.ilCalendarCategoryGUI.php.
References $ilErr.
Referenced by details(), importAppointments(), and unshare().
|
protected |
confirm delete
protected
Definition at line 374 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_POST, $tpl, array, manage(), and ilUtil\sendFailure().
|
protected |
accept shared calendar
protected
Definition at line 1577 of file class.ilCalendarCategoryGUI.php.
References $_POST, $ilUser, ilCalendarShared\isSharedWithUser(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Delete.
protected
Definition at line 421 of file class.ilCalendarCategoryGUI.php.
References $_POST, $ilCtrl, manage(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
delete appointments
protected
Definition at line 1123 of file class.ilCalendarCategoryGUI.php.
References $_POST, ilCalendarCategoryAssignments\_deleteByAppointmentId(), details(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
show calendar details
protected
Definition at line 273 of file class.ilCalendarCategoryGUI.php.
References $info, $tpl, checkVisible(), readPermissions(), ilUtil\sendFailure(), and showAssignedAppointments().
Referenced by askDeleteAppointments(), and deleteAppointments().
|
protected |
Import ics.
type | $file | |
type | $category_id |
Definition at line 1463 of file class.ilCalendarCategoryGUI.php.
References $category_id, $file, $GLOBALS, $parser, array, ilICalParser\INPUT_FILE, and ilCalendarCategoryAssignments\lookupNumberOfAssignedAppointments().
Referenced by uploadAppointments().
|
protected |
Sync calendar.
ilCalendarCategory | $cat |
Definition at line 318 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 242 of file class.ilCalendarCategoryGUI.php.
References $DIC, $form, $tabs, $tpl, initFormCategory(), readPermissions(), and ilUtil\sendFailure().
Referenced by update().
ilCalendarCategoryGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 121 of file class.ilCalendarCategoryGUI.php.
References $_GET, $ilSetting, $ilUser, $tpl, array, and IL_CAL_DATE.
ilCalendarCategoryGUI::getHTML | ( | ) |
Definition at line 1144 of file class.ilCalendarCategoryGUI.php.
References $html, $ilCtrl, and $ilUser.
ilCalendarCategoryGUI::getSearchToolbar | ( | ) |
Get search toolbar.
Definition at line 848 of file class.ilCalendarCategoryGUI.php.
References $_POST, $DIC, $lng, $options, $si, array, ilTextInputGUI\setValue(), and ilSelectInputGUI\setValue().
Referenced by sharePerformSearch(), and shareSearch().
|
protected |
import appointments
Definition at line 1377 of file class.ilCalendarCategoryGUI.php.
References $form, $tpl, checkVisible(), initImportForm(), isImportable(), readPermissions(), and ilUtil\sendFailure().
|
protected |
init edit/create category form
protected
Definition at line 890 of file class.ilCalendarCategoryGUI.php.
References $form, $ilUser, $location, $pass, $title, $type, $url, ilCalendarCategories\_getInstance(), ilCalendarSettings\_getInstance(), addReferenceLinks(), array, ilUserUtil\getNamePresentation(), isEditable(), ilCalendarCategory\LTYPE_LOCAL, ilCalendarCategory\LTYPE_REMOTE, ilFormPropertyGUI\setDisabled(), ilColorPickerInputGUI\setValue(), ilNonEditableValueGUI\setValue(), ilCalendarCategory\TYPE_GLOBAL, ilCalendarCategory\TYPE_OBJ, and ilCalendarCategory\TYPE_USR.
Referenced by add(), edit(), save(), and update().
|
protected |
Create import form.
Definition at line 1413 of file class.ilCalendarCategoryGUI.php.
References $form, array, and ilFileInputGUI\setALlowDeletion().
Referenced by importAppointments(), and uploadAppointments().
ilCalendarCategoryGUI::invitations | ( | ) |
Invitations.
Definition at line 1520 of file class.ilCalendarCategoryGUI.php.
References $table, addSubTabs(), and ilCalendarShared\getSharedCalendarsForUser().
|
private |
check if calendar is editable private
Definition at line 1297 of file class.ilCalendarCategoryGUI.php.
References $editable.
Referenced by initFormCategory(), shareAssign(), shareAssignRoles(), shareDeassign(), shareSearch(), and update().
|
protected |
Definition at line 1302 of file class.ilCalendarCategoryGUI.php.
Referenced by importAppointments().
|
protected |
Manage calendars type $lng type $ilCtrl type $tpl.
Definition at line 1351 of file class.ilCalendarCategoryGUI.php.
References $ilCtrl, $lng, $tpl, and addSubTabs().
Referenced by confirmDelete(), delete(), and shareSearch().
|
private |
read permissions
private
Definition at line 1221 of file class.ilCalendarCategoryGUI.php.
References $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 193 of file class.ilCalendarCategoryGUI.php.
References $form, $GLOBALS, add(), doSynchronisation(), initFormCategory(), ilCalendarCategory\LTYPE_REMOTE, ilUtil\sendFailure(), ilUtil\sendSuccess(), ilCalendarCategory\TYPE_GLOBAL, ilCalendarCategory\TYPE_USR, and user().
ilCalendarCategoryGUI::saveSelection | ( | ) |
save selection of categories
public
Definition at line 459 of file class.ilCalendarCategoryGUI.php.
References $_POST, $ilUser, ilCalendarCategories\_getInstance(), ilCalendarVisibility\_getInstanceByUserId(), array, and ilUtil\sendSuccess().
ilCalendarCategoryGUI::shareAssign | ( | $a_editable = false | ) |
share assign
public
Definition at line 674 of file class.ilCalendarCategoryGUI.php.
References $_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 663 of file class.ilCalendarCategoryGUI.php.
References shareAssign().
ilCalendarCategoryGUI::shareAssignRoles | ( | $a_editable = false | ) |
share assign roles
public
Definition at line 723 of file class.ilCalendarCategoryGUI.php.
References $_POST, $ilUser, isEditable(), readPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), sharePerformSearch(), shareSearch(), and ilCalendarShared\TYPE_ROLE.
Referenced by shareAssignRolesEditable().
|
protected |
Share editable.
Definition at line 711 of file class.ilCalendarCategoryGUI.php.
References shareAssignRoles().
ilCalendarCategoryGUI::shareDeassign | ( | ) |
desassign users/roles from calendar
public
Definition at line 761 of file class.ilCalendarCategoryGUI.php.
References $_POST, isEditable(), readPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and shareSearch().
ilCalendarCategoryGUI::sharePerformSearch | ( | ) |
share perform search
public
Definition at line 565 of file class.ilCalendarCategoryGUI.php.
References $_POST, $_SESSION, $DIC, $query, $res, $tabs, $type, ilObjectSearchFactory\_getUserSearchInstance(), array, getSearchToolbar(), QP_COMBINATION_OR, ilUtil\sendFailure(), shareSearch(), showRoleList(), showUserList(), and ilUtil\stripSlashes().
Referenced by shareAssign(), and shareAssignRoles().
ilCalendarCategoryGUI::shareSearch | ( | ) |
share calendar
public
Definition at line 525 of file class.ilCalendarCategoryGUI.php.
References $_SESSION, $DIC, $table, $tabs, $tpl, getSearchToolbar(), isEditable(), manage(), readPermissions(), and ilUtil\sendFailure().
Referenced by shareAssign(), shareAssignRoles(), shareDeassign(), and sharePerformSearch().
|
protected |
show assigned aapointments
protected
Definition at line 1067 of file class.ilCalendarCategoryGUI.php.
References ilCalendarCategoryAssignments\_getAssignedAppointments(), and ilCalendarCategories\_getInstance().
Referenced by details().
|
protected |
show role list
protected
array | array of role ids |
Definition at line 825 of file class.ilCalendarCategoryGUI.php.
Referenced by sharePerformSearch().
|
protected |
show user list
protected
array | array of user ids |
Definition at line 800 of file class.ilCalendarCategoryGUI.php.
Referenced by sharePerformSearch().
|
protected |
Switch calendar selection nmode.
Definition at line 1204 of file class.ilCalendarCategoryGUI.php.
References $_GET, and ilCalendarUserSettings\_getInstance().
|
protected |
Definition at line 295 of file class.ilCalendarCategoryGUI.php.
References doSynchronisation(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Stop calendar sharing.
Definition at line 1034 of file class.ilCalendarCategoryGUI.php.
References $category_id, $ilUser, checkVisible(), ilCalendarShared\isSharedWithUser(), readPermissions(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
update
protected
Definition at line 334 of file class.ilCalendarCategoryGUI.php.
References $form, edit(), initFormCategory(), isEditable(), readPermissions(), ilUtil\sendFailure(), ilUtil\sendSuccess(), and ilCalendarCategory\TYPE_OBJ.
|
protected |
Upload appointments.
Definition at line 1434 of file class.ilCalendarCategoryGUI.php.
References $file, $form, doImportFile(), ilUtil\ilTempnam(), initImportForm(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
|
protected |
Definition at line 65 of file class.ilCalendarCategoryGUI.php.
Referenced by doImportFile(), and unshare().
|
protected |
Definition at line 47 of file class.ilCalendarCategoryGUI.php.
Referenced by addSubTabs().
|
protected |
Definition at line 59 of file class.ilCalendarCategoryGUI.php.
Referenced by isEditable().
|
protected |
Definition at line 52 of file class.ilCalendarCategoryGUI.php.
Referenced by addSubTabs(), getSearchToolbar(), and manage().
|
protected |
Definition at line 57 of file class.ilCalendarCategoryGUI.php.
Referenced by addSubTabs(), edit(), sharePerformSearch(), and shareSearch().
|
protected |
Definition at line 70 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 60 of file class.ilCalendarCategoryGUI.php.
const ilCalendarCategoryGUI::SEARCH_ROLE = 2 |
Definition at line 38 of file class.ilCalendarCategoryGUI.php.
const ilCalendarCategoryGUI::SEARCH_USER = 1 |
Definition at line 37 of file class.ilCalendarCategoryGUI.php.
const ilCalendarCategoryGUI::VIEW_MANAGE = 1 |
Definition at line 40 of file class.ilCalendarCategoryGUI.php.
Referenced by ilCalendarManageTableGUI\fillRow().