Reference for calling built-in database functions. More...
Public Member Functions | |
__construct ($name) | |
getAlias () | |
getName () | |
setAlias ($alias) | |
setAggregateAll () | |
setAggregateDistinct () | |
toMapped (ProtoDAO $dao, JoinCapableQuery $query) | |
toDialectString (Dialect $dialect) | |
Static Public Member Functions | |
static | create ($name) |
Public Attributes | |
const | AGGREGATE_ALL = 1 |
const | AGGREGATE_DISTINCT = 2 |
Private Attributes | |
$name = null | |
$alias = null | |
$aggregate = null | |
$args = array() |
Reference for calling built-in database functions.
Definition at line 17 of file SQLFunction.class.php.
SQLFunction::__construct | ( | $ | name | ) |
Definition at line 41 of file SQLFunction.class.php.
static SQLFunction::create | ( | $ | name | ) | [static] |
Definition at line 31 of file SQLFunction.class.php.
Referenced by CountProjection::getFunction(), CommonDaoWorker::getQueryResult(), UnifiedContainerWorker::makeCountQuery(), GenericDAO::makeTotalCountQuery(), AggregateProjection::process(), and EqualsLowerExpression::toDialectString().
SQLFunction::getAlias | ( | ) |
Implements Aliased.
Definition at line 57 of file SQLFunction.class.php.
SQLFunction::getName | ( | ) |
Definition at line 62 of file SQLFunction.class.php.
SQLFunction::setAggregateAll | ( | ) |
Definition at line 80 of file SQLFunction.class.php.
SQLFunction::setAggregateDistinct | ( | ) |
Definition at line 90 of file SQLFunction.class.php.
SQLFunction::setAlias | ( | $ | alias | ) |
SQLFunction::toDialectString | ( | Dialect $ | dialect | ) |
Definition at line 122 of file SQLFunction.class.php.
References $args, Dialect::fieldToString(), Assert::isTrue(), Dialect::quoteTable(), and Dialect::toCasted().
SQLFunction::toMapped | ( | ProtoDAO $ | dao, | |
JoinCapableQuery $ | query | |||
) |
Definition at line 100 of file SQLFunction.class.php.
References ProtoDAO::guessAtom().
SQLFunction::$aggregate = null [private] |
Definition at line 24 of file SQLFunction.class.php.
SQLFunction::$alias = null [private] |
Definition at line 23 of file SQLFunction.class.php.
Referenced by setAlias().
SQLFunction::$args = array() [private] |
Definition at line 26 of file SQLFunction.class.php.
Referenced by __construct(), create(), and toDialectString().
SQLFunction::$name = null [private] |
Definition at line 22 of file SQLFunction.class.php.
Referenced by __construct(), and create().
const SQLFunction::AGGREGATE_ALL = 1 |
Definition at line 19 of file SQLFunction.class.php.
const SQLFunction::AGGREGATE_DISTINCT = 2 |
Definition at line 20 of file SQLFunction.class.php.