Bitrix-D7
20.0.0
|
Открытые члены | |
__construct () | |
ConditionTree constructor. Подробнее... | |
logic ($logic=null) | |
All conditions will be imploded by this logic: static::LOGIC_AND or static::LOGIC_OR. Подробнее... | |
negative ($negative=true) | |
Sets NOT before all the conditions. Подробнее... | |
where () | |
General condition. Подробнее... | |
whereNot () | |
Sets NOT before any conditions or subfilter. Подробнее... | |
whereColumn () | |
The same logic as where(), but value will be taken as another column name. Подробнее... | |
whereNull ($column) | |
Compares column with NULL. Подробнее... | |
whereNotNull ($column) | |
Compares column with NOT NULL. Подробнее... | |
whereIn ($column, $values) | |
IN() condition. Подробнее... | |
whereNotIn ($column, $values) | |
Negative IN() condition. Подробнее... | |
whereBetween ($column, $valueMin, $valueMax) | |
BETWEEN condition. Подробнее... | |
whereNotBetween ($column, $valueMin, $valueMax) | |
Negative BETWEEN condition. Подробнее... | |
whereLike ($column, $value) | |
LIKE condition, without default % placement. Подробнее... | |
whereNotLike ($column, $value) | |
Negative LIKE condition, without default % placement. Подробнее... | |
whereExists ($query) | |
Exists() condition. Подробнее... | |
whereNotExists ($query) | |
Negative Exists() condition. Подробнее... | |
whereMatch ($column, $value) | |
Fulltext search condition. Подробнее... | |
whereNotMatch ($column, $value) | |
Negative fulltext search condition. Подробнее... | |
getSql ($chains) | |
Returns SQL for all conditions and subfilters. Подробнее... | |
getConditions () | |
Returns all conditions and subfilters. Подробнее... | |
addCondition ($condition) | |
Adds prepared condition. Подробнее... | |
hasConditions () | |
Checks if filter is not empty. Подробнее... | |
replaceCondition ($currentCondition, $newCondition) | |
Replaces condition with a new one. Подробнее... | |
removeCondition ($condition) | |
Removes one condition. Подробнее... | |
removeAllConditions () | |
Removes all conditions. Подробнее... | |
__clone () | |
Поля данных | |
const | LOGIC_OR = 'or' |
const | LOGIC_AND = 'and' |
Защищенные члены | |
convertValue ($value, IReadable $field=null) | |
Converts any value to raw SQL, except of NULL, which is supposed to be handled in Operator. Подробнее... | |
convertValues ($values, IReadable $field=null) | |
Converts array of values to raw SQL. Подробнее... | |
Защищенные данные | |
$chains | |
$conditions = array() | |
$logic | |
$isNegative = false | |
См. определение в файле conditiontree.php строка 23
__construct | ( | ) |
ConditionTree constructor.
См. определение в файле conditiontree.php строка 50
__clone | ( | ) |
См. определение в файле conditiontree.php строка 674
addCondition | ( | $condition | ) |
Adds prepared condition.
Condition | ConditionTree | $condition |
ArgumentException |
См. определение в файле conditiontree.php строка 535
|
protected |
Converts any value to raw SQL, except of NULL, which is supposed to be handled in Operator.
mixed | $value | |
IReadable | $field |
ArgumentException | |
SystemException |
См. определение в файле conditiontree.php строка 617
|
protected |
Converts array of values to raw SQL.
array | $values | |
\Bitrix\Main\ORM\Fields\IReadable | null | $field |
ArgumentException | |
SystemException |
См. определение в файле conditiontree.php строка 664
getConditions | ( | ) |
Returns all conditions and subfilters.
См. определение в файле conditiontree.php строка 522
getSql | ( | $chains | ) |
Returns SQL for all conditions and subfilters.
Chain[] | $chains |
ArgumentException | |
SystemException |
См. определение в файле conditiontree.php строка 443
hasConditions | ( | ) |
logic | ( | $logic = null | ) |
All conditions will be imploded by this logic: static::LOGIC_AND or static::LOGIC_OR.
string | $logic | and|or |
ArgumentException |
См. определение в файле conditiontree.php строка 63
negative | ( | $negative = true | ) |
Sets NOT before all the conditions.
bool | $negative |
См. определение в файле conditiontree.php строка 87
removeAllConditions | ( | ) |
Removes all conditions.
См. определение в файле conditiontree.php строка 602
removeCondition | ( | $condition | ) |
Removes one condition.
$condition |
См. определение в файле conditiontree.php строка 585
replaceCondition | ( | $currentCondition, | |
$newCondition | |||
) |
Replaces condition with a new one.
$currentCondition | |
$newCondition |
См. определение в файле conditiontree.php строка 564
where | ( | ) |
General condition.
In regular case used with 3 parameters: where(columnName, operator, value), e.g. ('ID', '=', 1); ('SALARY', '>', '500')
List of available operators can be found in Operator class.
Can be used in short format: where(columnName, value), with operator '=' by default Can be used in ultra short format: where(columnName), for boolean fields only
Can be used for subfilter set: where(ConditionTree subfilter)
Instead of columnName, you can use runtime field: where(new ExpressionField('TMP', 'CONCAT(s, s)', ["NAME", "LAST_NAME"]), 'Anton Ivanov') or with expr helper where(Query::expr()->concat("NAME", "LAST_NAME"), 'Anton Ivanov')
array | ...$filter |
ArgumentException |
См. определение в файле conditiontree.php строка 118
whereBetween | ( | $column, | |
$valueMin, | |||
$valueMax | |||
) |
BETWEEN condition.
$column | |
$valueMin | |
$valueMax |
См. определение в файле conditiontree.php строка 308
whereColumn | ( | ) |
The same logic as where(), but value will be taken as another column name.
array | ...$filter |
ArgumentException |
См. определение в файле conditiontree.php строка 212
whereExists | ( | $query | ) |
Exists() condition.
Can be used with Query object or plain sql wrapped with SqlExpression.
Query | SqlExpression | $query |
См. определение в файле conditiontree.php строка 372
whereIn | ( | $column, | |
$values | |||
) |
IN() condition.
string | $column | |
array | Query | SqlExpression | $values |
См. определение в файле conditiontree.php строка 275
whereLike | ( | $column, | |
$value | |||
) |
LIKE condition, without default % placement.
$column | |
$value |
См. определение в файле conditiontree.php строка 341
whereMatch | ( | $column, | |
$value | |||
) |
Fulltext search condition.
$column | |
$value |
См. определение в файле conditiontree.php строка 410
whereNot | ( | ) |
Sets NOT before any conditions or subfilter.
array | ...$filter |
См. определение в файле conditiontree.php строка 192
whereNotBetween | ( | $column, | |
$valueMin, | |||
$valueMax | |||
) |
Negative BETWEEN condition.
$column | |
$valueMin | |
$valueMax |
См. определение в файле conditiontree.php строка 325
whereNotExists | ( | $query | ) |
Negative Exists() condition.
Can be used with Query object or plain sql wrapped with SqlExpression.
Query | SqlExpression | $query |
ArgumentException |
См. определение в файле conditiontree.php строка 388
whereNotIn | ( | $column, | |
$values | |||
) |
Negative IN() condition.
string | $column | |
array | Query | SqlExpression | $values |
См. определение в файле conditiontree.php строка 291
whereNotLike | ( | $column, | |
$value | |||
) |
Negative LIKE condition, without default % placement.
$column | |
$value |
См. определение в файле conditiontree.php строка 357
whereNotMatch | ( | $column, | |
$value | |||
) |
Negative fulltext search condition.
$column | |
$value |
См. определение в файле conditiontree.php строка 426
whereNotNull | ( | $column | ) |
Compares column with NOT NULL.
string | $column |
См. определение в файле conditiontree.php строка 260
whereNull | ( | $column | ) |
Compares column with NULL.
string | $column |
См. определение в файле conditiontree.php строка 246
|
protected |
См. определение в файле conditiontree.php строка 26
|
protected |
См. определение в файле conditiontree.php строка 29
|
protected |
См. определение в файле conditiontree.php строка 45
|
protected |
См. определение в файле conditiontree.php строка 35
const LOGIC_AND = 'and' |
См. определение в файле conditiontree.php строка 39
const LOGIC_OR = 'or' |
См. определение в файле conditiontree.php строка 37