public function __construct($operand, $name) { parent::__construct($operand); $this->type = 'attributemap'; if ($p = strpos($name, '.')) { $this->alias = substr($name, 0, $p); } $this->attributeMap = $operand; }
public function __construct($criteria, $operand) { parent::__construct($criteria, $operand); $this->type = 'expression'; $str = $this->argument = $this->operand; $separator = " "; $tok = strtok($str, $separator); while ($tok) { $t[$tok] = $tok; $tok = strtok($separator); } foreach ($t as $token) { $op = $criteria->getOperand($token); if (get_class($op) == 'Maestro\\Persistence\\Criteria\\OperandValue') { $op = $criteria->getOperand(':' . $token); } $this->argument = str_replace($token, $op->getSql(), $this->argument); } }
public function __construct($operand) { parent::__construct($operand); $this->type = 'array'; }
public function __construct($operand, $criteria) { parent::__construct($operand); $this->criteria = $criteria; $this->type = 'criteria'; }