You are here

function Notifications_Event::record in Notifications 7

Create a record for the event and get unique eid

Parameters

$update: Whether to update the row if already created.

4 calls to Notifications_Event::record()
Notifications_Event::done in ./notifications.event.inc
Processing and sending is done, log or dispose
Notifications_Event::queue in ./notifications.event.inc
Queue event for later processing
Notifications_Event::save in ./notifications.event.inc
Save full event
Notifications_Event::send in ./notifications.event.inc
Send operation. Default will be send to all destinations

File

./notifications.event.inc, line 288
Drupal Notifications Framework - Default class file

Class

Notifications_Event
Notifications Event class

Code

function record($update = FALSE) {
  if (!$this->eid || $update) {
    $this->send_time = $this->send_end - $this->send_start;
    $this->updated = time();
    drupal_write_record('notifications_event', $this, $this->eid ? 'eid' : array());
  }
}