Ejemplo n.º 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));
         }
     }
 }
Ejemplo n.º 2
0
 public function __construct($attribute)
 {
     $attribute = nativeToDatumOrFunction($attribute);
     $this->setPositionalArg(0, $attribute);
 }
Ejemplo n.º 3
0
 public function __construct(ValuedQuery $sequence, $other)
 {
     $other = nativeToDatumOrFunction($other);
     $this->setPositionalArg(0, $sequence);
     $this->setPositionalArg(1, $other);
 }
Ejemplo n.º 4
0
 public function __construct(ValuedQuery $sequence, $predicate)
 {
     $predicate = nativeToDatumOrFunction($predicate);
     $this->setPositionalArg(0, $sequence);
     $this->setPositionalArg(1, $predicate);
 }
Ejemplo n.º 5
0
 public function __construct(Query $query, $defaultCase)
 {
     $defaultCase = nativeToDatumOrFunction($defaultCase);
     $this->setPositionalArg(0, $query);
     $this->setPositionalArg(1, $defaultCase);
 }
Ejemplo n.º 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);
     }
 }