ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_cal_id=0) | |
Init with calendar entry id. | |
setEntryId ($a_id) | |
Set calendar entry id. | |
getEntryId () | |
Get calendar entry id. | |
getRecipients () | |
validate () | |
save () | |
Save recipients to db. | |
addRecipient ($a_type, $a_usr_id=0, $a_email= '') | |
Add recipient. | |
setRecipients ($a_rcps) | |
Set recipients. | |
deleteRecipients () | |
Delete all recipients ilDB $ilDB. |
Static Public Member Functions | |
static | deleteUser ($a_usr_id) |
Delete a singel user ilDB $ilDB. | |
static | deleteCalendarEntry ($a_cal_id) |
Delete notification for a calendar entry ilDB $ilDB. | |
static | createTable () |
Data Fields | |
const | TYPE_USER = 1 |
const | TYPE_EMAIL = 2 |
Protected Member Functions | |
read () | |
Read recipients ilDB $ilDB. |
Private Attributes | |
$cal_id = 0 | |
$rcps = array() |
Definition at line 10 of file class.ilCalendarUserNotification.php.
ilCalendarUserNotification::__construct | ( | $a_cal_id = 0 | ) |
Init with calendar entry id.
Definition at line 22 of file class.ilCalendarUserNotification.php.
References read().
ilCalendarUserNotification::addRecipient | ( | $a_type, | |
$a_usr_id = 0 , |
|||
$a_email = '' |
|||
) |
Add recipient.
int | $a_type | |
int | $a_usr_id | |
string | $a_email |
Definition at line 139 of file class.ilCalendarUserNotification.php.
Referenced by read().
|
static |
Definition at line 203 of file class.ilCalendarUserNotification.php.
References $ilDB.
|
static |
Delete notification for a calendar entry ilDB $ilDB.
int | $a_cal_id |
Definition at line 50 of file class.ilCalendarUserNotification.php.
References $ilDB, $query, and $res.
Referenced by ilCalendarAppointmentGUI\delete().
ilCalendarUserNotification::deleteRecipients | ( | ) |
Delete all recipients ilDB $ilDB.
Definition at line 162 of file class.ilCalendarUserNotification.php.
References $ilDB, $query, $res, and getEntryId().
Referenced by save().
|
static |
Delete a singel user ilDB $ilDB.
int | $a_usr_id |
Definition at line 34 of file class.ilCalendarUserNotification.php.
ilCalendarUserNotification::getEntryId | ( | ) |
Get calendar entry id.
Definition at line 72 of file class.ilCalendarUserNotification.php.
References $cal_id.
Referenced by deleteRecipients(), and read().
ilCalendarUserNotification::getRecipients | ( | ) |
Definition at line 77 of file class.ilCalendarUserNotification.php.
References $rcps.
Referenced by save(), and validate().
|
protected |
Read recipients ilDB $ilDB.
Definition at line 178 of file class.ilCalendarUserNotification.php.
References $ilDB, $query, $res, $row, addRecipient(), DB_FETCHMODE_OBJECT, and getEntryId().
Referenced by __construct().
ilCalendarUserNotification::save | ( | ) |
Save recipients to db.
Definition at line 111 of file class.ilCalendarUserNotification.php.
References $ilDB, $query, deleteRecipients(), and getRecipients().
ilCalendarUserNotification::setEntryId | ( | $a_id | ) |
Set calendar entry id.
int | $a_id |
Definition at line 64 of file class.ilCalendarUserNotification.php.
ilCalendarUserNotification::setRecipients | ( | $a_rcps | ) |
Set recipients.
array | $a_rcps |
Definition at line 152 of file class.ilCalendarUserNotification.php.
ilCalendarUserNotification::validate | ( | ) |
Definition at line 82 of file class.ilCalendarUserNotification.php.
References $ilErr, $lng, getRecipients(), and ilUtil\is_email().
|
private |
Definition at line 16 of file class.ilCalendarUserNotification.php.
Referenced by getEntryId().
|
private |
Definition at line 17 of file class.ilCalendarUserNotification.php.
Referenced by getRecipients().
const ilCalendarUserNotification::TYPE_EMAIL = 2 |
Definition at line 13 of file class.ilCalendarUserNotification.php.
Referenced by ilCalendarAppointmentGUI\distributeUserNotifications(), ilCalendarAppointmentGUI\initForm(), and ilCalendarAppointmentGUI\loadNotificationRecipients().
const ilCalendarUserNotification::TYPE_USER = 1 |
Definition at line 12 of file class.ilCalendarUserNotification.php.
Referenced by ilCalendarAppointmentGUI\distributeUserNotifications(), ilCalendarAppointmentGUI\initForm(), and ilCalendarAppointmentGUI\loadNotificationRecipients().