NAJAX Events Storage Class.
This class is used as base class for all NACLES storage providers.
The class also defines the getStorage method which is used to retrieve an instane to the configurated storage.
Example NACLES provider: NAJAX_Events_Storage_MySQL.
Example:
- <?php
- define('NAJAX_EVENTS_STORAGE_DSN', 'MySQL://server=?;user=?;password=?;database=?');
- require_once('najax.php');
- // The line below will return a NAJAX_Events_Storage_MySQL
- // class instance.
- $storage = NAJAX_Events_Storage::getStorage();
- $storage->postEvent('event', 'class');
- ?>
Located in /classes/events/Storage.class.php (line 62)
Class | Description |
---|---|
NAJAX_Events_Storage_MySQL | NAJAX Events Storage MySQL Class. |
Abstract base class method.
Successor classes should override this method.
Abstract base class method.
Successor classes should override this method.
Abstract base class method.
Successor classes should override this method.
Retrieves an instane to the configurated NACLES storage provider.
Example:
- <?php
- require_once('najax.php');
- $storage = NAJAX_Events_Storage::getStorage();
- $storage->postEvent('event', 'class');
- ?>
Abstract base class method.
Successor classes should override this method.
Abstract base class method.
Successor classes should override this method.
Documentation generated on Tue, 20 Sep 2005 21:40:37 +0300 by phpDocumentor 1.3.0RC3