onPHP

UnifiedContainer Class Reference

 

UnifiedContainer Class Reference
[IdentifiableObject collections handlers]

IdentifiableObject childs collection handling. More...

Inheritance diagram for UnifiedContainer:

List of all members.

Public Member Functions

 getParentIdField ()
 getChildIdField ()
 __construct (Identifiable $parent, GenericDAO $dao, $lazy=true)
 __sleep ()
 __wakeup ()
 getParentObject ()
 getDao ()
 isLazy ()
 isFetched ()
 setCriteria (Criteria $criteria)
 getCriteria ()
 setList ($list)
 mergeList (array $list)
 getList ()
 getCount ()
 fetch ()
 save ()
 clean ()
 dropList ()

Static Public Member Functions

static destroy (UnifiedContainer $container)

Protected Member Functions

 fetchList ()

Protected Attributes

 $worker = null
 $parent = null
 $dao = null
 $daoClass = null
 $lazy = true
 $fetched = false
 $list = array()
 $clones = array()

Private Member Functions

 importList (array $list)
 syncClones ()


Detailed Description

IdentifiableObject childs collection handling.

See also:
StorableContainer for alternative

Definition at line 61 of file UnifiedContainer.class.php.


Constructor & Destructor Documentation

UnifiedContainer::__construct ( Identifiable parent,
GenericDAO dao,
lazy = true 
)

Reimplemented in ManyToManyLinked, and OneToManyLinked.

Definition at line 78 of file UnifiedContainer.class.php.

References $lazy, GenericDAO::getObjectName(), Assert::isBoolean(), and Assert::isTrue().

Here is the call graph for this function:


Member Function Documentation

UnifiedContainer::getParentIdField (  )  [abstract]

UnifiedContainer::getChildIdField (  )  [abstract]

Reimplemented in OneToManyLinked.

UnifiedContainer::__sleep (  ) 

Definition at line 96 of file UnifiedContainer.class.php.

UnifiedContainer::__wakeup (  ) 

Definition at line 102 of file UnifiedContainer.class.php.

References Singleton::getInstance().

Here is the call graph for this function:

UnifiedContainer::getParentObject (  ) 

Definition at line 107 of file UnifiedContainer.class.php.

UnifiedContainer::getDao (  ) 

Returns:
GenericDAO

Definition at line 115 of file UnifiedContainer.class.php.

Referenced by save(), and setCriteria().

UnifiedContainer::isLazy (  ) 

Definition at line 120 of file UnifiedContainer.class.php.

UnifiedContainer::isFetched (  ) 

Definition at line 125 of file UnifiedContainer.class.php.

Referenced by getCount(), and getList().

UnifiedContainer::setCriteria ( Criteria criteria  ) 

Exceptions:
WrongArgumentException 
Returns:
UnifiedContainer

Definition at line 134 of file UnifiedContainer.class.php.

References getDao(), Assert::isTrue(), and Criteria::setDao().

Here is the call graph for this function:

UnifiedContainer::getCriteria (  ) 

Returns:
Criteria

Definition at line 155 of file UnifiedContainer.class.php.

UnifiedContainer::setList ( list  ) 

Exceptions:
WrongArgumentException 
Returns:
UnifiedContainer

Definition at line 164 of file UnifiedContainer.class.php.

References $list, and Assert::isArray().

Here is the call graph for this function:

UnifiedContainer::mergeList ( array $  list  ) 

Returns:
UnifiedContainer

Definition at line 176 of file UnifiedContainer.class.php.

References importList(), and Assert::isArray().

Here is the call graph for this function:

UnifiedContainer::getList (  ) 

Definition at line 183 of file UnifiedContainer.class.php.

References fetch(), and isFetched().

Here is the call graph for this function:

UnifiedContainer::getCount (  ) 

Definition at line 191 of file UnifiedContainer.class.php.

References isFetched().

Here is the call graph for this function:

UnifiedContainer::fetch (  ) 

Exceptions:
WrongStateException 
Returns:
UnifiedContainer

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

References fetchList().

Referenced by getList().

Here is the call graph for this function:

UnifiedContainer::save (  ) 

Exceptions:
WrongArgumentException 
Returns:
UnifiedContainer

Definition at line 228 of file UnifiedContainer.class.php.

References $clones, $list, DBPool::getByDao(), getDao(), Assert::isArray(), and syncClones().

Here is the call graph for this function:

UnifiedContainer::clean (  ) 

Returns:
UnifiedContainer

Definition at line 324 of file UnifiedContainer.class.php.

Referenced by dropList().

UnifiedContainer::dropList (  ) 

Returns:
UnifiedContainer

Definition at line 336 of file UnifiedContainer.class.php.

References clean().

Here is the call graph for this function:

static UnifiedContainer::destroy ( UnifiedContainer container  )  [static]

Definition at line 345 of file UnifiedContainer.class.php.

UnifiedContainer::fetchList (  )  [protected]

Definition at line 350 of file UnifiedContainer.class.php.

References $list, and importList().

Referenced by fetch().

Here is the call graph for this function:

UnifiedContainer::importList ( array $  list  )  [private]

Returns:
UnifiedContainer

Definition at line 367 of file UnifiedContainer.class.php.

References syncClones().

Referenced by fetchList(), and mergeList().

Here is the call graph for this function:

UnifiedContainer::syncClones (  )  [private]

Returns:
UnifiedContainer

Definition at line 386 of file UnifiedContainer.class.php.

Referenced by importList(), and save().


Member Data Documentation

UnifiedContainer::$worker = null [protected]

UnifiedContainer::$parent = null [protected]

Definition at line 64 of file UnifiedContainer.class.php.

UnifiedContainer::$dao = null [protected]

Definition at line 66 of file UnifiedContainer.class.php.

UnifiedContainer::$daoClass = null [protected]

Definition at line 67 of file UnifiedContainer.class.php.

UnifiedContainer::$lazy = true [protected]

UnifiedContainer::$fetched = false [protected]

Definition at line 70 of file UnifiedContainer.class.php.

UnifiedContainer::$list = array() [protected]

Definition at line 72 of file UnifiedContainer.class.php.

Referenced by fetchList(), save(), and setList().

UnifiedContainer::$clones = array() [protected]

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

Referenced by save().


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

generated by doxygen-1.5.5
for onPHP at Sun Mar 30 23:25:12 2008