|
Doctrine 1.2.4
|
Public Member Functions | |
| __construct ($expr, $conn=null) | |
| __toString () | |
| getConnection () | |
| getSql () | |
| parseClause ($clause) | |
| parseExpression ($expr) | |
| setExpression ($clause) | |
Definition at line 36 of file Expression.php.
| Doctrine_Expression::__construct | ( | $expr, | |
$conn = null |
|||
| ) |
Creates an expression.
The constructor needs the dql fragment that contains one or more dbms functions. $e = new Doctrine_Expression("CONCAT('some', 'one')");
| string | $expr | sql fragment |
| Doctrine_Connection | $conn | the connection (optional) |
Definition at line 54 of file Expression.php.
| Doctrine_Expression::__toString | ( | ) |
Magic method.
Returns a string representation of this object. Proxies to
Definition at line 154 of file Expression.php.
| Doctrine_Expression::getConnection | ( | ) |
Retrieves the connection associated to this expression at creation, or the current connection used if it was not specified.
Definition at line 69 of file Expression.php.
| Doctrine_Expression::getSql | ( | ) |
Gets the sql fragment represented.
Definition at line 142 of file Expression.php.
| Doctrine_Expression::parseClause | ( | $clause | ) |
Parses a set of expressions at once.
| string | $clause | The clause. Can be complex and parenthesised. |
Definition at line 126 of file Expression.php.
| Doctrine_Expression::parseExpression | ( | $expr | ) |
Parses a single expressions and substitutes dql abstract functions with their concrete sql counterparts for the given connection.
| string | $expr | The expression to parse |
Definition at line 99 of file Expression.php.
| Doctrine_Expression::setExpression | ( | $clause | ) |
Sets the contained expression assuring that it is parsed. $e->setExpression("CONCAT('some', 'one')");
| string | $clause | The expression to set |
Definition at line 87 of file Expression.php.