onPHP

StorableContainer Class Reference

 

StorableContainer Class Reference
[IdentifiableObject collections handlers]

See also:
UnifiedContainer for alternative
More...

List of all members.

Public Member Functions

 __construct (PartDAO $partDAO, $expires=Cache::EXPIRES_MEDIUM)
 getPartDAO ()
 add (Identifiable $object)
 update (Identifiable $object)
 getById ($id)
 dropById ($id)
 getList ()
 getIdsList ()
 getCount ()
 save ($parentId)
 import ($parentId)

Static Public Member Functions

static create (PartDAO $partDAO, $expires=Cache::EXPIRES_MEDIUM)
static getByParentId ($parentId, PartDAO $childDAO, $expires=Cache::EXPIRES_MEDIUM)
static getIdsByParentId ($parentId, PartDAO $childDAO, $expires=Cache::EXPIRES_MEDIUM)
static dropByParentId ($parentId, PartDAO $childDAO)

Public Attributes

const LOAD_IDS = 1
const LOAD_OBJECTS = 2
const LOADED = 3

Private Member Functions

 checkLoaded ()
 processAdd ($parentId)
 addSaved (Identifiable $object)

Private Attributes

 $loaded = null
 $parentId = null
 $new = array()
 $insert = array()
 $saved = array()
 $deleted = array()
 $partDAO = null
 $expires = null


Detailed Description

See also:
UnifiedContainer for alternative

Definition at line 18 of file StorableContainer.class.php.


Constructor & Destructor Documentation

StorableContainer::__construct ( PartDAO partDAO,
expires = Cache::EXPIRES_MEDIUM 
)

Definition at line 43 of file StorableContainer.class.php.

References $expires, and $partDAO.


Member Function Documentation

static StorableContainer::create ( PartDAO partDAO,
expires = Cache::EXPIRES_MEDIUM 
) [static]

Definition at line 36 of file StorableContainer.class.php.

References $expires, and $partDAO.

StorableContainer::getPartDAO (  ) 

Definition at line 53 of file StorableContainer.class.php.

StorableContainer::add ( Identifiable object  ) 

Definition at line 58 of file StorableContainer.class.php.

References checkLoaded(), Identifiable::getId(), and update().

Referenced by update().

Here is the call graph for this function:

StorableContainer::update ( Identifiable object  ) 

Definition at line 73 of file StorableContainer.class.php.

References add(), and checkLoaded().

Referenced by add().

Here is the call graph for this function:

StorableContainer::getById ( id  ) 

Definition at line 86 of file StorableContainer.class.php.

References checkLoaded().

Referenced by getList().

Here is the call graph for this function:

StorableContainer::dropById ( id  ) 

Definition at line 100 of file StorableContainer.class.php.

References checkLoaded().

Here is the call graph for this function:

StorableContainer::getList (  ) 

Definition at line 114 of file StorableContainer.class.php.

References checkLoaded(), and getById().

Here is the call graph for this function:

StorableContainer::getIdsList (  ) 

Definition at line 126 of file StorableContainer.class.php.

References checkLoaded(), and save().

Here is the call graph for this function:

StorableContainer::getCount (  ) 

Definition at line 138 of file StorableContainer.class.php.

References checkLoaded().

Here is the call graph for this function:

StorableContainer::save ( parentId  ) 

Definition at line 146 of file StorableContainer.class.php.

References $deleted, $insert, $parentId, addSaved(), and processAdd().

Referenced by getIdsList().

Here is the call graph for this function:

StorableContainer::import ( parentId  ) 

Definition at line 173 of file StorableContainer.class.php.

References $insert, $parentId, addSaved(), and processAdd().

Here is the call graph for this function:

static StorableContainer::getByParentId ( parentId,
PartDAO childDAO,
expires = Cache::EXPIRES_MEDIUM 
) [static]

Definition at line 195 of file StorableContainer.class.php.

References $expires, and $parentId.

static StorableContainer::getIdsByParentId ( parentId,
PartDAO childDAO,
expires = Cache::EXPIRES_MEDIUM 
) [static]

Definition at line 206 of file StorableContainer.class.php.

References $expires, and $parentId.

static StorableContainer::dropByParentId ( parentId,
PartDAO childDAO 
) [static]

Definition at line 217 of file StorableContainer.class.php.

References $parentId, and PartDAO::dropByParentId().

Here is the call graph for this function:

StorableContainer::checkLoaded (  )  [private]

Definition at line 222 of file StorableContainer.class.php.

References ArrayUtils::convertObjectList().

Referenced by add(), dropById(), getById(), getCount(), getIdsList(), getList(), and update().

Here is the call graph for this function:

StorableContainer::processAdd ( parentId  )  [private]

Definition at line 250 of file StorableContainer.class.php.

References $new, $parentId, and addSaved().

Referenced by import(), and save().

Here is the call graph for this function:

StorableContainer::addSaved ( Identifiable object  )  [private]

Definition at line 262 of file StorableContainer.class.php.

References Identifiable::getId().

Referenced by import(), processAdd(), and save().

Here is the call graph for this function:


Member Data Documentation

Definition at line 21 of file StorableContainer.class.php.

Definition at line 22 of file StorableContainer.class.php.

Definition at line 23 of file StorableContainer.class.php.

StorableContainer::$loaded = null [private]

Definition at line 25 of file StorableContainer.class.php.

StorableContainer::$parentId = null [private]

StorableContainer::$new = array() [private]

Definition at line 28 of file StorableContainer.class.php.

Referenced by processAdd().

StorableContainer::$insert = array() [private]

Definition at line 29 of file StorableContainer.class.php.

Referenced by import(), and save().

StorableContainer::$saved = array() [private]

Definition at line 30 of file StorableContainer.class.php.

StorableContainer::$deleted = array() [private]

Definition at line 31 of file StorableContainer.class.php.

Referenced by save().

StorableContainer::$partDAO = null [private]

Definition at line 33 of file StorableContainer.class.php.

Referenced by __construct(), and create().

StorableContainer::$expires = null [private]

Definition at line 34 of file StorableContainer.class.php.

Referenced by __construct(), create(), getByParentId(), and getIdsByParentId().


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

generated by doxygen-1.5.1
for onPHP at Tue Feb 13 19:31:17 2007