Exemple #1
0
 function __construct($name, $value, $asBind = true, $operator = self::DEFAULT_OPERATOR, array $extraBinds = array())
 {
     $this->name = PsCheck::tableColName($name);
     $this->value = $asBind ? PsCheck::queryBindParam($value, $name) : PsCheck::queryPlainExpression($value, $name);
     $this->asBind = $asBind;
     $this->operator = PsCheck::notEmptyString($operator);
     foreach ($extraBinds as $bindParam) {
         $this->extraBinds[] = PsCheck::queryBindParam($bindParam, $name);
     }
 }
Exemple #2
0
 /** @return QueryParamPlain */
 public function addBindParam($param)
 {
     $this->bindParams[] = PsCheck::queryBindParam($param, $this->expression);
     return $this;
 }