MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
basecriteria.class
Ir para a documentação deste ficheiro.
1<?php
2
4{
5 private $operand1;
6 private $operator;
7 private $operand2;
8
9 function __construct($operand1, $operator, $operand2)
10 {
11 $this->operand1 = $operand1;
12 $this->operator = $operator;
13 $this->operand2 = $operand2;
14 }
15
16 function getSql()
17 {
18 $condition = "(";
19 $condition .= $this->operand1->getSqlWhere();
20 $condition .= ' ' . $this->operator . ' ';
21 $condition .= $this->operand2->getSqlWhere();
22 $condition .= ")";
23 return $condition;
24 }
25}
26?>
__construct($operand1, $operator, $operand2)