XOAD Events Storage MySQL Class.
This class is a XOAD_Events_Storage successor.
The class allows you to save events information in MySQL database.
Example:
- <?php
- require_once('xoad.php');
- require_once(XOAD_BASE . '/classes/events/storage/MySQL.class.php');
- $storage = new XOAD_Events_Storage_MySQL('server=?;user=?;password=?;database=?;[port=?]');
- $storage->postEvent('event', 'class');
- ?>
Located in /classes/events/storage/MySQL.class.php (line 70)
XOAD_Events_Storage | --XOAD_Events_Storage_MySQL
Holds the MySQL database used in the connection string.
Indicates whether to open a new connection to the MySQL server if an old one already exists.
Holds the MySQL password used in the connection string.
Holds the MySQL port used in the connection string.
Holds the MySQL server used in the connection string.
Holds the MySQL user used in the connection string.
Creates a new instance of the XOAD_Events_Storage_MySQL 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 MySQL 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_MySQL 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:25 +0200 by phpDocumentor 1.3.0RC3