class Doctrine_Query_Where extends Doctrine_Query_Condition (View source)

Doctrine_Query_Where

Properties

protected Doctrine_Query $query from Doctrine_Query_Part
protected $_tokenizer from Doctrine_Query_Part

Methods

__construct($query, Doctrine_Query_Tokenizer $tokenizer = null)

No description

string
parse(string $str)

DQL CONDITION PARSER parses the join condition/where/having part of the query string

string
parseLiteralValue(string $value)

parses a literal value and returns the parsed value

load($where)

No description

_buildSql($leftExpr, $operator, $rightExpr)

No description

_buildWhereInArraySqlPart($rightExpr)

No description

string
parseExists(string $where, boolean $negation)

parses an EXISTS expression

Details

__construct($query, Doctrine_Query_Tokenizer $tokenizer = null)

Parameters

$query
Doctrine_Query_Tokenizer $tokenizer

Doctrine_Query getQuery()

Return Value

Doctrine_Query $query the query object associated with this parser

string parse(string $str)

DQL CONDITION PARSER parses the join condition/where/having part of the query string

Parameters

string $str

Return Value

string

string parseLiteralValue(string $value)

parses a literal value and returns the parsed value

boolean literals are parsed to integers components are parsed to associated table aliases

Parameters

string $value literal value to be parsed

Return Value

string

load($where)

Parameters

$where

protected _buildSql($leftExpr, $operator, $rightExpr)

Parameters

$leftExpr
$operator
$rightExpr

protected _buildWhereInArraySqlPart($rightExpr)

Parameters

$rightExpr

string parseExists(string $where, boolean $negation)

parses an EXISTS expression

Parameters

string $where query where part to be parsed
boolean $negation whether or not to use the NOT keyword

Return Value

string