ILIAS
Release_4_2_x_branch Revision 61807
|
registration for calendar appointments More...
Public Member Functions | |
__construct ($a_appointment_id) | |
Constructor. | |
getAppointmentId () | |
Get appoinmtent id. | |
getRegisteredUsers () | |
Get all registered users. | |
isRegistered ($a_usr_id, ilDateTime $start, ilDateTime $end) | |
Check if one user is registered. | |
register ($a_usr_id, ilDateTime $start, ilDateTime $end) | |
Register one user. | |
unregister ($a_usr_id, ilDateTime $start, ilDateTime $end) | |
unregister one user |
Static Public Member Functions | |
static | deleteByUser ($a_usr_id) |
Delete all user registrations. | |
static | deleteByAppointment ($a_cal_id) |
Protected Member Functions | |
read () | |
Read registration. |
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 |
|
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, 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, DB_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().