Class NAJAX_Events_Storage

Description

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:

  1. <?php
  2.  
  3. define('NAJAX_EVENTS_STORAGE_DSN', 'MySQL://server=?;user=?;password=?;database=?');
  4.  
  5. require_once('najax.php');
  6.  
  7. // The line below will return a NAJAX_Events_Storage_MySQL
  8. // class instance.
  9. $storage = NAJAX_Events_Storage::getStorage();
  10.  
  11. $storage->postEvent('event', 'class');
  12.  
  13. ?>

  • version: 0.4.1.0
  • author: Stanimir Angeloff

Located in /classes/events/Storage.class.php (line 62)


	
			
Direct descendents
Class Description
NAJAX_Events_Storage_MySQL NAJAX Events Storage MySQL Class.
Method Summary
bool cleanEvents ()
bool filterEvents ()
object Singleton getStorage ()
bool postEvent ()
Methods
cleanEvents (line 175)

Abstract base class method.

Successor classes should override this method.

  • access: public
bool cleanEvents ()

Redefined in descendants as:
filterEvents (line 190)

Abstract base class method.

Successor classes should override this method.

  • access: public
bool filterEvents ()

Redefined in descendants as:
filterMultipleEvents (line 205)

Abstract base class method.

Successor classes should override this method.

  • access: public
bool filterMultipleEvents ()

Redefined in descendants as:
getStorage (line 88)

Retrieves an instane to the configurated NACLES storage provider.

Example:

  1. <?php
  2.  
  3. require_once('najax.php');
  4.  
  5. $storage = NAJAX_Events_Storage::getStorage();
  6.  
  7. $storage->postEvent('event', 'class');
  8.  
  9. ?>

object Singleton getStorage ()

Redefined in descendants as:
postEvent (line 145)

Abstract base class method.

Successor classes should override this method.

  • access: public
bool postEvent ()

Redefined in descendants as:
postMultipleEvents (line 160)

Abstract base class method.

Successor classes should override this method.

  • access: public
bool postMultipleEvents ()

Redefined in descendants as:

Documentation generated on Tue, 20 Sep 2005 21:40:37 +0300 by phpDocumentor 1.3.0RC3