ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
registration for calendar appointments More...
Public Member Functions | |
__construct ($a_appointment_id) | |
Constructor. More... | |
getAppointmentId () | |
Get appoinmtent id. More... | |
getRegisteredUsers () | |
Get all registered users. More... | |
isRegistered ($a_usr_id, ilDateTime $start, ilDateTime $end) | |
Check if one user is registered. More... | |
register ($a_usr_id, ilDateTime $start, ilDateTime $end) | |
Register one user. More... | |
unregister ($a_usr_id, ilDateTime $start, ilDateTime $end) | |
unregister one user More... | |
Static Public Member Functions | |
static | deleteByUser ($a_usr_id) |
Delete all user registrations. More... | |
static | deleteByAppointment ($a_cal_id) |
Protected Member Functions | |
read () | |
Read registration. More... | |
Private Attributes | |
$appointment_id = 0 | |
$registered = array() | |
registration for calendar appointments
Definition at line 13 of file class.ilCalendarRegistration.php.
ilCalendarRegistration::__construct | ( | $a_appointment_id | ) |
Constructor.
Definition at line 23 of file class.ilCalendarRegistration.php.
References read().
|
static |
Definition at line 44 of file class.ilCalendarRegistration.php.
|
static |
Delete all user registrations.
object | $a_usr_id |
Definition at line 35 of file class.ilCalendarRegistration.php.
ilCalendarRegistration::getAppointmentId | ( | ) |
Get appoinmtent id.
Definition at line 57 of file class.ilCalendarRegistration.php.
References $appointment_id.
Referenced by read(), register(), and unregister().
ilCalendarRegistration::getRegisteredUsers | ( | ) |
Get all registered users.
Definition at line 66 of file class.ilCalendarRegistration.php.
References $registered, $start, array, and IL_CAL_UNIX.
ilCalendarRegistration::isRegistered | ( | $a_usr_id, | |
ilDateTime | $start, | ||
ilDateTime | $end | ||
) |
Check if one user is registered.
object | $a_usr_id |
Definition at line 86 of file class.ilCalendarRegistration.php.
References ilDateTime\get(), and IL_CAL_UNIX.
|
protected |
Read registration.
Definition at line 146 of file class.ilCalendarRegistration.php.
References $ilDB, $query, $res, $row, array, ilDBConstants\FETCHMODE_OBJECT, and getAppointmentId().
Referenced by __construct().
ilCalendarRegistration::register | ( | $a_usr_id, | |
ilDateTime | $start, | ||
ilDateTime | $end | ||
) |
Register one user.
int | $a_usr_id |
Definition at line 105 of file class.ilCalendarRegistration.php.
References $ilDB, $query, getAppointmentId(), IL_CAL_UNIX, and unregister().
ilCalendarRegistration::unregister | ( | $a_usr_id, | |
ilDateTime | $start, | ||
ilDateTime | $end | ||
) |
unregister one user
int | $a_usr_id |
Definition at line 129 of file class.ilCalendarRegistration.php.
References $ilDB, $query, $res, ilDateTime\get(), getAppointmentId(), and IL_CAL_UNIX.
Referenced by register().
|
private |
Definition at line 15 of file class.ilCalendarRegistration.php.
Referenced by getAppointmentId().
|
private |
Definition at line 17 of file class.ilCalendarRegistration.php.
Referenced by getRegisteredUsers().