D7 API documentation
What's New
Modules
Main module in old core
addFilter
addGroup
addOrder
addSelect
buildFilterSql
cacheJoins
disableDataDoubling
exec
fetchDataModificationCallback
getFilter
getGroup
getLastQuery
getLimit
getOffset
getOrder
getQuery
getSelect
isFetchModificationRequired
registerRuntimeField
setCustomBaseTableAlias
setFilter
setGroup
setLimit
setOffset
setOrder
setSelect
where
\Bitrix\Main\Entity\Query\Filter\ConditionTree public \Bitrix\Main\Entity\Query\Filter\ConditionTree::where( array $filter );
This non-static method sets general conditions. Generally, 3 parameters are used:
where(columnName, operator, value)
, for example: ('ID', '=', 1); ('SALARY', '>', '500')
List of possible operators can be received from operator class.
Parameters
Parameter | Description | Version |
---|---|---|
$filter | fitler |
Exceptions
See Also
- \Bitrix\Main\Entity\Query\Filter\Operator::$operators
Example
© «Bitrix24», 2001-2024
Up