onPHP

UnifiedContainer Class Reference

 

UnifiedContainer Class Reference
[IdentifiableObject collections handlers]

IdentifiableObject childs collection handling. More...

Inheritance diagram for UnifiedContainer:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 __construct (Identifiable $parent, GenericDAO $dao, $lazy=true)
 getParentObject ()
 getDao ()
 isLazy ()
 isFetched ()
 setObjectQuery (ObjectQuery $oq)
 setList ($list)
 replaceList ($list)
 getList ()
 fetch ()
 save ()

Protected Member Functions

 getChildIdField ()
 getParentIdField ()
 fetchList ()

Protected Attributes

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

Private Member Functions

 importList ($list)

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 77 of file UnifiedContainer.class.php.

References $dao, $lazy, $parent, Assert::isBoolean(), and Assert::isTrue().

Here is the call graph for this function:


Member Function Documentation

UnifiedContainer::getChildIdField (  )  [abstract, protected]

Reimplemented in OneToManyLinked.

UnifiedContainer::getParentIdField (  )  [abstract, protected]

Reimplemented in OneToManyLinked.

UnifiedContainer::getParentObject (  ) 

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

UnifiedContainer::getDao (  ) 

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

Referenced by save().

UnifiedContainer::isLazy (  ) 

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

UnifiedContainer::isFetched (  ) 

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

UnifiedContainer::setObjectQuery ( ObjectQuery oq  ) 

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

References Assert::isTrue().

Here is the call graph for this function:

UnifiedContainer::setList ( list  ) 

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

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

Here is the call graph for this function:

UnifiedContainer::replaceList ( list  ) 

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

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

Here is the call graph for this function:

UnifiedContainer::getList (  ) 

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

UnifiedContainer::fetch (  ) 

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

References fetchList(), and save().

Here is the call graph for this function:

UnifiedContainer::save (  ) 

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

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

Referenced by fetch().

Here is the call graph for this function:

UnifiedContainer::fetchList (  )  [protected]

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

References $list, and importList().

Referenced by fetch().

Here is the call graph for this function:

UnifiedContainer::importList ( list  )  [private]

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

References $list.

Referenced by fetchList(), and replaceList().


Member Data Documentation

UnifiedContainer::$worker = null [protected]

UnifiedContainer::$parent = null [protected]

UnifiedContainer::$dao = null [protected]

UnifiedContainer::$lazy = true [protected]

UnifiedContainer::$fetched = false [protected]

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

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

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

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

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

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

Referenced by save().


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

generated by doxygen-1.5.1
for onPHP at Mon Jan 8 11:44:28 2007