Exemple #1
0
 public function __construct(ValuedQuery $sequence, $attribute, ValuedQuery $otherSequence, $opts = null)
 {
     $attribute = nativeToDatumOrFunction($attribute);
     $this->setPositionalArg(0, $sequence);
     $this->setPositionalArg(1, $attribute);
     $this->setPositionalArg(2, $otherSequence);
     if (isset($opts)) {
         if (!is_array($opts)) {
             throw new RqlDriverError("opts argument must be an array");
         }
         foreach ($opts as $k => $v) {
             $this->setOptionalArg($k, nativeToDatum($v));
         }
     }
 }
Exemple #2
0
 public function __construct($attribute)
 {
     $attribute = nativeToDatumOrFunction($attribute);
     $this->setPositionalArg(0, $attribute);
 }
Exemple #3
0
 public function __construct(ValuedQuery $sequence, $other)
 {
     $other = nativeToDatumOrFunction($other);
     $this->setPositionalArg(0, $sequence);
     $this->setPositionalArg(1, $other);
 }
Exemple #4
0
 public function __construct(ValuedQuery $sequence, $predicate)
 {
     $predicate = nativeToDatumOrFunction($predicate);
     $this->setPositionalArg(0, $sequence);
     $this->setPositionalArg(1, $predicate);
 }
Exemple #5
0
 public function __construct(Query $query, $defaultCase)
 {
     $defaultCase = nativeToDatumOrFunction($defaultCase);
     $this->setPositionalArg(0, $query);
     $this->setPositionalArg(1, $defaultCase);
 }
Exemple #6
0
 public function __construct(ValuedQuery $sequence, $predicate, $default = null)
 {
     $predicate = nativeToDatumOrFunction($predicate);
     if (isset($default)) {
         $default = nativeToDatum($default);
     }
     $this->setPositionalArg(0, $sequence);
     $this->setPositionalArg(1, $predicate);
     if (isset($default)) {
         $this->setOptionalArg('default', $default);
     }
 }