|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Stores status (accepted/declined) of shared calendars. More...
Collaboration diagram for ilCalendarSharedStatus:Public Member Functions | |
| __construct ($a_usr_id) | |
| Constructor. More... | |
| isAccepted ($a_cal_id) | |
| is accepted More... | |
| isDeclined ($a_cal_id) | |
| is declined More... | |
| accept ($a_calendar_id) | |
| accept calendar More... | |
| decline ($a_calendar_id) | |
| decline calendar More... | |
Static Public Member Functions | |
| static | getAcceptedCalendars ($a_usr_id) |
| get accepted shared calendars More... | |
| static | hasStatus ($a_usr_id, $a_calendar_id) |
| check if a status is set for an calendar More... | |
| static | deleteUser ($a_usr_id) |
| Delete by user. More... | |
| static | deleteCalendar ($a_calendar_id) |
| Delete calendar. More... | |
| static | deleteStatus ($a_id, $a_calendar_id) |
| delete status More... | |
Data Fields | |
| const | STATUS_ACCEPTED = 1 |
| const | STATUS_DECLINED = 2 |
| const | STATUS_DELETED = 3 |
Protected Member Functions | |
| read () | |
| read More... | |
Protected Attributes | |
| $db = null | |
Private Attributes | |
| $usr_id = 0 | |
| $calendars = array() | |
| $writable = array() | |
Stores status (accepted/declined) of shared calendars.
Definition at line 32 of file class.ilCalendarSharedStatus.php.
| ilCalendarSharedStatus::__construct | ( | $a_usr_id | ) |
Constructor.
@access public
return
Definition at line 53 of file class.ilCalendarSharedStatus.php.
Here is the call graph for this function:| ilCalendarSharedStatus::accept | ( | $a_calendar_id | ) |
accept calendar
@access public
| int | calendar id |
Definition at line 215 of file class.ilCalendarSharedStatus.php.
References $ilDB, $query, $res, deleteStatus(), and STATUS_ACCEPTED.
Here is the call graph for this function:| ilCalendarSharedStatus::decline | ( | $a_calendar_id | ) |
decline calendar
@access public
| int | calendar id |
Definition at line 241 of file class.ilCalendarSharedStatus.php.
References $ilDB, $query, $res, deleteStatus(), and STATUS_DECLINED.
Here is the call graph for this function:
|
static |
Delete calendar.
@access public
| int | calendar id |
Definition at line 155 of file class.ilCalendarSharedStatus.php.
|
static |
delete status
@access public
| int | usr_id or role_id |
| int | calendar_id |
Definition at line 174 of file class.ilCalendarSharedStatus.php.
References $ilDB, $query, $res, and ilObject\_lookupType().
Referenced by accept(), decline(), and ilCalendarShared\stopSharing().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Delete by user.
@access public
| int | usr_id |
Definition at line 137 of file class.ilCalendarSharedStatus.php.
|
static |
get accepted shared calendars
@access public
| int | usr_id |
Definition at line 94 of file class.ilCalendarSharedStatus.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilCalendarCategories\readPrivateCalendars().
Here is the caller graph for this function:
|
static |
check if a status is set for an calendar
@access public
| int | usr_id |
| int | calendar id |
Definition at line 118 of file class.ilCalendarSharedStatus.php.
| ilCalendarSharedStatus::isAccepted | ( | $a_cal_id | ) |
is accepted
@access public
| int | cal_id |
Definition at line 70 of file class.ilCalendarSharedStatus.php.
References STATUS_ACCEPTED.
| ilCalendarSharedStatus::isDeclined | ( | $a_cal_id | ) |
is declined
@access public
| int | cal_id |
Definition at line 82 of file class.ilCalendarSharedStatus.php.
References STATUS_DECLINED.
|
protected |
read
@access protected
Definition at line 267 of file class.ilCalendarSharedStatus.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
Here is the caller graph for this function:
|
private |
Definition at line 42 of file class.ilCalendarSharedStatus.php.
|
protected |
Definition at line 38 of file class.ilCalendarSharedStatus.php.
|
private |
Definition at line 40 of file class.ilCalendarSharedStatus.php.
|
private |
Definition at line 43 of file class.ilCalendarSharedStatus.php.
| const ilCalendarSharedStatus::STATUS_ACCEPTED = 1 |
Definition at line 34 of file class.ilCalendarSharedStatus.php.
Referenced by accept(), and isAccepted().
| const ilCalendarSharedStatus::STATUS_DECLINED = 2 |
Definition at line 35 of file class.ilCalendarSharedStatus.php.
Referenced by decline(), and isDeclined().
| const ilCalendarSharedStatus::STATUS_DELETED = 3 |
Definition at line 36 of file class.ilCalendarSharedStatus.php.