IcesSerializer Class Reference

Loads and saves to db objects of class IcesDBObject. More...

Inheritance diagram for IcesSerializer:
IcesLockSerializer

Public Member Functions

 __construct ($classname)
 Creates a new serializer for a specific object class. More...
 
 count ($key, $value)
 Count entries. More...
 
 delete (IcesDBObject $object)
 Deletes a database record. More...
 
 load ($id)
 Loads an object given its identifier. More...
 
 loadCollection (array $conditions, $order_field=NULL, $order_type= 'ASC')
 Load many objects. More...
 
 loadFromRecord ($record)
 Loads a IcesDBObject from it record. More...
 
 loadFromUniqueKey ($key, $value)
 Retrieves and loads an object from a unique key. More...
 
 save (IcesDBObject $object)
 Saves an object to database. More...
 
 selectFunctionField ($function, $key, array $conditions)
 Select function. More...
 
 updateField (IcesDBObject $object, $key)
 Updates a single database field from a single row. More...
 

Static Public Member Functions

static DBTransaction ()
 Start database transaction. More...
 

Protected Member Functions

 deleteCache ()
 Deletes whole static cache. More...
 
 deleteRecordFromCache (array $record)
 Deletes record from static cache. More...
 
 handleSerialized (array &$record)
 Unserializes serialized database record fields. More...
 

Protected Attributes

 $classname
 
 $table
 

Static Protected Attributes

static $cache = array()
 cache array. More...
 

Detailed Description

Loads and saves to db objects of class IcesDBObject.

It gives a unified and drupal-indevendent way for bank logic objects to be loaded and saved.


The documentation for this class was generated from the following file: