XOAD Events Storage PearDB Class.
This class is a XOAD_Events_Storage successor.
The class allows you to save events information in PearDB compatible database.
Pear::DB supported databases (type parameter)
- <?php
- require_once('xoad.php');
- require_once('DB.php');
- require_once(XOAD_BASE . '/classes/events/storage/PearDB.class.php');
- $storage = new XOAD_Events_Storage_PearDB('type=?;server=?;user=?;password=?;database=?;[port=?]');
- $storage->postEvent('event', 'class');
- ?>
Located in /classes/events/storage/PearDB.class.php (line 86)
XOAD_Events_Storage | --XOAD_Events_Storage_PearDB
Holds the PearDB database used in the connection string.
Holds the PearDB password used in the connection string.
Holds the PearDB DSN for reconnection to database.
Holds the PearDB port used in the connection string.
Holds the PearDB server used in the connection string.
Holds the PearDB Database type setting used in the connection string.
Holds the PearDB user used in the connection string.
Creates a new instance of the XOAD_Events_Storage_PearDB class.
Deletes old events from the database.
This method is called before calling filterEvents or filterMultipleEvents to delete all expired events from the database.
Closes a PearDB connection link.
Escapes special characters in the $unescapedString, taking into account the current charset of the connection.
Filters the events in the database using multiple criterias.
Valid keys for each event are:
Retrieves a static instance of the XOAD_Events_Storage_PearDB class.
This method overrides XOAD_Events_Storage::getStorage.
Posts multiple events to the database.
Valid keys for each event are:
Inherited From XOAD_Events_Storage
XOAD_Events_Storage::XOAD_Events_Storage()
XOAD_Events_Storage::cleanEvents()
XOAD_Events_Storage::filterEvents()
XOAD_Events_Storage::filterMultipleEvents()
XOAD_Events_Storage::getStorage()
XOAD_Events_Storage::postEvent()
XOAD_Events_Storage::postMultipleEvents()
Documentation generated on Sat, 12 Nov 2005 20:24:31 +0200 by phpDocumentor 1.3.0RC3