Extra extends Controller uses ListAction, GetAction, CheckExists
FinalYes
Table of Contents
Constants
- CATALOG_GROUP = \Bitrix\Catalog\Access\ActionDictionary::ACTION_PRICE_GROUP_EDIT
- CATALOG_READ = \Bitrix\Catalog\Access\ActionDictionary::ACTION_CATALOG_READ
- CATALOG_STORE = \Bitrix\Catalog\Access\ActionDictionary::ACTION_STORE_VIEW
- CATALOG_VAT = \Bitrix\Catalog\Access\ActionDictionary::ACTION_VAT_EDIT
- ERROR_ACCESS_DENIED = 'Access denied'
- ERROR_REQUIRED_PARAMETER = 'MAIN_CONTROLLER_22001'
- ERROR_UNKNOWN_ACTION = 'MAIN_CONTROLLER_22002'
- EVENT_ON_AFTER_ACTION = 'onAfterAction'
- EVENT_ON_BEFORE_ACTION = 'onBeforeAction'
- EXCEPTION_UNKNOWN_ACTION = 22002
- IBLOCK_EDIT = 'iblock_edit'
- IBLOCK_ELEMENT_DELETE = 'element_delete'
- IBLOCK_ELEMENT_EDIT = 'element_edit'
- IBLOCK_ELEMENT_EDIT_PRICE = 'element_edit_price'
- IBLOCK_ELEMENT_READ = 'element_read'
- IBLOCK_ELEMENT_SECTION_BIND = 'section_element_bind'
- IBLOCK_READ = 'iblock_admin_display'
- IBLOCK_SECTION_DELETE = 'section_delete'
- IBLOCK_SECTION_EDIT = 'section_edit'
- IBLOCK_SECTION_READ = 'section_read'
- IBLOCK_SECTION_SECTION_BIND = 'section_section_bind'
- SCOPE_AJAX = 'ajax'
- SCOPE_CLI = 'cli'
- SCOPE_REST = 'rest'
Methods
- __construct() : mixed
- Constructor Controller.
- add() : AddResult
- className() : string
- Returns the fully qualified name of this class.
- configureActions() : array<string|int, mixed>
- convertKeysToCamelCase() : array<string|int, mixed>|mixed|string
- Converts keys of array to camel case notation.
- finalizeResponse() : void
- Finalizes response.
- forward() : HttpResponse|mixed
- generateActionMethodName() : string
- getAction() : array<string|int, mixed>|null
- getActionUri() : Uri
- Returns uri for ajax end point for the action name. It's a helper, which uses relative action name without controller name.
- getAutoWiredParameters() : array<string|int, Parameter>
- getCallbackRestEvent() : array<string|int, mixed>
- getConfigurationOfActions() : array<string|int, mixed>|null
- getCurrentUser() : CurrentUser
- getDefaultAutoWiredParameters() : array<string|int, Parameter>
- getEntity() : Entity
- getErrorByCode() : Error
- Getting once error with the necessary code.
- getErrors() : array<string|int, Error>
- Getting array of errors.
- getFieldsAction() : array<string|int, mixed>
- getFullEventName() : string
- getHandlers() : array<string|int, mixed>
- getModuleId() : string
- Returns module id.
- getPrimaryAutoWiredParameter() : Parameter|null
- getRequest() : HttpRequest
- getScope() : string
- getSourceParametersList() : array<string|int, mixed>
- getUnsignedParameters() : mixed
- getViewManager() : ViewManager
- isLocatedUnderPsr4() : bool
- listAction() : Page
- listNameActions() : array<string|int, mixed>
- Returns list of all
- redirectTo() : Redirect
- Redirect to URL.
- run() : HttpResponse|mixed
- setCurrentUser() : void
- setScope() : Controller
- setSourceParametersList() : Controller
Constants
CATALOG_GROUP
public
mixed
CATALOG_GROUP
= \Bitrix\Catalog\Access\ActionDictionary::ACTION_PRICE_GROUP_EDIT
CATALOG_READ
public
mixed
CATALOG_READ
= \Bitrix\Catalog\Access\ActionDictionary::ACTION_CATALOG_READ
CATALOG_STORE
public
mixed
CATALOG_STORE
= \Bitrix\Catalog\Access\ActionDictionary::ACTION_STORE_VIEW
CATALOG_VAT
public
mixed
CATALOG_VAT
= \Bitrix\Catalog\Access\ActionDictionary::ACTION_VAT_EDIT
ERROR_ACCESS_DENIED
public
mixed
ERROR_ACCESS_DENIED
= 'Access denied'
ERROR_REQUIRED_PARAMETER
public
mixed
ERROR_REQUIRED_PARAMETER
= 'MAIN_CONTROLLER_22001'
ERROR_UNKNOWN_ACTION
public
mixed
ERROR_UNKNOWN_ACTION
= 'MAIN_CONTROLLER_22002'
EVENT_ON_AFTER_ACTION
public
mixed
EVENT_ON_AFTER_ACTION
= 'onAfterAction'
EVENT_ON_BEFORE_ACTION
public
mixed
EVENT_ON_BEFORE_ACTION
= 'onBeforeAction'
EXCEPTION_UNKNOWN_ACTION
public
mixed
EXCEPTION_UNKNOWN_ACTION
= 22002
IBLOCK_EDIT
public
mixed
IBLOCK_EDIT
= 'iblock_edit'
IBLOCK_ELEMENT_DELETE
public
mixed
IBLOCK_ELEMENT_DELETE
= 'element_delete'
IBLOCK_ELEMENT_EDIT
public
mixed
IBLOCK_ELEMENT_EDIT
= 'element_edit'
IBLOCK_ELEMENT_EDIT_PRICE
public
mixed
IBLOCK_ELEMENT_EDIT_PRICE
= 'element_edit_price'
IBLOCK_ELEMENT_READ
public
mixed
IBLOCK_ELEMENT_READ
= 'element_read'
IBLOCK_ELEMENT_SECTION_BIND
public
mixed
IBLOCK_ELEMENT_SECTION_BIND
= 'section_element_bind'
IBLOCK_READ
public
mixed
IBLOCK_READ
= 'iblock_admin_display'
IBLOCK_SECTION_DELETE
public
mixed
IBLOCK_SECTION_DELETE
= 'section_delete'
IBLOCK_SECTION_EDIT
public
mixed
IBLOCK_SECTION_EDIT
= 'section_edit'
IBLOCK_SECTION_READ
public
mixed
IBLOCK_SECTION_READ
= 'section_read'
IBLOCK_SECTION_SECTION_BIND
public
mixed
IBLOCK_SECTION_SECTION_BIND
= 'section_section_bind'
SCOPE_AJAX
public
mixed
SCOPE_AJAX
= 'ajax'
SCOPE_CLI
public
mixed
SCOPE_CLI
= 'cli'
SCOPE_REST
public
mixed
SCOPE_REST
= 'rest'
Methods
__construct()
Constructor Controller.
public
__construct([Request|null $request = null ]) : mixed
Parameters
- $request : Request|null = null
add()
public
add(array<string|int, mixed> $fields) : AddResult
Parameters
- $fields : array<string|int, mixed>
Tags
Return values
AddResultclassName()
Returns the fully qualified name of this class.
public
final static className() : string
Return values
stringconfigureActions()
public
configureActions() : array<string|int, mixed>
Return values
array<string|int, mixed>convertKeysToCamelCase()
Converts keys of array to camel case notation.
public
convertKeysToCamelCase(mixed $data) : array<string|int, mixed>|mixed|string
Parameters
- $data : mixed
-
Data.
Tags
Return values
array<string|int, mixed>|mixed|stringfinalizeResponse()
Finalizes response.
public
finalizeResponse(Response $response) : void
The method will be invoked when HttpApplication will be ready to send response to client. It's a final place where Controller can interact with response.
Parameters
- $response : Response
forward()
public
forward(Controller|string $controller, string $actionName[, array<string|int, mixed>|null $parameters = null ]) : HttpResponse|mixed
Parameters
- $controller : Controller|string
- $actionName : string
- $parameters : array<string|int, mixed>|null = null
Tags
Return values
HttpResponse|mixedgenerateActionMethodName()
public
final generateActionMethodName(mixed $action) : string
Parameters
- $action : mixed
Return values
stringgetAction()
public
getAction(mixed $id) : array<string|int, mixed>|null
Parameters
- $id : mixed
Return values
array<string|int, mixed>|nullgetActionUri()
Returns uri for ajax end point for the action name. It's a helper, which uses relative action name without controller name.
public
final getActionUri(string $actionName[, array<string|int, mixed> $params = [] ][, bool $absolute = false ]) : Uri
Parameters
- $actionName : string
-
Action name. It's a relative action name without controller name.
- $params : array<string|int, mixed> = []
-
Parameters for creating uri.
- $absolute : bool = false
Return values
UrigetAutoWiredParameters()
public
getAutoWiredParameters() : array<string|int, Parameter>
Return values
array<string|int, Parameter>getCallbackRestEvent()
public
static getCallbackRestEvent() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getConfigurationOfActions()
public
final getConfigurationOfActions() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetCurrentUser()
public
final getCurrentUser() : CurrentUser
Return values
CurrentUsergetDefaultAutoWiredParameters()
public
final getDefaultAutoWiredParameters() : array<string|int, Parameter>
Return values
array<string|int, Parameter>getEntity()
public
getEntity() : Entity
Tags
Return values
EntitygetErrorByCode()
Getting once error with the necessary code.
public
final getErrorByCode(string $code) : Error
Parameters
- $code : string
-
Code of error.
Return values
ErrorgetErrors()
Getting array of errors.
public
final getErrors() : array<string|int, Error>
Return values
array<string|int, Error>getFieldsAction()
public
getFieldsAction() : array<string|int, mixed>
Return values
array<string|int, mixed>getFullEventName()
public
final static getFullEventName(mixed $eventName) : string
Parameters
- $eventName : mixed
Return values
stringgetHandlers()
public
static getHandlers() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>getModuleId()
Returns module id.
public
final getModuleId() : string
Tries to guess module id by file path and function @see getModuleId().
Return values
stringgetPrimaryAutoWiredParameter()
public
getPrimaryAutoWiredParameter() : Parameter|null
Return values
Parameter|nullgetRequest()
public
final getRequest() : HttpRequest
Return values
HttpRequestgetScope()
public
final getScope() : string
Return values
stringgetSourceParametersList()
public
final getSourceParametersList() : array<string|int, mixed>
Return values
array<string|int, mixed>getUnsignedParameters()
public
final getUnsignedParameters() : mixed
getViewManager()
public
getViewManager() : ViewManager
Return values
ViewManagerisLocatedUnderPsr4()
public
final isLocatedUnderPsr4() : bool
Return values
boollistAction()
public
listAction(PageNavigation $pageNavigation[, array<string|int, mixed> $select = [] ][, array<string|int, mixed> $filter = [] ][, array<string|int, mixed> $order = [] ][, bool $__calculateTotalCount = true ]) : Page
Parameters
- $pageNavigation : PageNavigation
- $select : array<string|int, mixed> = []
- $filter : array<string|int, mixed> = []
- $order : array<string|int, mixed> = []
- $__calculateTotalCount : bool = true
Return values
PagelistNameActions()
Returns list of all
public
final listNameActions() : array<string|int, mixed>
Return values
array<string|int, mixed>redirectTo()
Redirect to URL.
public
redirectTo(string $url) : Redirect
Parameters
- $url : string
Return values
Redirectrun()
public
final run(mixed $actionName, array<string|int, mixed> $sourceParametersList) : HttpResponse|mixed
Parameters
- $actionName : mixed
- $sourceParametersList : array<string|int, mixed>
Tags
Return values
HttpResponse|mixedsetCurrentUser()
public
final setCurrentUser(CurrentUser $currentUser) : void
Parameters
- $currentUser : CurrentUser
setScope()
public
final setScope(string $scope) : Controller
Parameters
- $scope : string
Return values
ControllersetSourceParametersList()
public
final setSourceParametersList(array<string|int, mixed> $sourceParametersList) : Controller
Parameters
- $sourceParametersList : array<string|int, mixed>