IdentifiableObject childs collection handling. More...
Public Member Functions | |
getParentIdField () | |
getChildIdField () | |
__construct (Identifiable $parent, GenericDAO $dao, $lazy=true) | |
__sleep () | |
__wakeup () | |
getParentObject () | |
getDao () | |
isLazy () | |
isFetched () | |
setCriteria (Criteria $criteria) | |
getCriteria () | |
setObjectComparator (Comparator $comparator) | |
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 | |
$lazy = true | |
$fetched = false | |
$list = array() | |
$clones = array() | |
$workerClass = null | |
$daoClass = null | |
$comparator = null | |
Private Member Functions | |
importList (array $list) | |
syncClones () |
IdentifiableObject childs collection handling.
Definition at line 60 of file UnifiedContainer.class.php.
UnifiedContainer::__construct | ( | Identifiable $ | parent, | |
GenericDAO $ | dao, | |||
$ | lazy = true | |||
) |
Reimplemented in ManyToManyLinked, and OneToManyLinked.
Definition at line 82 of file UnifiedContainer.class.php.
References $lazy, GenericDAO::getObjectName(), Assert::isBoolean(), Assert::isInstance(), and SerializedObjectComparator::me().
UnifiedContainer::__sleep | ( | ) |
Definition at line 97 of file UnifiedContainer.class.php.
UnifiedContainer::__wakeup | ( | ) |
Definition at line 104 of file UnifiedContainer.class.php.
References Singleton::getInstance().
UnifiedContainer::clean | ( | ) |
Definition at line 341 of file UnifiedContainer.class.php.
Referenced by dropList().
static UnifiedContainer::destroy | ( | UnifiedContainer $ | container | ) | [static] |
Definition at line 362 of file UnifiedContainer.class.php.
UnifiedContainer::dropList | ( | ) |
Definition at line 353 of file UnifiedContainer.class.php.
References clean().
UnifiedContainer::fetch | ( | ) |
WrongStateException |
Definition at line 223 of file UnifiedContainer.class.php.
References fetchList().
Referenced by getList().
UnifiedContainer::fetchList | ( | ) | [protected] |
Definition at line 367 of file UnifiedContainer.class.php.
References $list, getChildIdField(), and importList().
Referenced by fetch().
UnifiedContainer::getChildIdField | ( | ) | [abstract] |
Reimplemented in OneToManyLinked.
Referenced by fetchList().
UnifiedContainer::getCount | ( | ) |
Definition at line 208 of file UnifiedContainer.class.php.
References isFetched().
UnifiedContainer::getCriteria | ( | ) |
Definition at line 158 of file UnifiedContainer.class.php.
UnifiedContainer::getDao | ( | ) |
UnifiedContainer::getList | ( | ) |
Definition at line 200 of file UnifiedContainer.class.php.
References fetch(), and isFetched().
UnifiedContainer::getParentIdField | ( | ) | [abstract] |
UnifiedContainer::getParentObject | ( | ) |
Definition at line 110 of file UnifiedContainer.class.php.
UnifiedContainer::importList | ( | array $ | list | ) | [private] |
Definition at line 397 of file UnifiedContainer.class.php.
References mergeList(), and syncClones().
Referenced by fetchList().
UnifiedContainer::isFetched | ( | ) |
Definition at line 128 of file UnifiedContainer.class.php.
Referenced by getCount(), and getList().
UnifiedContainer::isLazy | ( | ) |
Definition at line 123 of file UnifiedContainer.class.php.
UnifiedContainer::mergeList | ( | array $ | list | ) |
Definition at line 186 of file UnifiedContainer.class.php.
Referenced by importList().
UnifiedContainer::save | ( | ) |
WrongArgumentException |
Definition at line 245 of file UnifiedContainer.class.php.
References $clones, $list, DBPool::getByDao(), getDao(), Assert::isArray(), and syncClones().
UnifiedContainer::setCriteria | ( | Criteria $ | criteria | ) |
WrongArgumentException |
Definition at line 137 of file UnifiedContainer.class.php.
References Criteria::getDao(), Assert::isTrue(), and Criteria::setDao().
UnifiedContainer::setList | ( | $ | list | ) |
WrongArgumentException |
Definition at line 174 of file UnifiedContainer.class.php.
References $list, and Assert::isArray().
UnifiedContainer::setObjectComparator | ( | Comparator $ | comparator | ) |
Definition at line 163 of file UnifiedContainer.class.php.
UnifiedContainer::syncClones | ( | ) | [private] |
Definition at line 409 of file UnifiedContainer.class.php.
Referenced by importList(), and save().
UnifiedContainer::$clones = array() [protected] |
Definition at line 71 of file UnifiedContainer.class.php.
Referenced by save().
UnifiedContainer::$comparator = null [protected] |
Definition at line 77 of file UnifiedContainer.class.php.
UnifiedContainer::$dao = null [protected] |
Definition at line 65 of file UnifiedContainer.class.php.
UnifiedContainer::$daoClass = null [protected] |
Definition at line 75 of file UnifiedContainer.class.php.
UnifiedContainer::$fetched = false [protected] |
Definition at line 68 of file UnifiedContainer.class.php.
UnifiedContainer::$lazy = true [protected] |
Definition at line 67 of file UnifiedContainer.class.php.
Referenced by __construct(), OneToManyLinked::__construct(), and ManyToManyLinked::__construct().
UnifiedContainer::$list = array() [protected] |
Definition at line 70 of file UnifiedContainer.class.php.
Referenced by fetchList(), save(), and setList().
UnifiedContainer::$parent = null [protected] |
Definition at line 63 of file UnifiedContainer.class.php.
UnifiedContainer::$worker = null [protected] |
Definition at line 62 of file UnifiedContainer.class.php.
Referenced by OneToManyLinked::__construct(), and ManyToManyLinked::__construct().
UnifiedContainer::$workerClass = null [protected] |
Definition at line 74 of file UnifiedContainer.class.php.