ILIAS
Release_4_4_x_branch Revision 61816
|
Stores status (accepted/declined) of shared calendars. More...
Public Member Functions | |
__construct ($a_usr_id) | |
Constructor. | |
isAccepted ($a_cal_id) | |
is accepted | |
isDeclined ($a_cal_id) | |
is declined | |
getAcceptedCalendars ($a_usr_id) | |
get accepted shared calendars | |
accept ($a_calendar_id) | |
accept calendar | |
decline ($a_calendar_id) | |
decline calendar |
Static Public Member Functions | |
static | hasStatus ($a_usr_id, $a_calendar_id) |
check if a status is set for an calendar | |
static | deleteUser ($a_usr_id) |
Delete by user. | |
static | deleteCalendar ($a_calendar_id) |
Delete calendar. | |
static | deleteStatus ($a_id, $a_calendar_id) |
delete status |
Data Fields | |
const | STATUS_ACCEPTED = 1 |
const | STATUS_DECLINED = 2 |
const | STATUS_DELETED = 3 |
Protected Member Functions | |
read () | |
read |
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.
public
@return |
Definition at line 53 of file class.ilCalendarSharedStatus.php.
References read().
ilCalendarSharedStatus::accept | ( | $a_calendar_id | ) |
accept calendar
public
int | calendar id |
Definition at line 215 of file class.ilCalendarSharedStatus.php.
References $query, $res, deleteStatus(), and STATUS_ACCEPTED.
ilCalendarSharedStatus::decline | ( | $a_calendar_id | ) |
decline calendar
public
int | calendar id |
Definition at line 241 of file class.ilCalendarSharedStatus.php.
References $query, $res, deleteStatus(), and STATUS_DECLINED.
|
static |
Delete calendar.
public
int | calendar id |
Definition at line 155 of file class.ilCalendarSharedStatus.php.
|
static |
delete status
public
int | usr_id or role_id |
int | calendar_id |
Definition at line 174 of file class.ilCalendarSharedStatus.php.
References $query, $res, and ilObject\_lookupType().
Referenced by accept(), decline(), and ilCalendarShared\stopSharing().
|
static |
Delete by user.
public
int | usr_id |
Definition at line 137 of file class.ilCalendarSharedStatus.php.
ilCalendarSharedStatus::getAcceptedCalendars | ( | $a_usr_id | ) |
get accepted shared calendars
public
int | usr_id |
Definition at line 94 of file class.ilCalendarSharedStatus.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilCalendarCategories\readPrivateCalendars().
|
static |
check if a status is set for an calendar
public
int | usr_id |
int | calendar id |
Definition at line 118 of file class.ilCalendarSharedStatus.php.
ilCalendarSharedStatus::isAccepted | ( | $a_cal_id | ) |
is accepted
public
int | cal_id |
Definition at line 70 of file class.ilCalendarSharedStatus.php.
References STATUS_ACCEPTED.
ilCalendarSharedStatus::isDeclined | ( | $a_cal_id | ) |
is declined
public
int | cal_id |
Definition at line 82 of file class.ilCalendarSharedStatus.php.
References STATUS_DECLINED.
|
protected |
read
protected
Definition at line 267 of file class.ilCalendarSharedStatus.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
|
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.