ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Handles shared calendars. More...
Public Member Functions | |
__construct (int $a_calendar_id) | |
getCalendarId () | |
getShared () | |
getUsers () | |
getRoles () | |
isShared (int $a_obj_id) | |
isEditableForUser (int $a_user_id) | |
share (int $a_obj_id, int $a_type, bool $a_writable=false) | |
stopSharing (int $a_obj_id) | |
Static Public Member Functions | |
static | deleteByCalendar (int $a_cal_id) |
static | deleteByUser (int $a_user_id) |
Delete all entries for a specific user. More... | |
static | isSharedWithUser (int $a_usr_id, int $a_calendar_id) |
is shared with user More... | |
static | getSharedCalendarsForUser (int $a_usr_id=0) |
Data Fields | |
const | TYPE_USR = 1 |
const | TYPE_ROLE = 2 |
Protected Member Functions | |
read () | |
Protected Attributes | |
ilDBInterface | $db |
ilRbacReview | $rbacreview |
Private Attributes | |
int | $calendar_id |
array | $shared = array() |
array | $shared_users = array() |
array | $shared_roles = array() |
Handles shared calendars.
Definition at line 26 of file class.ilCalendarShared.php.
ilCalendarShared::__construct | ( | int | $a_calendar_id | ) |
|
static |
|
static |
Delete all entries for a specific user.
Definition at line 62 of file class.ilCalendarShared.php.
References $DIC, $ilDB, and $res.
ilCalendarShared::getCalendarId | ( | ) |
Definition at line 155 of file class.ilCalendarShared.php.
References $calendar_id.
Referenced by read(), share(), and stopSharing().
ilCalendarShared::getRoles | ( | ) |
Definition at line 170 of file class.ilCalendarShared.php.
References $shared_roles.
ilCalendarShared::getShared | ( | ) |
Definition at line 160 of file class.ilCalendarShared.php.
References $shared.
|
static |
Definition at line 106 of file class.ilCalendarShared.php.
References $DIC, $ilDB, $res, $shared, ilCalendarCategories\_isOwner(), ilRbacReview\assignedRoles(), ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilCalendarSharedStatus\getOpenInvitations(), ilCalendarCategoryGUI\invitations(), and ilCalendarCategoryGUI\readPermissions().
ilCalendarShared::getUsers | ( | ) |
Definition at line 165 of file class.ilCalendarShared.php.
References $shared_users.
ilCalendarShared::isEditableForUser | ( | int | $a_user_id | ) |
Definition at line 180 of file class.ilCalendarShared.php.
Referenced by ilCalendarCategoryGUI\readPermissions().
ilCalendarShared::isShared | ( | int | $a_obj_id | ) |
Definition at line 175 of file class.ilCalendarShared.php.
Referenced by share(), and stopSharing().
|
static |
is shared with user
Definition at line 74 of file class.ilCalendarShared.php.
References $DIC, $id, $ilDB, $res, ilRbacReview\assignedRoles(), ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilCalendarCategoryGUI\acceptShared(), ilCalendarCategoryGUI\declineShared(), and ilCalendarCategoryGUI\unshare().
|
protected |
Definition at line 235 of file class.ilCalendarShared.php.
References $res, ilDBConstants\FETCHMODE_OBJECT, getCalendarId(), and ILIAS\Repository\int().
Referenced by __construct(), share(), and stopSharing().
ilCalendarShared::share | ( | int | $a_obj_id, |
int | $a_type, | ||
bool | $a_writable = false |
||
) |
Definition at line 204 of file class.ilCalendarShared.php.
References $res, getCalendarId(), isShared(), and read().
ilCalendarShared::stopSharing | ( | int | $a_obj_id | ) |
Definition at line 222 of file class.ilCalendarShared.php.
References $res, ilCalendarSharedStatus\deleteStatus(), getCalendarId(), isShared(), and read().
|
private |
Definition at line 31 of file class.ilCalendarShared.php.
Referenced by getCalendarId().
|
protected |
Definition at line 37 of file class.ilCalendarShared.php.
|
protected |
Definition at line 38 of file class.ilCalendarShared.php.
|
private |
Definition at line 33 of file class.ilCalendarShared.php.
Referenced by getShared(), and getSharedCalendarsForUser().
|
private |
Definition at line 35 of file class.ilCalendarShared.php.
Referenced by getRoles().
|
private |
Definition at line 34 of file class.ilCalendarShared.php.
Referenced by getUsers().
const ilCalendarShared::TYPE_ROLE = 2 |
Definition at line 29 of file class.ilCalendarShared.php.
Referenced by ilCalendarSharedListTableGUI\parse(), and ilCalendarCategoryGUI\shareAssignRoles().
const ilCalendarShared::TYPE_USR = 1 |
Definition at line 28 of file class.ilCalendarShared.php.
Referenced by ilCalendarSharedListTableGUI\parse(), and ilCalendarCategoryGUI\shareAssign().