Class NotConditionBuilder builds objects of yii\db\conditions\NotCondition
Method Details__construct()
public method public function __construct(QueryBuilder $queryBuilder)
{
$this->queryBuilder = $queryBuilder;
}
Method builds the raw SQL from the $expression that will not be additionally escaped or quoted.
public function build(ExpressionInterface $expression, array &$params = [])
{
$operand = $expression->getCondition();
if ($operand === '') {
return '';
}
$expession = $this->queryBuilder->buildCondition($operand, $params);
return "{$this->getNegationOperator()} ($expession)";
}
getNegationOperator()
protected method protected function getNegationOperator()
{
return 'NOT';
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4