Открытые члены | |
__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 строка 27
__construct | ( | ) |
ConditionTree constructor.
См. определение в файле conditiontree.php строка 57
__clone | ( | ) |
См. определение в файле conditiontree.php строка 713
addCondition | ( | $condition | ) |
Adds prepared condition.
Condition | ConditionTree | $condition |
ArgumentException |
См. определение в файле conditiontree.php строка 574
|
protected |
Converts array of values to raw SQL.
array | $values | |
\Bitrix\Main\ORM\Fields\IReadable | null | $field |
ArgumentException | |
SystemException |
См. определение в файле conditiontree.php строка 703
|
static |
Creates filter object from array
$filter |
ArgumentException |
См. определение в файле conditiontree.php строка 746
getConditions | ( | ) |
Returns all conditions and subfilters.
См. определение в файле conditiontree.php строка 561
|
staticprotected |
См. определение в файле conditiontree.php строка 728
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 строка 70
negative | ( | $negative = true | ) |
Sets NOT before all the conditions.
bool | $negative |
См. определение в файле conditiontree.php строка 94
removeAllConditions | ( | ) |
Removes all conditions
См. определение в файле conditiontree.php строка 641
removeCondition | ( | $condition | ) |
Removes one condition
$condition |
См. определение в файле conditiontree.php строка 624
replaceCondition | ( | $currentCondition, | |
$newCondition ) |
Replaces condition with a new one.
$currentCondition | |
$newCondition |
См. определение в файле conditiontree.php строка 603
where | ( | $filter | ) |
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 строка 125
whereBetween | ( | $column, | |
$valueMin, | |||
$valueMax ) |
BETWEEN condition.
$column | |
$valueMin | |
$valueMax |
См. определение в файле conditiontree.php строка 312
whereColumn | ( | $filter | ) |
The same logic as where(), but value will be taken as another column name.
mixed | ...$filter |
ArgumentException |
См. определение в файле conditiontree.php строка 215
whereExists | ( | $query | ) |
Exists() condition. Can be used with Query object or plain sql wrapped with SqlExpression.
Query | SqlExpression | $query |
См. определение в файле conditiontree.php строка 376
whereExpr | ( | $expr, | |
$arguments ) |
Any SQL Expression condition
string | $expr | |
string[] | $arguments |
ArgumentException | |
SystemException |
См. определение в файле conditiontree.php строка 449
whereIn | ( | $column, | |
$values ) |
IN() condition.
string | $column | |
array | Query | SqlExpression | $values |
См. определение в файле conditiontree.php строка 276
whereLike | ( | $column, | |
$value ) |
LIKE condition, without default % placement.
$column | |
$value |
См. определение в файле conditiontree.php строка 345
whereMatch | ( | $column, | |
$value ) |
Fulltext search condition.
$column | |
$value |
См. определение в файле conditiontree.php строка 414
whereNot | ( | $filter | ) |
Sets NOT before any conditions or subfilter.
mixed | ...$filter |
См. определение в файле conditiontree.php строка 197
whereNotBetween | ( | $column, | |
$valueMin, | |||
$valueMax ) |
Negative BETWEEN condition.
$column | |
$valueMin | |
$valueMax |
См. определение в файле conditiontree.php строка 329
whereNotExists | ( | $query | ) |
Negative Exists() condition. Can be used with Query object or plain sql wrapped with SqlExpression.
Query | SqlExpression | $query |
ArgumentException |
См. определение в файле conditiontree.php строка 392
whereNotIn | ( | $column, | |
$values ) |
Negative IN() condition.
string | $column | |
array | Query | SqlExpression | $values |
См. определение в файле conditiontree.php строка 295
whereNotLike | ( | $column, | |
$value ) |
Negative LIKE condition, without default % placement.
$column | |
$value |
См. определение в файле conditiontree.php строка 361
whereNotMatch | ( | $column, | |
$value ) |
Negative fulltext search condition.
$column | |
$value |
См. определение в файле conditiontree.php строка 430
whereNotNull | ( | $column | ) |
Compares column with NOT NULL.
string | $column |
См. определение в файле conditiontree.php строка 261
whereNull | ( | $column | ) |
Compares column with NULL.
string | $column |
См. определение в файле conditiontree.php строка 247
|
protected |
См. определение в файле conditiontree.php строка 30
|
protected |
См. определение в файле conditiontree.php строка 33
|
protected |
См. определение в файле conditiontree.php строка 52
|
protected |
См. определение в файле conditiontree.php строка 39
|
staticprotected |
См. определение в файле conditiontree.php строка 42
const LOGIC_AND = 'and' |
См. определение в файле conditiontree.php строка 46
const LOGIC_OR = 'or' |
См. определение в файле conditiontree.php строка 44