Doctrine 1.2.4
Doctrine_Hook_Equal Class Reference

Inherits Doctrine_Hook_Parser.

Public Member Functions

 getParams ()
 
 parse ($alias, $field, $value)
 

Detailed Description

Definition at line 33 of file Equal.php.

Member Function Documentation

Doctrine_Hook_Parser::getParams ( )
inherited

getParams returns the parameters associated with this parser

Returns
array

Definition at line 49 of file Parser.php.

{
return $this->params;
}
Doctrine_Hook_Equal::parse (   $alias,
  $field,
  $value 
)

parse Parses given field and field value to DQL condition and parameters. This method should always return prepared statement conditions (conditions that use placeholders instead of literal values).

Parameters
string$aliascomponent alias
string$fieldthe field name
mixed$valuethe value of the field
Returns
void

Definition at line 47 of file Equal.php.

{
$this->params = (array) $value;
$this->condition = $alias . '.' . $field . ' = ?';
}

The documentation for this class was generated from the following file: