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