1C-Bitrix 25.700.0
|
Открытые члены | |
__construct () | |
logic ($logic=null) | |
negative ($negative=true) | |
where (... $filter) | |
whereNot (... $filter) | |
whereColumn (... $filter) | |
whereNull ($column) | |
whereNotNull ($column) | |
whereIn ($column, $values) | |
whereNotIn ($column, $values) | |
whereBetween ($column, $valueMin, $valueMax) | |
whereNotBetween ($column, $valueMin, $valueMax) | |
whereLike ($column, $value) | |
whereNotLike ($column, $value) | |
whereExists ($query) | |
whereNotExists ($query) | |
whereMatch ($column, $value) | |
whereNotMatch ($column, $value) | |
whereExpr ($expr, $arguments) | |
getConditions () | |
addCondition ($condition) | |
hasConditions () | |
replaceCondition ($currentCondition, $newCondition) | |
removeCondition ($condition) | |
removeAllConditions () | |
__clone () |
Открытые статические члены | |
static | createFromArray ($filter) |
Поля данных | |
const | LOGIC_OR = 'or' |
const | LOGIC_AND = 'and' |
Защищенные члены | |
convertValues ($values, IReadable $field=null) |
Защищенные статические члены | |
static | getRandomSequence () |
Защищенные данные | |
$chains | |
$conditions = array() | |
$logic | |
$isNegative = false |
Статические защищенные данные | |
static RandomSequence | $randomSequence |
См. определение в файле conditiontree.php строка 28
__construct | ( | ) |
ConditionTree constructor.
См. определение в файле conditiontree.php строка 58
__clone | ( | ) |
См. определение в файле conditiontree.php строка 720
addCondition | ( | $condition | ) |
Adds prepared condition.
Condition | ConditionTree | $condition |
ArgumentException |
См. определение в файле conditiontree.php строка 575
|
protected |
Converts array of values to raw SQL.
array | $values | |
\Bitrix\Main\ORM\Fields\IReadable | null | $field |
ArgumentException | |
SystemException |
См. определение в файле conditiontree.php строка 710
|
static |
Creates filter object from array
$filter |
ArgumentException |
См. определение в файле conditiontree.php строка 753
getConditions | ( | ) |
Returns all conditions and subfilters.
См. определение в файле conditiontree.php строка 562
|
staticprotected |
См. определение в файле conditiontree.php строка 735
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 строка 71
negative | ( | $negative = true | ) |
Sets NOT before all the conditions.
bool | $negative |
См. определение в файле conditiontree.php строка 95
removeAllConditions | ( | ) |
Removes all conditions
См. определение в файле conditiontree.php строка 642
removeCondition | ( | $condition | ) |
Removes one condition
$condition |
См. определение в файле conditiontree.php строка 625
replaceCondition | ( | $currentCondition, | |
$newCondition ) |
Replaces condition with a new one.
$currentCondition | |
$newCondition |
См. определение в файле conditiontree.php строка 604
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')
mixed | ...$filter |
ArgumentException |
См. определение в файле conditiontree.php строка 126
whereBetween | ( | $column, | |
$valueMin, | |||
$valueMax ) |
BETWEEN condition.
$column | |
$valueMin | |
$valueMax |
См. определение в файле conditiontree.php строка 313
whereColumn | ( | ... | ) |
The same logic as where(), but value will be taken as another column name.
mixed | ...$filter |
ArgumentException |
См. определение в файле conditiontree.php строка 216
whereExists | ( | $query | ) |
Exists() condition. Can be used with Query object or plain sql wrapped with SqlExpression.
Query | SqlExpression | $query |
См. определение в файле conditiontree.php строка 377
whereExpr | ( | $expr, | |
$arguments ) |
Any SQL Expression condition
string | $expr | |
string[] | $arguments |
ArgumentException | |
SystemException |
См. определение в файле conditiontree.php строка 450
whereIn | ( | $column, | |
$values ) |
IN() condition.
string | $column | |
array | Query | SqlExpression | $values |
См. определение в файле conditiontree.php строка 277
whereLike | ( | $column, | |
$value ) |
LIKE condition, without default % placement.
$column | |
$value |
См. определение в файле conditiontree.php строка 346
whereMatch | ( | $column, | |
$value ) |
Fulltext search condition.
$column | |
$value |
См. определение в файле conditiontree.php строка 415
whereNot | ( | ... | ) |
Sets NOT before any conditions or subfilter.
mixed | ...$filter |
См. определение в файле conditiontree.php строка 198
whereNotBetween | ( | $column, | |
$valueMin, | |||
$valueMax ) |
Negative BETWEEN condition.
$column | |
$valueMin | |
$valueMax |
См. определение в файле conditiontree.php строка 330
whereNotExists | ( | $query | ) |
Negative Exists() condition. Can be used with Query object or plain sql wrapped with SqlExpression.
Query | SqlExpression | $query |
ArgumentException |
См. определение в файле conditiontree.php строка 393
whereNotIn | ( | $column, | |
$values ) |
Negative IN() condition.
string | $column | |
array | Query | SqlExpression | $values |
См. определение в файле conditiontree.php строка 296
whereNotLike | ( | $column, | |
$value ) |
Negative LIKE condition, without default % placement.
$column | |
$value |
См. определение в файле conditiontree.php строка 362
whereNotMatch | ( | $column, | |
$value ) |
Negative fulltext search condition.
$column | |
$value |
См. определение в файле conditiontree.php строка 431
whereNotNull | ( | $column | ) |
Compares column with NOT NULL.
string | $column |
См. определение в файле conditiontree.php строка 262
whereNull | ( | $column | ) |
Compares column with NULL.
string | $column |
См. определение в файле conditiontree.php строка 248
|
protected |
См. определение в файле conditiontree.php строка 31
|
protected |
См. определение в файле conditiontree.php строка 34
|
protected |
См. определение в файле conditiontree.php строка 53
|
protected |
См. определение в файле conditiontree.php строка 40
|
staticprotected |
См. определение в файле conditiontree.php строка 43
const LOGIC_AND = 'and' |
См. определение в файле conditiontree.php строка 47
const LOGIC_OR = 'or' |
См. определение в файле conditiontree.php строка 45