ILIAS
Release_3_10_x_branch Revision 61812
|
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 | |
shareAssign () | |
share assign | |
shareAssignRoles () | |
share assign roles | |
shareDeassign () | |
desassign users/roles from calendar | |
getHTML () |
Data Fields | |
const | SEARCH_USER = 1 |
const | SEARCH_ROLE = 2 |
Protected Member Functions | |
cancel () | |
cancel | |
add () | |
add new calendar | |
save () | |
save new calendar | |
edit () | |
edit category | |
update () | |
update | |
confirmDelete () | |
confirm delete | |
delete () | |
Delete. | |
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 | |
showAssignedAppointments () | |
show assigned aapointments | |
askDeleteAppointments () | |
ask delete appointments | |
deleteAppointments () | |
delete appointments | |
appendCalendarSelection () | |
switchCalendarMode () | |
Switch calendar selection nmode. | |
checkVisible () | |
addReferenceLinks ($a_obj_id) | |
Show links to references. |
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
Definition at line 35 of file class.ilCalendarCategoryGUI.php.
ilCalendarCategoryGUI::__construct | ( | $a_user_id, | |
$seed | |||
) |
Constructor.
public
int | user id |
Definition at line 55 of file class.ilCalendarCategoryGUI.php.
|
protected |
add new calendar
protected
Definition at line 114 of file class.ilCalendarCategoryGUI.php.
References $tpl, and initFormCategory().
Referenced by save().
|
protected |
Show links to references.
int | $a_obj_id | $obj_id |
Definition at line 1098 of file class.ilCalendarCategoryGUI.php.
References $ref_id, $title, $tpl, ilObject\_getAllReferences(), ilLink\_getLink(), ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), and ilUtil\getTypeIconPath().
Referenced by edit().
|
protected |
@return |
Definition at line 960 of file class.ilCalendarCategoryGUI.php.
References $tpl, ilCalendarUserSettings\_getInstance(), ilCalendarUserSettings\CAL_SELECTION_ITEMS, and ilCalendarUserSettings\CAL_SELECTION_MEMBERSHIP.
Referenced by getHTML().
|
protected |
ask delete appointments
protected
Definition at line 877 of file class.ilCalendarCategoryGUI.php.
References $_GET, $tpl, edit(), and ilUtil\sendInfo().
|
protected |
cancel
protected
Definition at line 103 of file class.ilCalendarCategoryGUI.php.
|
protected |
@return |
Definition at line 1073 of file class.ilCalendarCategoryGUI.php.
References $ilErr.
Referenced by edit().
|
protected |
confirm delete
protected
Definition at line 284 of file class.ilCalendarCategoryGUI.php.
References $_GET, $tpl, edit(), isEditable(), readPermissions(), and ilUtil\sendInfo().
|
protected |
Delete.
protected
@return |
Definition at line 324 of file class.ilCalendarCategoryGUI.php.
References $_GET, edit(), isEditable(), readPermissions(), and ilUtil\sendInfo().
|
protected |
delete appointments
protected
Definition at line 913 of file class.ilCalendarCategoryGUI.php.
References ilCalendarCategoryAssignments\_deleteByAppointmentId(), edit(), and ilUtil\sendInfo().
|
protected |
edit category
protected
Definition at line 168 of file class.ilCalendarCategoryGUI.php.
References $_GET, $tpl, addReferenceLinks(), checkVisible(), ilYuiUtil\initButtonControl(), initFormCategory(), isEditable(), readPermissions(), ilUtil\sendInfo(), showAssignedAppointments(), ilCalendarCategory\TYPE_GLOBAL, ilCalendarCategory\TYPE_OBJ, and ilCalendarCategory\TYPE_USR.
Referenced by askDeleteAppointments(), confirmDelete(), delete(), deleteAppointments(), shareAssign(), shareAssignRoles(), shareDeassign(), shareSearch(), and update().
ilCalendarCategoryGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 73 of file class.ilCalendarCategoryGUI.php.
References $_GET, $cmd, $ilSetting, and $tpl.
ilCalendarCategoryGUI::getHTML | ( | ) |
Definition at line 937 of file class.ilCalendarCategoryGUI.php.
References $title, and appendCalendarSelection().
|
protected |
init edit/create category form
protected
Definition at line 765 of file class.ilCalendarCategoryGUI.php.
References $_GET, $title, ilCalendarSettings\_getInstance(), ilCalendarCategories\_getInstance(), isEditable(), 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 720 of file class.ilCalendarCategoryGUI.php.
References $lng, $user, SEARCH_ROLE, SEARCH_USER, ilTextInputGUI\setValue(), and ilRadioGroupInputGUI\setValue().
Referenced by shareSearch().
|
private |
check if calendar is editable private
Definition at line 1088 of file class.ilCalendarCategoryGUI.php.
References $editable.
Referenced by confirmDelete(), delete(), edit(), initFormCategory(), shareAssign(), shareAssignRoles(), shareDeassign(), shareSearch(), and update().
|
private |
read permissions
private
@return |
Definition at line 1021 of file class.ilCalendarCategoryGUI.php.
References $_GET, ilObject\_getAllReferences(), ilCalendarSettings\_getInstance(), ilCalendarShared\getSharedCalendarsForUser(), ilCalendarCategory\TYPE_GLOBAL, ilCalendarCategory\TYPE_OBJ, and ilCalendarCategory\TYPE_USR.
Referenced by confirmDelete(), delete(), edit(), shareAssign(), shareAssignRoles(), shareDeassign(), shareSearch(), and update().
|
protected |
save new calendar
protected
Definition at line 129 of file class.ilCalendarCategoryGUI.php.
References add(), ilUtil\sendInfo(), ilUtil\stripSlashes(), ilCalendarCategory\TYPE_GLOBAL, and ilCalendarCategory\TYPE_USR.
ilCalendarCategoryGUI::saveSelection | ( | ) |
save selection of categories
public
@return |
Definition at line 357 of file class.ilCalendarCategoryGUI.php.
References ilCalendarCategories\_getInstance(), ilCalendarHidden\_getInstanceByUserId(), and ilUtil\sendInfo().
ilCalendarCategoryGUI::shareAssign | ( | ) |
share assign
public
Definition at line 537 of file class.ilCalendarCategoryGUI.php.
References $_GET, $user_id, edit(), isEditable(), readPermissions(), ilUtil\sendInfo(), sharePerformSearch(), and ilCalendarShared\TYPE_USR.
ilCalendarCategoryGUI::shareAssignRoles | ( | ) |
share assign roles
public
@return |
Definition at line 583 of file class.ilCalendarCategoryGUI.php.
References $_GET, edit(), isEditable(), readPermissions(), ilUtil\sendInfo(), sharePerformSearch(), and ilCalendarShared\TYPE_ROLE.
ilCalendarCategoryGUI::shareDeassign | ( | ) |
desassign users/roles from calendar
public
@return |
Definition at line 625 of file class.ilCalendarCategoryGUI.php.
References $_GET, edit(), isEditable(), readPermissions(), and ilUtil\sendInfo().
ilCalendarCategoryGUI::sharePerformSearch | ( | ) |
share perform search
public
Definition at line 435 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_SESSION, $res, ilObjectSearchFactory\_getUserSearchInstance(), QP_COMBINATION_OR, ilUtil\sendInfo(), shareSearch(), showRoleList(), showUserList(), and ilUtil\stripSlashes().
Referenced by shareAssign(), and shareAssignRoles().
ilCalendarCategoryGUI::shareSearch | ( | ) |
share calendar
public
@return |
Definition at line 403 of file class.ilCalendarCategoryGUI.php.
References $_GET, $_SESSION, $tpl, edit(), initFormSearch(), isEditable(), readPermissions(), and ilUtil\sendInfo().
Referenced by sharePerformSearch().
|
protected |
show assigned aapointments
protected
Definition at line 857 of file class.ilCalendarCategoryGUI.php.
References $_GET, ilCalendarCategoryAssignments\_getAssignedAppointments(), and ilCalendarCategories\_getInstance().
Referenced by edit().
ilCalendarCategoryGUI::showCategories | ( | ) |
public
@return |
Definition at line 391 of file class.ilCalendarCategoryGUI.php.
|
protected |
show role list
protected
array | array of role ids |
Definition at line 693 of file class.ilCalendarCategoryGUI.php.
References $tpl.
Referenced by sharePerformSearch().
|
protected |
show user list
protected
array | array of user ids |
Definition at line 668 of file class.ilCalendarCategoryGUI.php.
References $tpl.
Referenced by sharePerformSearch().
|
protected |
Switch calendar selection nmode.
Definition at line 1003 of file class.ilCalendarCategoryGUI.php.
References $_GET, and ilCalendarUserSettings\_getInstance().
|
protected |
update
protected
Definition at line 252 of file class.ilCalendarCategoryGUI.php.
References $_GET, edit(), isEditable(), readPermissions(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
|
protected |
Definition at line 42 of file class.ilCalendarCategoryGUI.php.
|
protected |
Definition at line 45 of file class.ilCalendarCategoryGUI.php.
Referenced by isEditable().
|
protected |
Definition at line 43 of file class.ilCalendarCategoryGUI.php.
Referenced by __construct(), and initFormSearch().
|
protected |
Definition at line 41 of file class.ilCalendarCategoryGUI.php.
Referenced by add(), addReferenceLinks(), appendCalendarSelection(), askDeleteAppointments(), confirmDelete(), edit(), executeCommand(), shareSearch(), showRoleList(), and showUserList().
|
protected |
Definition at line 40 of file class.ilCalendarCategoryGUI.php.
Referenced by shareAssign().
|
protected |
Definition at line 46 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().