Definition at line 17 of file Criteria.class.php.
Criteria::__construct | ( | $ | dao = null |
) |
Definition at line 44 of file Criteria.class.php.
References $dao, Expression::andBlock(), Projection::chain(), Assert::isTrue(), and FetchStrategy::join().
Criteria::__clone | ( | ) |
Definition at line 56 of file Criteria.class.php.
Criteria::__sleep | ( | ) |
Definition at line 64 of file Criteria.class.php.
Criteria::__wakeup | ( | ) |
Definition at line 73 of file Criteria.class.php.
References Singleton::getInstance().
Criteria::add | ( | LogicalObject $ | logic | ) |
Definition at line 107 of file Criteria.class.php.
Criteria::addOrder | ( | $ | order | ) |
Criteria::addProjection | ( | ObjectProjection $ | projection | ) |
Definition at line 222 of file Criteria.class.php.
static Criteria::create | ( | $ | dao = null |
) | [static] |
Definition at line 39 of file Criteria.class.php.
References $dao.
Referenced by DaoMoveHelper::down(), DaoIterator::loadNextChunk(), and DaoMoveHelper::up().
Criteria::dropOrder | ( | ) |
Definition at line 151 of file Criteria.class.php.
Criteria::dropProjection | ( | ) |
Definition at line 244 of file Criteria.class.php.
References Projection::chain().
Criteria::dropProjectionByType | ( | $ | dropTypes | ) |
Definition at line 481 of file Criteria.class.php.
References Assert::isInstance().
Criteria::fetchCollection | ( | $ | path, | |
$ | lazy = false , |
|||
$ | criteria = null | |||
) |
Definition at line 286 of file Criteria.class.php.
References Assert::isBoolean(), and Assert::isTrue().
Criteria::fillSelectQuery | ( | SelectQuery $ | query | ) |
Definition at line 447 of file Criteria.class.php.
References FetchStrategy::CASCADE, SelectQuery::distinct(), joinProperties(), and SelectQuery::setOrderChain().
Referenced by toSelectQuery().
Criteria::get | ( | ) |
Definition at line 306 of file Criteria.class.php.
References isSilent().
Criteria::getCustom | ( | $ | index = null |
) |
Definition at line 360 of file Criteria.class.php.
References isSilent(), and toSelectQuery().
Criteria::getCustomList | ( | ) |
Definition at line 383 of file Criteria.class.php.
References isSilent(), and toSelectQuery().
Criteria::getDao | ( | ) |
Definition at line 81 of file Criteria.class.php.
Referenced by CountProjection::getFunction(), PropertyProjection::process(), MappableObjectProjection::process(), HavingProjection::process(), GroupByPropertyProjection::process(), AggregateProjection::process(), and UnifiedContainer::setCriteria().
Criteria::getFetchStrategy | ( | ) |
Definition at line 191 of file Criteria.class.php.
Referenced by joinProperties().
Criteria::getLimit | ( | ) |
Definition at line 158 of file Criteria.class.php.
Criteria::getList | ( | ) |
Definition at line 325 of file Criteria.class.php.
References isSilent(), and toSelectQuery().
Criteria::getLogic | ( | ) |
Definition at line 99 of file Criteria.class.php.
Criteria::getOffset | ( | ) |
Definition at line 173 of file Criteria.class.php.
Criteria::getOrder | ( | ) |
Definition at line 117 of file Criteria.class.php.
Criteria::getProjection | ( | ) |
Definition at line 236 of file Criteria.class.php.
Referenced by toSelectQuery().
Criteria::getPropertyList | ( | ) |
Definition at line 395 of file Criteria.class.php.
References isSilent(), and toSelectQuery().
Criteria::getProto | ( | ) | [private] |
Definition at line 599 of file Criteria.class.php.
Criteria::getResult | ( | ) |
Definition at line 345 of file Criteria.class.php.
References toSelectQuery().
Criteria::isDistinct | ( | ) |
Definition at line 261 of file Criteria.class.php.
Criteria::isSilent | ( | ) |
Definition at line 266 of file Criteria.class.php.
Referenced by get(), getCustom(), getCustomList(), getList(), and getPropertyList().
Criteria::joinProperties | ( | SelectQuery $ | query, | |
ProtoDAO $ | parentDao, | |||
$ | parentTable, | |||
$ | parentRequired, | |||
$ | prefix = null | |||
) | [private] |
Definition at line 490 of file Criteria.class.php.
References $logic, DBField::create(), Expression::eq(), SelectQuery::get(), getFetchStrategy(), GenericDAO::getObjectName(), SelectQuery::hasJoinedTable(), SelectQuery::join(), FetchStrategy::JOIN, SelectQuery::leftJoin(), and MetaRelation::ONE_TO_ONE.
Referenced by fillSelectQuery().
Criteria::prependOrder | ( | $ | order | ) |
Criteria::setDao | ( | ProtoDAO $ | dao | ) |
Definition at line 89 of file Criteria.class.php.
Referenced by UnifiedContainer::setCriteria().
Criteria::setDistinct | ( | $ | orly = true |
) |
Definition at line 254 of file Criteria.class.php.
Criteria::setFetchStrategy | ( | FetchStrategy $ | strategy | ) |
Definition at line 199 of file Criteria.class.php.
Criteria::setLimit | ( | $ | limit | ) |
Criteria::setOffset | ( | $ | offset | ) |
Criteria::setProjection | ( | ObjectProjection $ | chain | ) |
Definition at line 209 of file Criteria.class.php.
References Projection::chain().
Criteria::setSilent | ( | $ | silent | ) |
Definition at line 274 of file Criteria.class.php.
References $silent, and Assert::isBoolean().
Criteria::toDialectString | ( | Dialect $ | dialect | ) |
Definition at line 416 of file Criteria.class.php.
References toSelectQuery().
Referenced by toString().
Criteria::toSelectQuery | ( | ) |
Definition at line 424 of file Criteria.class.php.
References fillSelectQuery(), getProjection(), and Assert::isNotNull().
Referenced by getCustom(), getCustomList(), getList(), getPropertyList(), getResult(), FullTextUtils::makeFullTextQuery(), and toDialectString().
Criteria::toString | ( | ) |
Reimplemented from QueryIdentification.
Definition at line 407 of file Criteria.class.php.
References DBPool::getByDao(), ImaginaryDialect::me(), and toDialectString().
Criteria::$collections = array() [private] |
Definition at line 31 of file Criteria.class.php.
Criteria::$dao = null [private] |
Definition at line 19 of file Criteria.class.php.
Referenced by __construct(), and create().
Criteria::$daoClass = null [private] |
Definition at line 20 of file Criteria.class.php.
Criteria::$distinct = false [private] |
Definition at line 26 of file Criteria.class.php.
Criteria::$limit = null [private] |
Definition at line 28 of file Criteria.class.php.
Referenced by setLimit().
Criteria::$logic = null [private] |
Definition at line 21 of file Criteria.class.php.
Referenced by joinProperties().
Criteria::$offset = null [private] |
Definition at line 29 of file Criteria.class.php.
Referenced by setOffset().
Criteria::$order = null [private] |
Definition at line 22 of file Criteria.class.php.
Referenced by addOrder(), and prependOrder().
Criteria::$projection = null [private] |
Definition at line 24 of file Criteria.class.php.
Criteria::$silent = true [private] |
Definition at line 34 of file Criteria.class.php.
Referenced by setSilent().
Criteria::$strategy = null [private] |
Definition at line 23 of file Criteria.class.php.