ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Handles shared calendars. More...
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
public
int | calendar id |
Definition at line 53 of file class.ilCalendarShared.php.
|
static |
Delete all entries for a specific calendar id.
public
Definition at line 70 of file class.ilCalendarShared.php.
References $ilDB, $query, and $res.
|
static |
Delete all entries for a specific user.
public
int | usr_id |
Definition at line 87 of file class.ilCalendarShared.php.
References $ilDB, $query, and $res.
ilCalendarShared::getCalendarId | ( | ) |
get calendar id
public
Definition at line 208 of file class.ilCalendarShared.php.
References $calendar_id.
Referenced by read(), share(), and stopSharing().
ilCalendarShared::getRoles | ( | ) |
get roles
public
Definition at line 241 of file class.ilCalendarShared.php.
References array.
ilCalendarShared::getShared | ( | ) |
get shared
public
Definition at line 219 of file class.ilCalendarShared.php.
References array.
|
static |
get shared calendars of user
public
int | user id |
Definition at line 148 of file class.ilCalendarShared.php.
References $ilDB, $ilUser, $query, $res, $row, $shared, ilCalendarCategories\_isOwner(), array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarInboxGUI\inbox(), and ilCalendarCategoryGUI\readPermissions().
ilCalendarShared::getUsers | ( | ) |
get users
public
Definition at line 230 of file class.ilCalendarShared.php.
References array.
ilCalendarShared::isEditableForUser | ( | $a_user_id | ) |
Check if calendar is editable for user.
type | $a_user_id |
Definition at line 262 of file class.ilCalendarShared.php.
References $GLOBALS, $info, and array.
ilCalendarShared::isShared | ( | $a_obj_id | ) |
Check if calendar is already shared with specific user or role.
public
int | obj_id |
Definition at line 253 of file class.ilCalendarShared.php.
Referenced by share(), and stopSharing().
|
static |
is shared with user
public
int | usr_id |
int | calendar id |
Definition at line 107 of file class.ilCalendarShared.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarInboxGUI\acceptShared(), ilCalendarInboxGUI\declineShared(), and ilCalendarCategoryGUI\unshare().
|
protected |
read shared calendars
protected
Definition at line 360 of file class.ilCalendarShared.php.
References $ilDB, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, and getCalendarId().
Referenced by __construct(), share(), and stopSharing().
ilCalendarShared::share | ( | $a_obj_id, | |
$a_type, | |||
$a_writable = false |
|||
) |
share calendar
public
int | obj_id |
int | type |
Definition at line 304 of file class.ilCalendarShared.php.
References $a_type, $ilDB, $query, $res, getCalendarId(), isShared(), and read().
ilCalendarShared::stopSharing | ( | $a_obj_id | ) |
stop sharing
public
int | obj_id |
Definition at line 334 of file class.ilCalendarShared.php.
References $ilDB, $query, $res, ilCalendarSharedStatus\deleteStatus(), getCalendarId(), isShared(), and read().
|
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 ilCalendarSharedListTableGUI\parse(), and ilCalendarCategoryGUI\shareAssignRoles().
const ilCalendarShared::TYPE_USR = 1 |
Definition at line 35 of file class.ilCalendarShared.php.
Referenced by ilCalendarSharedListTableGUI\parse(), and ilCalendarCategoryGUI\shareAssign().