ILIAS
Release_4_1_x_branch Revision 61804
|
Handles shared calendars. More...
Public Member Functions | |
__construct ($a_calendar_id) | |
constructor | |
getCalendarId () | |
get calendar id | |
getShared () | |
get shared | |
getUsers () | |
get users | |
getRoles () | |
get roles | |
isShared ($a_obj_id) | |
Check if calendar is already shared with specific user or role. | |
share ($a_obj_id, $a_type) | |
share calendar | |
stopSharing ($a_obj_id) | |
stop sharing |
Static Public Member Functions | |
static | deleteByCalendar ($a_cal_id) |
Delete all entries for a specific calendar id. | |
static | deleteByUser ($a_user_id) |
Delete all entries for a specific user. | |
static | isSharedWithUser ($a_usr_id, $a_calendar_id) |
is shared with user | |
static | getSharedCalendarsForUser ($a_usr_id=0) |
get shared calendars of user |
Data Fields | |
const | TYPE_USR = 1 |
const | TYPE_ROLE = 2 |
Protected Member Functions | |
read () | |
read shared calendars |
Protected Attributes | |
$db |
Private Attributes | |
$calendar_id | |
$shared = array() | |
$shared_users = array() | |
$shared_roles = array() |
ilCalendarShared::__construct | ( | $a_calendar_id | ) |
|
static |
Delete all entries for a specific calendar id.
public
@return |
Definition at line 70 of file class.ilCalendarShared.php.
|
static |
Delete all entries for a specific user.
public
int | usr_id |
Definition at line 87 of file class.ilCalendarShared.php.
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.
ilCalendarShared::getShared | ( | ) |
get shared
public
Definition at line 219 of file class.ilCalendarShared.php.
|
static |
get shared calendars of user
public
int | user id |
Definition at line 148 of file class.ilCalendarShared.php.
References $ilDB, $query, $res, $row, $shared, ilCalendarCategories\_isOwner(), and DB_FETCHMODE_OBJECT.
Referenced by ilCalendarInboxGUI\inbox(), and ilCalendarCategoryGUI\readPermissions().
ilCalendarShared::getUsers | ( | ) |
get users
public
Definition at line 230 of file class.ilCalendarShared.php.
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 DB_FETCHMODE_OBJECT.
Referenced by ilCalendarInboxGUI\acceptShared(), ilCalendarInboxGUI\declineShared(), and ilCalendarCategoryGUI\unshare().
|
protected |
read shared calendars
protected
Definition at line 320 of file class.ilCalendarShared.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and getCalendarId().
Referenced by __construct(), share(), and stopSharing().
ilCalendarShared::share | ( | $a_obj_id, | |
$a_type | |||
) |
share calendar
public
int | obj_id |
int | type |
Definition at line 266 of file class.ilCalendarShared.php.
References $ilDB, $query, $res, getCalendarId(), isShared(), and read().
ilCalendarShared::stopSharing | ( | $a_obj_id | ) |
stop sharing
public
int | obj_id |
Definition at line 294 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().