ILIAS
Release_4_0_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() |
Stores status (accepted/declined) of shared calendars.
Definition at line 32 of file class.ilCalendarSharedStatus.php.
ilCalendarSharedStatus::__construct | ( | $a_usr_id | ) |
ilCalendarSharedStatus::accept | ( | $a_calendar_id | ) |
accept calendar
public
int | calendar id |
Definition at line 214 of file class.ilCalendarSharedStatus.php.
References $ilDB, $query, $res, deleteStatus(), and STATUS_ACCEPTED.
ilCalendarSharedStatus::decline | ( | $a_calendar_id | ) |
decline calendar
public
int | calendar id |
Definition at line 240 of file class.ilCalendarSharedStatus.php.
References $ilDB, $query, $res, deleteStatus(), and STATUS_DECLINED.
|
static |
Delete calendar.
public
int | calendar id |
Definition at line 154 of file class.ilCalendarSharedStatus.php.
|
static |
delete status
public
int | usr_id or role_id |
int | calendar_id |
Definition at line 173 of file class.ilCalendarSharedStatus.php.
References $ilDB, $query, $res, ilObject\_lookupType(), and elseif().
Referenced by accept(), decline(), and ilCalendarShared\stopSharing().
|
static |
Delete by user.
public
int | usr_id |
Definition at line 136 of file class.ilCalendarSharedStatus.php.
ilCalendarSharedStatus::getAcceptedCalendars | ( | $a_usr_id | ) |
get accepted shared calendars
public
int | usr_id |
Definition at line 93 of file class.ilCalendarSharedStatus.php.
References $ilDB, $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 117 of file class.ilCalendarSharedStatus.php.
ilCalendarSharedStatus::isAccepted | ( | $a_cal_id | ) |
is accepted
public
int | cal_id |
Definition at line 69 of file class.ilCalendarSharedStatus.php.
References STATUS_ACCEPTED.
ilCalendarSharedStatus::isDeclined | ( | $a_cal_id | ) |
is declined
public
int | cal_id |
Definition at line 81 of file class.ilCalendarSharedStatus.php.
References STATUS_DECLINED.
|
protected |
read
protected
Definition at line 266 of file class.ilCalendarSharedStatus.php.
References $ilDB, $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.
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.