class Doctrine_Hook (View source)

Doctrine_Hook

Properties

protected Doctrine_Query $query
protected array $joins
protected array $hooks
protected array $fieldParsers
protected array $typeParsers

Methods

__construct(Doctrine_Query $query)

No description

setTypeParser(string $type, string|object $parser)

setTypeParser

setFieldParser(string $field, string|object $parser)

setFieldParser

boolean
hookWhere(array $params)

hookWhere builds DQL query where part from given parameter array

boolean
hookOrderby(array $params)

hookOrderBy builds DQL query orderby part from given parameter array

void
hookLimit(integer $limit)

set the hook limit

hookOffset(integer $offset)

set the hook offset

Details

__construct(Doctrine_Query $query)

Parameters

Doctrine_Query $query the base query

Doctrine_Query getQuery()

getQuery

Return Value

Doctrine_Query returns the query object associated with this hook

setTypeParser(string $type, string|object $parser)

setTypeParser

Parameters

string $type type name
string|object $parser parser name or custom parser object

setFieldParser(string $field, string|object $parser)

setFieldParser

Parameters

string $field field name
string|object $parser parser name or custom parser object

boolean hookWhere(array $params)

hookWhere builds DQL query where part from given parameter array

Parameters

array $params an associative array containing field names and their values

Return Value

boolean whether or not the hooking was

boolean hookOrderby(array $params)

hookOrderBy builds DQL query orderby part from given parameter array

Parameters

array $params an array containing all fields which the built query should be ordered by

Return Value

boolean whether or not the hooking was successful

void hookLimit(integer $limit)

set the hook limit

Parameters

integer $limit

Return Value

void

hookOffset(integer $offset)

set the hook offset

Parameters

integer $offset