|
| | __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 () |
| | setFilterChains (&$filter, $section='filter') |
| | setFilterHandlerChains (Filter $where, $section='filter') |
| | 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 строка 1874
◆ addToOrderChain()
| addToOrderChain |
( |
| $definition | ) |
|
|
protected |
- Аргументы
-
- Исключения
-
SystemException
См. определение в файле query.php строка 1890
◆ 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 строка 660
◆ booleanStrongEqualityCallback()
| booleanStrongEqualityCallback |
( |
| $field, |
|
|
| $operation, |
|
|
| $value ) |
◆ buildFilterSql()
| 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 строка 3913
◆ buildGroup()
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 2289
◆ buildHaving()
- Возвращает
- string
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 2377
◆ buildJoin()
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 2218
◆ buildOrder()
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 2408
◆ buildQuery()
| buildQuery |
( |
| $forceObjectPrimary = true | ) |
|
|
protected |
- Аргументы
-
| bool | $forceObjectPrimary | Add missing primaries to select |
- Возвращает
- mixed|string
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 2466
◆ buildSelect()
◆ buildWhere()
- Возвращает
- string
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 2258
◆ cacheJoins()
Enables or disables caching of queries with joins.
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 3993
◆ checkFilterAggregation()
| checkFilterAggregation |
( |
| $filter | ) |
|
|
protected |
- Аргументы
-
- Возвращает
- bool
- Исключения
-
SystemException
См. определение в файле query.php строка 1737
◆ checkFilterHandlerAggregation()
| checkFilterHandlerAggregation |
( |
Filter | $filter | ) |
|
|
protected |
- Аргументы
-
- Возвращает
- bool
- Исключения
-
SystemException
См. определение в файле query.php строка 1778
◆ checkForPrivateFields()
| checkForPrivateFields |
( |
| ) |
|
|
protected |
◆ countTotal()
| countTotal |
( |
| $count = null | ) |
|
◆ dataDoublingCallback()
| dataDoublingCallback |
( |
| $field, |
|
|
| $operation, |
|
|
| $value ) |
- Аргументы
-
| $operation | @noinspection PhpUnusedParameterInspection |
См. определение в файле query.php строка 3534
◆ 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 строка 712
◆ disablePrivateFields()
Restricts private fields in query
- Возвращает
- $this
См. определение в файле query.php строка 748
◆ divideFilter()
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 1615
◆ divideFilterHandler()
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 1683
◆ dump()
◆ enableDataDoubling()
- См. также
- disableDataDoubling
- Возвращает
- $this
См. определение в файле query.php строка 699
◆ enablePrivateFields()
Allows private fields in query
- Возвращает
- $this
См. определение в файле query.php строка 736
◆ exec()
Builds and executes the query and returns the result
- Возвращает
- Result
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 938
◆ expr()
Used to create ExpressionField in a short way.
- См. также
- Filter::where()
- Аргументы
-
| ?string | $alias | Name for ExpressionField |
- Возвращает
- Expression
См. определение в файле query.php строка 919
◆ fetch()
Short alias for $result->fetch()
- Аргументы
-
| Main\Text\Converter | null | $converter | |
- Возвращает
- array|false
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 1001
◆ fetchAll()
Short alias for $result->fetchAll()
- Аргументы
-
| Main\Text\Converter | null | $converter | |
- Возвращает
- array
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 1015
◆ fetchCollection()
Short alias for $result->fetchCollection()
- Возвращает
- null Actual type should be annotated by orm:annotate
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 1045
◆ fetchDataModificationCallback()
| fetchDataModificationCallback |
( |
& | $data | ) |
|
Being called in Db\Result as a data fetch modifier
- Аргументы
-
См. определение в файле query.php строка 3667
◆ fetchObject()
Short alias for $result->fetchObject()
- Возвращает
- null Actual type should be annotated by orm:annotate
- Исключения
-
ArgumentException
- Исключения
-
ObjectPropertyException
- Исключения
-
SystemException
См. определение в файле query.php строка 1028
◆ filter()
Returns new instance of Filter.
Usage: Query::filter()->where(...)
Alternatively short calls Query::where* can be used.
- См. также
- Query::where()
- Возвращает
- Filter
См. определение в файле query.php строка 906
◆ getChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3799
◆ getEntity()
◆ getFilter()
Returns an array of filters for WHERE clause
- Возвращает
- array
См. определение в файле query.php строка 370
◆ getFilterChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3831
◆ getFilterHandler()
- Возвращает
- Filter
См. определение в файле query.php строка 411
◆ getGroup()
Returns an array of fields for GROUP BY clause
- Возвращает
- array
См. определение в файле query.php строка 421
◆ getGroupChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3807
◆ getHavingChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3823
◆ getHiddenChains()
◆ getInitAlias()
| getInitAlias |
( |
| $withPostfix = true | ) |
|
- Аргументы
-
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 3939
◆ getJoinCswFields()
| getJoinCswFields |
( |
| $reference | ) |
|
|
protected |
◆ getJoinMap()
◆ getLastQuery()
Returns last executed query string
- Возвращает
- string
См. определение в файле query.php строка 3892
◆ getLimit()
Returns a limit
- Возвращает
- null|int
См. определение в файле query.php строка 544
◆ getOffset()
Returns an offset
- Возвращает
- null|int
См. определение в файле query.php строка 566
◆ getOrder()
Returns an array of fields for ORDER BY clause
- Возвращает
- array
См. определение в файле query.php строка 457
◆ getOrderChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3839
◆ getQuery()
| getQuery |
( |
| $forceObjectPrimary = false | ) |
|
Builds and returns SQL query string
- Аргументы
-
- Возвращает
- string
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 3882
◆ getRegisteredChain()
| getRegisteredChain |
( |
| $key, |
|
|
| $force_create = false ) |
- Аргументы
-
- Возвращает
- Chain|bool
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 3500
◆ getReplacedAliases()
◆ getRuntimeChains()
◆ getSelect()
Returns an array of fields for SELECT clause
- Возвращает
- array
См. определение в файле query.php строка 327
◆ getSelectChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3847
◆ getTableAliasPostfix()
◆ getUnionHandler()
- Возвращает
- Union
- Исключения
-
SystemException
См. определение в файле query.php строка 3430
◆ getUniqueAlias()
◆ getWhereChains()
- Возвращает
- array|Chain[]
См. определение в файле query.php строка 3855
◆ hasAggregation()
◆ hasBackReference()
- Возвращает
- bool
- Исключения
-
SystemException
См. определение в файле query.php строка 3778
◆ hasDistinct()
◆ isFetchModificationRequired()
| isFetchModificationRequired |
( |
| ) |
|
Check if fetch data modification required, also caches modifier-callbacks
- Возвращает
- bool
- Исключения
-
SystemException
См. определение в файле query.php строка 3684
◆ isFieldPrivate()
- Аргументы
-
| Field | Main\ORM\Fields\IReadable | $field | |
- Возвращает
- bool
- Исключения
-
ArgumentException
- Исключения
-
См. определение в файле query.php строка 806
◆ isPrivateFieldsEnabled()
| isPrivateFieldsEnabled |
( |
| ) |
|
◆ nullEqualityCallback()
| nullEqualityCallback |
( |
| $field, |
|
|
| $operation, |
|
|
| $value ) |
- Аргументы
-
| $value | @noinspection PhpUnusedParameterInspection |
См. определение в файле query.php строка 3529
◆ 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 строка 3013
◆ prepareJoinReference()
| prepareJoinReference |
( |
| $reference, |
|
|
| $alias_this, |
|
|
| $alias_ref, |
|
|
| $baseDefinition, |
|
|
| $refDefinition, |
|
|
| $isBackReference ) |
|
protected |
- Аргументы
-
| $reference | |
| $alias_this | |
| $alias_ref | |
| $baseDefinition | |
| $refDefinition | |
| $isBackReference | |
- Возвращает
- array
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 2764
◆ queryCountTotal()
◆ quoteTableSource()
| quoteTableSource |
( |
| $source | ) |
|
- Аргументы
-
- Возвращает
- string
- Исключения
-
SystemException
См. определение в файле query.php строка 3746
◆ 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 строка 836
◆ replaceSelectAliases()
| replaceSelectAliases |
( |
| $query | ) |
|
|
protected |
- Аргументы
-
- Возвращает
- array
- Исключения
-
SystemException
См. определение в файле query.php строка 3706
◆ rewriteDataDoubling()
| rewriteDataDoubling |
( |
Filter | $filter, |
|
|
| $section ) |
|
protected |
- Аргументы
-
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 1829
◆ setCacheTtl()
◆ setCustomBaseTableAlias()
| setCustomBaseTableAlias |
( |
| $alias | ) |
|
Sets a custom alias for the table of the init entity
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 889
◆ setDistinct()
| setDistinct |
( |
| $distinct = true | ) |
|
◆ setFilter()
| setFilter |
( |
array | $filter | ) |
|
Sets a list of filters for WHERE clause
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 381
◆ setFilterChains()
| setFilterChains |
( |
& | $filter, |
|
|
| $section = 'filter' ) |
- Аргументы
-
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 1358
◆ setFilterHandlerChains()
| setFilterHandlerChains |
( |
Filter | $where, |
|
|
| $section = 'filter' ) |
- Аргументы
-
| Filter | $where | |
| string | $section | |
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 1475
◆ 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 строка 555
◆ setOffset()
Sets an offset for LIMIT n, m clause
- Аргументы
-
- Возвращает
- $this
См. определение в файле query.php строка 577
◆ 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 строка 674
◆ setUnionOffset()
| setUnionOffset |
( |
| $offset | ) |
|
General offset for all the union queries.
- Аргументы
-
- Возвращает
- $this
- Исключения
-
SystemException
См. определение в файле query.php строка 688
◆ setUnionOrder()
General order for all the union queries. Has the same format as Query::setOrder().
- См. также
- Query::setOrder()
- Аргументы
-
- Возвращает
- $this
- Исключения
-
SystemException
См. определение в файле query.php строка 642
◆ union()
Puts additional query to union with current. Accepts one or more Query / SqlExpression.
- Возвращает
- $this
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 604
◆ unionAll()
Puts additional query to union (all) with current. Accepts one or more Query / SqlExpression.
- Возвращает
- $this
- Исключения
-
ArgumentException
- Исключения
-
SystemException
См. определение в файле query.php строка 622
◆ $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
Объявления и описания членов классов находятся в файлах: