MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
orderentry.class
Ir para a documentação deste ficheiro.
1<?php
2
4{
5 private $attribute;
6 private $ascend;
7
8 public function __construct($attribute, $ascend)
9 {
10 $this->attribute = $attribute;
11 $this->ascend = $ascend;
12 }
13
14 public function isAscend()
15 {
16 return $this->ascend;
17 }
18
19 public function getAttribute()
20 {
21 return $this->attribute;
22 }
23
24 public function getStatement($criteria)
25 {
26 $s = $criteria->getOperand($this->attribute)->getSqlOrder();
27 $s .= $this->ascend ? ' ASC' : ' DESC';
28 return $s;
29 }
30}
31?>
getStatement($criteria)
__construct($attribute, $ascend)
Definição orderentry.class:8