NAJAX Events Storage MySQL Class.
This class is a NAJAX_Events_Storage successor.
The class allows you to save events information in MySQL database.
Example:
- <?php
- require_once('najax.php');
- require_once(NAJAX_BASE . '/classes/events/storage/MySQL.class.php');
- $storage = new NAJAX_Events_Storage_MySQL('server=?;user=?;password=?;database=?;[port=?]');
- $storage->postEvent('event', 'class');
- ?>
Located in /classes/events/storage/MySQL.class.php (line 70)
NAJAX_Events_Storage | --NAJAX_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 NAJAX_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.
Escapes special characters in the $unescapedString, taking into account the current charset of the connection.
Filters the events in the database 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.
Filters the events in the database using multiple criterias.
Valid keys for each event are:
Retrieves a new instance of the NAJAX_Events_Storage_MySQL class.
This method overrides NAJAX_Events_Storage::getStorage.
Posts a single event to the database.
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.
Posts multiple events to the database.
Valid keys for each event are:
Inherited From NAJAX_Events_Storage
NAJAX_Events_Storage::cleanEvents()
NAJAX_Events_Storage::filterEvents()
NAJAX_Events_Storage::filterMultipleEvents()
NAJAX_Events_Storage::getStorage()
NAJAX_Events_Storage::postEvent()
NAJAX_Events_Storage::postMultipleEvents()
Documentation generated on Tue, 20 Sep 2005 21:40:11 +0300 by phpDocumentor 1.3.0RC3