1 | <?php |
||
24 | class DateFormat extends FunctionNode |
||
25 | { |
||
26 | /* |
||
27 | * holds the timestamp of the DATE_FORMAT DQL statement |
||
28 | * @var mixed |
||
29 | */ |
||
30 | protected $dateExpression; |
||
31 | |||
32 | /** |
||
33 | * holds the '%format' parameter of the DATE_FORMAT DQL statement. |
||
34 | * |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $formatChar; |
||
38 | |||
39 | /** |
||
40 | * getSql - allows ORM to inject a DATE_FORMAT() statement into an SQL string being constructed. |
||
41 | * |
||
42 | * @param \Doctrine\ORM\Query\SqlWalker $sqlWalker |
||
43 | */ |
||
44 | public function getSql(\Doctrine\ORM\Query\SqlWalker $sqlWalker) |
||
52 | |||
53 | /** |
||
54 | * parse - allows DQL to breakdown the DQL string into a processable structure. |
||
55 | * |
||
56 | * @param \Doctrine\ORM\Query\Parser $parser |
||
57 | */ |
||
58 | public function parse(\Doctrine\ORM\Query\Parser $parser) |
||
69 | } |
||
70 |