|
| __construct ($source) |
|
| __call ($method, $arguments) |
|
| getSelect () |
|
| setSelect (array $select) |
|
| addSelect ($definition, $alias='') |
|
| getFilter () |
|
| setFilter (array $filter) |
|
| addFilter ($key, $value) |
|
| getFilterHandler () |
|
| getGroup () |
|
| setGroup ($group) |
|
| addGroup ($group) |
|
| getOrder () |
|
| setOrder ($order) |
|
| addOrder ($definition, $order='ASC') |
|
| getLimit () |
|
| setLimit ($limit) |
|
| getOffset () |
|
| setOffset ($offset) |
|
| countTotal ($count=null) |
|
| union () |
|
| unionAll () |
|
| setUnionOrder ($order) |
|
| addUnionOrder ($definition, $order='ASC') |
|
| setUnionLimit ($limit) |
|
| setUnionOffset ($offset) |
|
| enableDataDoubling () |
|
| disableDataDoubling () |
|
| enablePrivateFields () |
|
| disablePrivateFields () |
|
| isPrivateFieldsEnabled () |
|
| registerRuntimeField ($name, $fieldInfo=null) |
|
| setTableAliasPostfix ($postfix) |
|
| getTableAliasPostfix () |
|
| setCustomBaseTableAlias ($alias) |
|
| exec () |
|
| fetch (\Bitrix\Main\Text\Converter $converter=null) |
|
| fetchAll (\Bitrix\Main\Text\Converter $converter=null) |
|
| fetchObject () |
|
| fetchCollection () |
|
| hasAggregation () |
|
| setDistinct ($distinct=true) |
|
| hasDistinct () |
|
| registerChain ($section, Chain $chain, $opt_key=null) |
|
| getRegisteredChain ($key, $force_create=false) |
|
| booleanStrongEqualityCallback ($field, $operation, $value) |
|
| nullEqualityCallback ($field, $operation, $value) |
|
| dataDoublingCallback ($field, $operation, $value) |
|
| queryCountTotal () |
|
| fetchDataModificationCallback (&$data) |
|
| isFetchModificationRequired () |
|
| quoteTableSource ($source) |
|
| __clone () |
|
| hasBackReference () |
|
| getChains () |
|
| getGroupChains () |
|
| getHiddenChains () |
|
| getHavingChains () |
|
| getFilterChains () |
|
| getOrderChains () |
|
| getSelectChains () |
|
| getWhereChains () |
|
| getRuntimeChains () |
|
| getJoinMap () |
|
| getQuery ($forceObjectPrimary=false) |
|
| getEntity () |
|
| getInitAlias ($withPostfix=true) |
|
| getReplacedAliases () |
|
| setCacheTtl ($ttl) |
|
| cacheJoins ($mode) |
|
| dump () |
|
|
| checkForPrivateFields () |
|
| divideFilter () |
|
| divideFilterHandler () |
|
| checkFilterAggregation ($filter) |
|
| checkFilterHandlerAggregation (Filter $filter) |
|
| rewriteDataDoubling (Filter $filter, $section) |
|
| addToGroupChain ($definition) |
|
| addToOrderChain ($definition) |
|
| buildSelect () |
|
| buildJoin () |
|
| buildWhere () |
|
| buildGroup () |
|
| buildHaving () |
|
| buildOrder () |
|
| buildQuery ($forceObjectPrimary=true) |
|
| prepareJoinReference ($reference, $alias_this, $alias_ref, $baseDefinition, $refDefinition, $isBackReference) |
|
| prepareJoinFilterReference (Filter $reference, $alias_this, $alias_ref, $baseDefinition, $refDefinition, $isBackReference, $firstCall=true) |
|
| getJoinCswFields ($reference) |
|
| getUnionHandler () |
|
| getUniqueAlias () |
|
| replaceSelectAliases ($query) |
|
См. определение в файле query.php строка 117
◆ __construct()
- Аргументы
-
Entity | Query | string | $source | |
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 247
◆ __call()
__call |
( |
| $method, |
|
|
| $arguments ) |
- Аргументы
-
- Возвращает
- $this
- Исключения
-
SystemException
См. определение в файле query.php строка 280
◆ __clone()
◆ addFilter()
addFilter |
( |
| $key, |
|
|
| $value ) |
Adds a filter for WHERE clause
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 394
◆ addGroup()
Adds a field to the list of fields for GROUP BY clause
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 446
◆ addOrder()
addOrder |
( |
| $definition, |
|
|
| $order = 'ASC' ) |
Adds a filed to the list of fields for ORDER BY clause
- Аргументы
-
string | $definition | |
string | $order | |
- Возвращает
- $this
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 508
◆ addSelect()
addSelect |
( |
| $definition, |
|
|
| $alias = '' ) |
Adds a field for SELECT clause
- Аргументы
-
mixed | $definition | Field |
string | $alias | Field alias like SELECT field AS alias |
- Возвращает
- $this
См. определение в файле query.php строка 351
◆ addToGroupChain()
addToGroupChain |
( |
| $definition | ) |
|
|
protected |
- Аргументы
-
- Исключения
-
SystemException
См. определение в файле query.php строка 1846
◆ addToOrderChain()
addToOrderChain |
( |
| $definition | ) |
|
|
protected |
- Аргументы
-
- Исключения
-
SystemException
См. определение в файле query.php строка 1862
◆ addUnionOrder()
addUnionOrder |
( |
| $definition, |
|
|
| $order = 'ASC' ) |
General order for all the union queries. Has the same format as Query::addOrder().
- См. также
- Query::addOrder()
- Аргументы
-
string | $definition | |
string | $order | |
- Возвращает
- $this
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 655
◆ booleanStrongEqualityCallback()
booleanStrongEqualityCallback |
( |
| $field, |
|
|
| $operation, |
|
|
| $value ) |
◆ buildFilterSql()
static buildFilterSql |
( |
Entity | $entity, |
|
|
| $filter ) |
|
static |
Builds SQL filter conditions for WHERE. Useful for external calls: building SQL for mass UPDATEs or DELETEs
- Аргументы
-
Entity | $entity | |
array | Filter | $filter | the same format as for setFilter/where |
- Возвращает
- string
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 3869
◆ buildGroup()
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 2244
◆ buildHaving()
- Возвращает
- string
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 2332
◆ buildJoin()
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 2173
◆ buildOrder()
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 2363
◆ buildQuery()
buildQuery |
( |
| $forceObjectPrimary = true | ) |
|
|
protected |
- Аргументы
-
bool | $forceObjectPrimary | Add missing primaries to select |
- Возвращает
- mixed|string
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 2421
◆ buildSelect()
◆ buildWhere()
- Возвращает
- string
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 2213
◆ cacheJoins()
Enables or disables caching of queries with joins.
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 3949
◆ checkFilterAggregation()
checkFilterAggregation |
( |
| $filter | ) |
|
|
protected |
- Аргументы
-
- Возвращает
- bool
- Исключения
-
SystemException
См. определение в файле query.php строка 1709
◆ checkFilterHandlerAggregation()
checkFilterHandlerAggregation |
( |
Filter | $filter | ) |
|
|
protected |
- Аргументы
-
- Возвращает
- bool
- Исключения
-
SystemException
См. определение в файле query.php строка 1750
◆ checkForPrivateFields()
checkForPrivateFields |
( |
| ) |
|
|
protected |
◆ countTotal()
countTotal |
( |
| $count = null | ) |
|
◆ dataDoublingCallback()
dataDoublingCallback |
( |
| $field, |
|
|
| $operation, |
|
|
| $value ) |
- Аргументы
-
$operation | @noinspection PhpUnusedParameterInspection |
См. определение в файле query.php строка 3490
◆ disableDataDoubling()
Replaces all 1:N relations in filter to ID IN (subquery SELECT ID FROM <1:N relation>) Available for Entities with 1 primary field only
- Возвращает
- $this
См. определение в файле query.php строка 707
◆ disablePrivateFields()
Restricts private fields in query
- Возвращает
- $this
См. определение в файле query.php строка 743
◆ divideFilter()
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 1587
◆ divideFilterHandler()
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 1655
◆ dump()
◆ enableDataDoubling()
- См. также
- disableDataDoubling
- Возвращает
- $this
См. определение в файле query.php строка 694
◆ enablePrivateFields()
Allows private fields in query
- Возвращает
- $this
См. определение в файле query.php строка 731
◆ exec()
Builds and executes the query and returns the result
- Возвращает
- Result
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 929
◆ expr()
Used to create ExpressionField in a short way.
- См. также
- Filter::where()
- Возвращает
- Expression
См. определение в файле query.php строка 912
◆ fetch()
Short alias for $result->fetch()
- Аргументы
-
Main\Text\Converter | null | $converter | |
- Возвращает
- array|false
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 981
◆ fetchAll()
Short alias for $result->fetchAll()
- Аргументы
-
Main\Text\Converter | null | $converter | |
- Возвращает
- array
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 995
◆ fetchCollection()
Short alias for $result->fetchCollection()
- Возвращает
- null Actual type should be annotated by orm:annotate
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 1020
◆ fetchDataModificationCallback()
fetchDataModificationCallback |
( |
& | $data | ) |
|
Being called in Db\Result as a data fetch modifier
- Аргументы
-
См. определение в файле query.php строка 3623
◆ fetchObject()
Short alias for $result->fetchObject()
- Возвращает
- null Actual type should be annotated by orm:annotate
- Исключения
-
ArgumentException
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 1008
◆ filter()
Returns new instance of Filter.
Usage: Query::filter()->where(...)
Alternatively short calls Query::where* can be used.
- См. также
- Query::where()
- Возвращает
- Filter
См. определение в файле query.php строка 901
◆ getChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3755
◆ getEntity()
◆ getFilter()
Returns an array of filters for WHERE clause
- Возвращает
- array
См. определение в файле query.php строка 370
◆ getFilterChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3787
◆ getFilterHandler()
- Возвращает
- Filter
См. определение в файле query.php строка 411
◆ getGroup()
Returns an array of fields for GROUP BY clause
- Возвращает
- array
См. определение в файле query.php строка 421
◆ getGroupChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3763
◆ getHavingChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3779
◆ getHiddenChains()
◆ getInitAlias()
getInitAlias |
( |
| $withPostfix = true | ) |
|
- Аргументы
-
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 3895
◆ getJoinCswFields()
getJoinCswFields |
( |
| $reference | ) |
|
|
protected |
◆ getJoinMap()
◆ getLastQuery()
Returns last executed query string
- Возвращает
- string
См. определение в файле query.php строка 3848
◆ getLimit()
Returns a limit
- Возвращает
- null|int
См. определение в файле query.php строка 539
◆ getOffset()
Returns an offset
- Возвращает
- null|int
См. определение в файле query.php строка 561
◆ getOrder()
Returns an array of fields for ORDER BY clause
- Возвращает
- array
См. определение в файле query.php строка 457
◆ getOrderChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3795
◆ getQuery()
getQuery |
( |
| $forceObjectPrimary = false | ) |
|
Builds and returns SQL query string
- Аргументы
-
- Возвращает
- string
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 3838
◆ getRegisteredChain()
getRegisteredChain |
( |
| $key, |
|
|
| $force_create = false ) |
- Аргументы
-
- Возвращает
- Chain|bool
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 3456
◆ getReplacedAliases()
◆ getRuntimeChains()
◆ getSelect()
Returns an array of fields for SELECT clause
- Возвращает
- array
См. определение в файле query.php строка 327
◆ getSelectChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3803
◆ getTableAliasPostfix()
◆ getUnionHandler()
- Возвращает
- Union
- Исключения
-
SystemException
См. определение в файле query.php строка 3386
◆ getUniqueAlias()
◆ getWhereChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3811
◆ hasAggregation()
◆ hasBackReference()
- Возвращает
- bool
- Исключения
-
SystemException
См. определение в файле query.php строка 3734
◆ hasDistinct()
◆ isFetchModificationRequired()
isFetchModificationRequired |
( |
| ) |
|
Check if fetch data modification required, also caches modifier-callbacks
- Возвращает
- bool
- Исключения
-
SystemException
См. определение в файле query.php строка 3640
◆ isFieldPrivate()
static isFieldPrivate |
( |
| $field | ) |
|
|
static |
- Аргументы
-
Field | Main\ORM\Fields\IReadable | $field | |
- Возвращает
- bool
- Исключения
-
ArgumentException
- Исключения
-
См. определение в файле query.php строка 801
◆ isPrivateFieldsEnabled()
isPrivateFieldsEnabled |
( |
| ) |
|
◆ nullEqualityCallback()
nullEqualityCallback |
( |
| $field, |
|
|
| $operation, |
|
|
| $value ) |
- Аргументы
-
$value | @noinspection PhpUnusedParameterInspection |
См. определение в файле query.php строка 3485
◆ prepareJoinFilterReference()
prepareJoinFilterReference |
( |
Filter | $reference, |
|
|
| $alias_this, |
|
|
| $alias_ref, |
|
|
| $baseDefinition, |
|
|
| $refDefinition, |
|
|
| $isBackReference, |
|
|
| $firstCall = true ) |
|
protected |
- Аргументы
-
Filter | $reference | |
| $alias_this | |
| $alias_ref | |
| $baseDefinition | |
| $refDefinition | |
| $isBackReference | |
| $firstCall | |
- Возвращает
- Filter
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 2968
◆ prepareJoinReference()
prepareJoinReference |
( |
| $reference, |
|
|
| $alias_this, |
|
|
| $alias_ref, |
|
|
| $baseDefinition, |
|
|
| $refDefinition, |
|
|
| $isBackReference ) |
|
protected |
- Аргументы
-
$reference | |
$alias_this | |
$alias_ref | |
$baseDefinition | |
$refDefinition | |
$isBackReference | |
- Возвращает
- array
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 2719
◆ queryCountTotal()
◆ quoteTableSource()
quoteTableSource |
( |
| $source | ) |
|
- Аргументы
-
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 3702
◆ registerChain()
registerChain |
( |
| $section, |
|
|
Chain | $chain, |
|
|
| $opt_key = null ) |
◆ registerRuntimeField()
registerRuntimeField |
( |
| $name, |
|
|
| $fieldInfo = null ) |
Adds a runtime field (being created dynamically, opposite to being described statically in the entity map)
- Аргументы
-
string | null | Field | $name | |
array | Field | $fieldInfo | |
- Возвращает
- $this
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 831
◆ replaceSelectAliases()
replaceSelectAliases |
( |
| $query | ) |
|
|
protected |
- Аргументы
-
- Возвращает
- array
- Исключения
-
SystemException
См. определение в файле query.php строка 3662
◆ rewriteDataDoubling()
rewriteDataDoubling |
( |
Filter | $filter, |
|
|
| $section ) |
|
protected |
- Аргументы
-
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 1801
◆ setCacheTtl()
◆ setCustomBaseTableAlias()
setCustomBaseTableAlias |
( |
| $alias | ) |
|
Sets a custom alias for the table of the init entity
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 884
◆ setDistinct()
setDistinct |
( |
| $distinct = true | ) |
|
◆ setFilter()
setFilter |
( |
array | $filter | ) |
|
Sets a list of filters for WHERE clause
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 381
◆ setGroup()
Sets a list of fields in GROUP BY clause
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 432
◆ setLimit()
Sets a limit for LIMIT n clause
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 550
◆ setOffset()
Sets an offset for LIMIT n, m clause
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 572
◆ setOrder()
Sets a list of fields for ORDER BY clause. Format: setOrder('ID') – ORDER BY ID
ASC setOrder(['ID' => 'DESC', 'NAME' => 'ASC]) – ORDER BY ID
DESC, NAME
ASC
- Аргументы
-
- Возвращает
- $this
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 474
◆ setSelect()
setSelect |
( |
array | $select | ) |
|
Sets a list of fields for SELECT clause
- Аргументы
-
- Возвращает
- Query
См. определение в файле query.php строка 338
◆ setTableAliasPostfix()
setTableAliasPostfix |
( |
| $postfix | ) |
|
◆ setUnionLimit()
General limit for all the union queries.
- Аргументы
-
- Возвращает
- $this
- Исключения
-
SystemException
См. определение в файле query.php строка 669
◆ setUnionOffset()
setUnionOffset |
( |
| $offset | ) |
|
General offset for all the union queries.
- Аргументы
-
- Возвращает
- $this
- Исключения
-
SystemException
См. определение в файле query.php строка 683
◆ setUnionOrder()
General order for all the union queries. Has the same format as Query::setOrder().
- См. также
- Query::setOrder()
- Аргументы
-
- Возвращает
- $this
- Исключения
-
SystemException
См. определение в файле query.php строка 637
◆ union()
Puts additional query to union with current. Accepts one ore more Query / SqlExpression.
- Возвращает
- $this
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 599
◆ unionAll()
Puts additional query to union (all) with current. Accepts one ore more Query / SqlExpression.
- Возвращает
- $this
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 617
◆ $cacheJoins
◆ $cacheTtl
◆ $countTotal
◆ $custom_base_table_alias
$custom_base_table_alias = null |
|
protected |
◆ $data_doubling_off
$data_doubling_off = false |
|
protected |
◆ $entity
◆ $expressionHelper
◆ $filter
◆ $filter_chains
◆ $filterHandler
◆ $forcedObjectPrimaryFields
$forcedObjectPrimaryFields |
|
protected |
◆ $global_chains
◆ $group
◆ $group_chains
◆ $having
◆ $having_chains
◆ $having_expr_chains
$having_expr_chains = array() |
|
protected |
◆ $havingHandler
◆ $hidden_chains
◆ $is_distinct
◆ $is_executing
◆ $join_map
◆ $join_registry
◆ $last_query
◆ $limit
◆ $offset
◆ $order
◆ $order_chains
◆ $private_fields_on
$private_fields_on = false |
|
protected |
◆ $query_build_parts
◆ $replaced_aliases
◆ $replaced_taliases
◆ $runtime_chains
◆ $select
◆ $select_chains
◆ $select_expr_chains
$select_expr_chains = array() |
|
protected |
◆ $selectFetchModifiers
$selectFetchModifiers = array() |
|
protected |
◆ $table_alias_postfix
$table_alias_postfix = '' |
|
protected |
◆ $unionHandler
◆ $uniqueAliasCounter
◆ $where
◆ $where_chains
◆ $whereHandler