XOAD Events Storage Class.
This class is used as base class for all XOAD Events storage providers.
The class also defines the getStorage method which is used to retrieve an instane to the configurated storage.
Example XOAD Events provider: XOAD_Events_Storage_MySQL.
Example:
- <?php
- define('XOAD_EVENTS_STORAGE_DSN', 'MySQL://server=?;user=?;password=?;database=?');
- require_once('xoad.php');
- // The line below will return a XOAD_Events_Storage_MySQL
- // class instance.
- $storage =& XOAD_Events_Storage::getStorage();
- $storage->postEvent('event', 'class');
- ?>
Located in /classes/events/Storage.class.php (line 62)
Class | Description |
---|---|
![]() |
XOAD Events Storage File Class. |
![]() |
XOAD Events Storage MySQL Class. |
![]() |
XOAD Events Storage PearDB Class. |
Creates a new instance of the XOAD_Events_Storage class.
This method should be called from each successor to retrieve the start time of the old events in the storage.
Filters the events in the storage using a single criteria.
The $event and $class arguments are required for each event. The $filter and $time arguments are optional.
This method calls filterMultipleEvents with the appropriate arguments.
This method should be called from each successor to add common data to the event.
When you call this method you should pass an associative array that contains the event data. This method will populate it with the missing information and will check the validity of the presented.
Retrieves an instanse to the configurated XOAD Events storage provider.
Example:
- <?php
- require_once('xoad.php');
- $storage =& XOAD_Events_Storage::getStorage();
- $storage->postEvent('event', 'class');
- ?>
Posts a single event to the storage.
The $event and $class arguments are required for each event. The $sender, $data, $filter, $time and $lifetime arguments are optional.
In case you have supplied both $class and $sender, then the $sender's class must match the one you've supplied.
This method calls postMultipleEvents with the appropriate arguments.
This method should be called from each successor to add common data to the event.
When you call this method you should pass an associative array that contains the event data. This method will populate it with the missing information and will check the validity of the presented.
Documentation generated on Sat, 12 Nov 2005 20:24:47 +0200 by phpDocumentor 1.3.0RC3