function toDialectString(IDialect $dialect)
 {
     $compiledSlices = array();
     $compiledSlices[] = '(';
     $compiledSlices[] = $this->subject->toDialectString($dialect);
     $compiledSlices[] = ')';
     $compiledSlices[] = $this->operator->toDialectString($dialect);
     $compiledString = join(' ', $compiledSlices);
     return $compiledString;
 }
Example #2
0
 /**
  * Creates an instance of binary expression node, representing the construction: subject IS FALSE
  *
  * @param mixed $subject logical subject
  *
  * SQL example:
  * @code
  * // "hasSmth" IS FALSE
  * Expression::isFalse("hasSmth");
  * @endcode
  * @return UnaryPostfixExpression
  */
 static function isFalse($subject)
 {
     return new UnaryPostfixExpression($subject, UnaryPostfixLogicalOperator::isFalse());
 }