Phang  2.1
All Classes Files Functions Variables Pages
Functions
events.php File Reference

Basic event handling functions. More...

Functions

 set_user (&$record, $options=array())
 Callback function for before_update event.
 set_unique (&$record, $options=array())
 Callback function for before_update event.
 set_value (&$record, $options=array())
 Set a value for one of the record's fields.

Detailed Description

Basic event handling functions.

Author:
James Tierney / Fifteen Digital Developers Ltd

Function Documentation

set_unique ( $record,
  $options = array() 
)

Callback function for before_update event.

Sets a clean string to a field, either using its own value or the value of a source field.

Todo:
check for unique values, if it isn't unique, append increment until it is.
set_user ( $record,
  $options = array() 
)

Callback function for before_update event.

Sets the current user id as a value in the record.