|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Handles shared calendars. More...
Collaboration diagram for ilCalendarShared:Public Member Functions | |
| __construct ($a_calendar_id) | |
| constructor More... | |
| getCalendarId () | |
| get calendar id More... | |
| getShared () | |
| get shared More... | |
| getUsers () | |
| get users More... | |
| getRoles () | |
| get roles More... | |
| isShared ($a_obj_id) | |
| Check if calendar is already shared with specific user or role. More... | |
| isEditableForUser ($a_user_id) | |
| Check if calendar is editable for user. More... | |
| share ($a_obj_id, $a_type, $a_writable=false) | |
| share calendar More... | |
| stopSharing ($a_obj_id) | |
| stop sharing More... | |
Static Public Member Functions | |
| static | deleteByCalendar ($a_cal_id) |
| Delete all entries for a specific calendar id. More... | |
| static | deleteByUser ($a_user_id) |
| Delete all entries for a specific user. More... | |
| static | isSharedWithUser ($a_usr_id, $a_calendar_id) |
| is shared with user More... | |
| static | getSharedCalendarsForUser ($a_usr_id=0) |
| get shared calendars of user More... | |
Data Fields | |
| const | TYPE_USR = 1 |
| const | TYPE_ROLE = 2 |
Protected Member Functions | |
| read () | |
| read shared calendars More... | |
Protected Attributes | |
| $db | |
Private Attributes | |
| $calendar_id | |
| $shared = array() | |
| $shared_users = array() | |
| $shared_roles = array() | |
| ilCalendarShared::__construct | ( | $a_calendar_id | ) |
constructor
@access public
| int | calendar id |
Definition at line 53 of file class.ilCalendarShared.php.
References $DIC, $ilDB, and read().
Here is the call graph for this function:
|
static |
Delete all entries for a specific calendar id.
@access public
return
Definition at line 72 of file class.ilCalendarShared.php.
|
static |
Delete all entries for a specific user.
@access public
| int | usr_id |
Definition at line 91 of file class.ilCalendarShared.php.
| ilCalendarShared::getCalendarId | ( | ) |
get calendar id
@access public
Definition at line 210 of file class.ilCalendarShared.php.
References $calendar_id.
Referenced by read(), share(), and stopSharing().
Here is the caller graph for this function:| ilCalendarShared::getRoles | ( | ) |
get roles
@access public
Definition at line 243 of file class.ilCalendarShared.php.
| ilCalendarShared::getShared | ( | ) |
get shared
@access public
Definition at line 221 of file class.ilCalendarShared.php.
|
static |
get shared calendars of user
@access public
| int | user id |
Definition at line 152 of file class.ilCalendarShared.php.
References $DIC, $ilDB, $ilUser, $query, $res, $row, $shared, ilCalendarCategories\_isOwner(), and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarSharedStatus\getOpenInvitations(), ilCalendarCategoryGUI\invitations(), and ilCalendarCategoryGUI\readPermissions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarShared::getUsers | ( | ) |
get users
@access public
Definition at line 232 of file class.ilCalendarShared.php.
| ilCalendarShared::isEditableForUser | ( | $a_user_id | ) |
Check if calendar is editable for user.
| type | $a_user_id |
Definition at line 264 of file class.ilCalendarShared.php.
| ilCalendarShared::isShared | ( | $a_obj_id | ) |
Check if calendar is already shared with specific user or role.
@access public
| int | obj_id |
Definition at line 255 of file class.ilCalendarShared.php.
Referenced by share(), and stopSharing().
Here is the caller graph for this function:
|
static |
is shared with user
@access public
| int | usr_id |
| int | calendar id |
Definition at line 113 of file class.ilCalendarShared.php.
References $DIC, $id, $ilDB, $query, $res, $row, $type, ilDBConstants\FETCHMODE_OBJECT, TYPE_ROLE, and TYPE_USR.
Referenced by ilCalendarCategoryGUI\acceptShared(), ilCalendarCategoryGUI\declineShared(), and ilCalendarCategoryGUI\unshare().
Here is the caller graph for this function:
|
protected |
read shared calendars
@access protected
Definition at line 354 of file class.ilCalendarShared.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, getCalendarId(), TYPE_ROLE, and TYPE_USR.
Referenced by __construct(), share(), and stopSharing().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarShared::share | ( | $a_obj_id, | |
| $a_type, | |||
$a_writable = false |
|||
| ) |
share calendar
@access public
| int | obj_id |
| int | type |
Definition at line 296 of file class.ilCalendarShared.php.
References $a_type, $DIC, $ilDB, $query, $res, getCalendarId(), isShared(), and read().
Here is the call graph for this function:| ilCalendarShared::stopSharing | ( | $a_obj_id | ) |
stop sharing
@access public
| int | obj_id |
Definition at line 327 of file class.ilCalendarShared.php.
References $DIC, $ilDB, $query, $res, ilCalendarSharedStatus\deleteStatus(), getCalendarId(), isShared(), and read().
Here is the call graph for this function:
|
private |
Definition at line 38 of file class.ilCalendarShared.php.
Referenced by getCalendarId().
|
protected |
Definition at line 44 of file class.ilCalendarShared.php.
|
private |
Definition at line 40 of file class.ilCalendarShared.php.
Referenced by getSharedCalendarsForUser().
|
private |
Definition at line 42 of file class.ilCalendarShared.php.
|
private |
Definition at line 41 of file class.ilCalendarShared.php.
| const ilCalendarShared::TYPE_ROLE = 2 |
Definition at line 36 of file class.ilCalendarShared.php.
Referenced by isEditableForUser(), isSharedWithUser(), ilCalendarSharedListTableGUI\parse(), read(), and ilCalendarCategoryGUI\shareAssignRoles().
| const ilCalendarShared::TYPE_USR = 1 |
Definition at line 35 of file class.ilCalendarShared.php.
Referenced by isEditableForUser(), isSharedWithUser(), ilCalendarSharedListTableGUI\parse(), read(), and ilCalendarCategoryGUI\shareAssign().