MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
orderentry.class
Ir para a documentação deste ficheiro.
1
<?php
2
3
class
OrderEntry
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
?>
OrderEntry
Definição
orderentry.class:4
OrderEntry\isAscend
isAscend()
Definição
orderentry.class:14
OrderEntry\getAttribute
getAttribute()
Definição
orderentry.class:19
OrderEntry\getStatement
getStatement($criteria)
Definição
orderentry.class:24
OrderEntry\__construct
__construct($attribute, $ascend)
Definição
orderentry.class:8
classes
persistence
criteria
orderentry.class
Gerado por
1.10.0