Definition at line 18 of file Criteria.class.php.
Criteria::__construct | ( | $ | dao = null |
) |
Definition at line 45 of file Criteria.class.php.
References $dao, Expression::andBlock(), Assert::isTrue(), and setDao().
static Criteria::create | ( | $ | dao = null |
) | [static] |
Criteria::__clone | ( | ) |
Definition at line 58 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::getDao | ( | ) |
Definition at line 81 of file Criteria.class.php.
Referenced by MappableObjectProjection::process(), and HavingProjection::process().
Criteria::setDao | ( | StorableDAO $ | dao | ) |
Definition at line 89 of file Criteria.class.php.
References FetchStrategy::cascade(), and setFetchStrategy().
Referenced by __construct(), and UnifiedContainer::setCriteria().
Criteria::getLogic | ( | ) |
Criteria::add | ( | LogicalObject $ | logic | ) |
Criteria::getOrder | ( | ) |
Criteria::addOrder | ( | $ | order | ) |
Criteria::dropOrder | ( | ) |
Criteria::getLimit | ( | ) |
Definition at line 153 of file Criteria.class.php.
Criteria::setLimit | ( | $ | limit | ) |
Criteria::getOffset | ( | ) |
Definition at line 168 of file Criteria.class.php.
Criteria::setOffset | ( | $ | offset | ) |
Criteria::getFetchStrategy | ( | ) |
Criteria::setFetchStrategy | ( | FetchStrategy $ | strategy | ) |
Definition at line 194 of file Criteria.class.php.
References Assert::isTrue(), and FetchStrategy::JOIN.
Referenced by setDao().
Criteria::setProjection | ( | ObjectProjection $ | chain | ) |
Criteria::getProjection | ( | ) |
Definition at line 224 of file Criteria.class.php.
Referenced by toSelectQuery().
Criteria::dropProjection | ( | ) |
Criteria::setDistinct | ( | $ | orly = true |
) |
Criteria::isDistinct | ( | ) |
Definition at line 249 of file Criteria.class.php.
Criteria::isSilent | ( | ) |
Definition at line 254 of file Criteria.class.php.
Referenced by get(), getCustom(), getCustomList(), getList(), getPropertyList(), and getResult().
Criteria::setSilent | ( | $ | silent | ) |
Criteria::fetchCollection | ( | $ | path, | |
$ | lazy = false , |
|||
$ | criteria = null | |||
) |
Definition at line 274 of file Criteria.class.php.
References Assert::isTrue().
Criteria::get | ( | ) |
Definition at line 294 of file Criteria.class.php.
References isSilent().
Criteria::getList | ( | ) |
Definition at line 313 of file Criteria.class.php.
References isSilent(), and toSelectQuery().
Criteria::getResult | ( | ) |
Definition at line 333 of file Criteria.class.php.
References isSilent(), and toSelectQuery().
Criteria::getCustom | ( | $ | index = null |
) |
Definition at line 355 of file Criteria.class.php.
References isSilent(), and toSelectQuery().
Criteria::getCustomList | ( | ) |
Definition at line 376 of file Criteria.class.php.
References isSilent(), and toSelectQuery().
Criteria::getPropertyList | ( | ) |
Definition at line 388 of file Criteria.class.php.
References isSilent(), and toSelectQuery().
Referenced by joinProperties().
Criteria::toString | ( | ) |
Implements Stringable.
Definition at line 400 of file Criteria.class.php.
References DBPool::getByDao(), ImaginaryDialect::me(), and toDialectString().
Criteria::toDialectString | ( | Dialect $ | dialect | ) |
Implements DialectString.
Definition at line 409 of file Criteria.class.php.
References toSelectQuery().
Referenced by toString().
Criteria::toSelectQuery | ( | ) |
Definition at line 417 of file Criteria.class.php.
References fillSelectQuery(), getProjection(), Assert::isNotNull(), and OSQL::select().
Referenced by getCustom(), getCustomList(), getList(), getPropertyList(), getResult(), and toDialectString().
Criteria::fillSelectQuery | ( | SelectQuery $ | query | ) |
Definition at line 436 of file Criteria.class.php.
References SelectQuery::distinct(), FetchStrategy::JOIN, joinProperties(), and SelectQuery::setOrderChain().
Referenced by toSelectQuery().
Criteria::joinProperties | ( | SelectQuery $ | query, | |
ComplexBuilderDAO $ | parentDao, | |||
$ | parentTable, | |||
$ | parentRequired, | |||
$ | prefix = null | |||
) | [private] |
Definition at line 466 of file Criteria.class.php.
References $logic, FetchStrategy::CASCADE, DBField::create(), Expression::eq(), SelectQuery::get(), getPropertyList(), SelectQuery::join(), SelectQuery::leftJoin(), and MetaRelation::ONE_TO_ONE.
Referenced by fillSelectQuery().
Criteria::getProto | ( | ) | [private] |
Criteria::$dao = null [private] |
Criteria::$daoClass = null [private] |
Definition at line 21 of file Criteria.class.php.
Criteria::$logic = null [private] |
Criteria::$order = null [private] |
Criteria::$strategy = null [private] |
Definition at line 24 of file Criteria.class.php.
Criteria::$projection = null [private] |
Definition at line 25 of file Criteria.class.php.
Criteria::$distinct = false [private] |
Definition at line 27 of file Criteria.class.php.
Criteria::$limit = null [private] |
Criteria::$offset = null [private] |
Criteria::$collections = array() [private] |
Definition at line 32 of file Criteria.class.php.
Criteria::$silent = true [private] |