コード例 #1
0
 public function __construct($operand, $name)
 {
     parent::__construct($operand);
     $this->type = 'attributemap';
     if ($p = strpos($name, '.')) {
         $this->alias = substr($name, 0, $p);
     }
     $this->attributeMap = $operand;
 }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
ファイル: OperandArray.php プロジェクト: elymatos/expressive
 public function __construct($operand)
 {
     parent::__construct($operand);
     $this->type = 'array';
 }
コード例 #4
0
 public function __construct($operand, $criteria)
 {
     parent::__construct($operand);
     $this->criteria = $criteria;
     $this->type = 'criteria';
 }