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
 function __construct($expression, array $bindParams = array())
 {
     $this->expression = PsCheck::queryPlainExpression($expression);
     $this->addBindParams($bindParams);
 }