См. определение в файле controller.php строка 30
◆ __construct()
__construct |
( |
Request |
$request = null | ) |
|
◆ addError()
Adds error to error collection.
- Аргументы
-
- Возвращает
- $this
См. определение в файле controller.php строка 1039
◆ addErrors()
addErrors |
( |
array |
$errors | ) |
|
|
protected |
Adds list of errors to error collection.
- Аргументы
-
- Возвращает
- $this
См. определение в файле controller.php строка 1052
◆ appendFilters()
appendFilters |
( |
array |
$filters, |
|
|
array |
$filtersToAppend |
|
) |
| |
|
finalprotected |
◆ buildActionInstance()
buildActionInstance |
( |
|
$actionName, |
|
|
array |
$config |
|
) |
| |
|
finalprotected |
◆ buildErrorFromException()
◆ buildErrorFromPhpError()
buildErrorFromPhpError |
( |
\Error |
$error | ) |
|
|
protected |
◆ buildFilters()
buildFilters |
( |
array |
$config = null | ) |
|
|
finalprotected |
Builds filter by config. If there is no config, then we use default filters
- См. также
- \Bitrix\Main\Engine\Controller::getDefaultPreFilters() and
-
\Bitrix\Main\Engine\Controller::getDefaultPostFilters(). If now is POST query and there is no csrf check in config, then we add it.
- Аргументы
-
- Возвращает
- array|null
См. определение в файле controller.php строка 747
◆ className()
Returns the fully qualified name of this class.
- Возвращает
- string
См. определение в файле controller.php строка 74
◆ collectDebugInfo()
Collects debug info by Diag.
- Возвращает
- void
См. определение в файле controller.php строка 508
◆ configureActions()
- Возвращает
- array
Замещает Controllerable.
Переопределяется в CalendarAjax, CalendarEntryAjax, ResourceBookingAjax, SharingAjax, SyncAjax, ProductSelector, SkuTree, HtmlEditorAjax, Call, Disk, Secretary, Agreement, AuthCode, Export, LoadExt, PhoneAuth, PhoneNumber, QrCodeAuth, Rating, ComponentController, DefaultController, Widget, Entity, FacebookConversion, Entity, Robokassa, AuthFlow, Grabber, File, Csv, Csv, Collector и FileUploader.
См. определение в файле controller.php строка 310
◆ convertKeysToCamelCase()
convertKeysToCamelCase |
( |
|
$data | ) |
|
Converts keys of array to camel case notation.
- См. также
- \Bitrix\Main\Engine\Response\Converter::OUTPUT_JSON_FORMAT
- Аргументы
-
- Возвращает
- array|mixed|string
См. определение в файле controller.php строка 280
◆ create()
◆ decodePostData()
◆ detachFilters()
detachFilters |
( |
Action |
$action | ) |
|
|
finalprotected |
◆ detachPostFilters()
detachPostFilters |
( |
Action |
$action | ) |
|
|
finalprotected |
◆ detachPreFilters()
detachPreFilters |
( |
Action |
$action | ) |
|
|
finalprotected |
◆ existsAction()
existsAction |
( |
|
$actionName | ) |
|
|
finalprotected |
◆ finalizeResponse()
Finalizes response. 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.
- Аргументы
-
- Возвращает
- void
См. определение в файле controller.php строка 612
◆ forward()
forward |
( |
|
$controller, |
|
|
string |
$actionName, |
|
|
array |
$parameters = null |
|
) |
| |
- Аргументы
-
Controller | string | $controller | |
string | $actionName | |
array | null | $parameters | |
- Возвращает
- HttpResponse|mixed
- Исключения
-
См. определение в файле controller.php строка 102
◆ generateActionMethodName()
generateActionMethodName |
( |
|
$action | ) |
|
|
final |
◆ getActionConfig()
getActionConfig |
( |
|
$actionName | ) |
|
|
finalprotected |
◆ getActionUri()
getActionUri |
( |
string |
$actionName, |
|
|
array |
$params = [] , |
|
|
bool |
$absolute = false |
|
) |
| |
|
final |
Returns uri for ajax end point for the action name. It's a helper, which uses relative action name without controller name.
- Аргументы
-
string | $actionName | Action name. It's a relative action name without controller name. |
array | $params | Parameters for creating uri. |
bool | $absolute | |
- Возвращает
- Uri
См. определение в файле controller.php строка 199
◆ getAutoWiredParameters()
getAutoWiredParameters |
( |
| ) |
|
◆ getConfigurationOfActions()
getConfigurationOfActions |
( |
| ) |
|
|
final |
◆ getCurrentUser()
◆ getDefaultAutoWiredParameters()
getDefaultAutoWiredParameters |
( |
| ) |
|
|
final |
◆ getDefaultPostFilters()
getDefaultPostFilters |
( |
| ) |
|
|
protected |
Returns default post-filters for action.
- Возвращает
- array
См. определение в файле controller.php строка 732
◆ getDefaultPreFilters()
Returns default pre-filters for action.
- Возвращает
- array
Переопределяется в Mode, ProductForm, ProductSelector, SkuTree, StoreSelector, DefaultElement, Element, Disk, Import, Message, Cookies, DiskFile, Landing, Note, Address, Format, Location, Source, UserFieldConfig, JsonController, BaseReceiver, Application, Configuration, Import, File, ConsentPreview, Base, EntitySelector, Feedback и FileUploader.
См. определение в файле controller.php строка 717
◆ getErrorByCode()
Getting once error with the necessary code.
- Аргументы
-
string | $code | Code of error. |
- Возвращает
- Error
Замещает Errorable.
См. определение в файле controller.php строка 1073
◆ getErrors()
◆ getFilePath()
◆ getFullEventName()
static getFullEventName |
( |
|
$eventName | ) |
|
|
staticfinal |
◆ getModuleId()
Returns module id. Tries to guess module id by file path and function
- См. также
- getModuleId().
- Возвращает
- string
См. определение в файле controller.php строка 153
◆ getPrimaryAutoWiredParameter()
getPrimaryAutoWiredParameter |
( |
| ) |
|
◆ getRequest()
◆ getSaltToUnsign()
Tries to find salt from request. It's "c" (component name) in general.
- Возвращает
- string|null
См. определение в файле controller.php строка 244
◆ getScope()
◆ getSourceParametersList()
getSourceParametersList |
( |
| ) |
|
|
final |
◆ getUnsignedParameters()
getUnsignedParameters |
( |
| ) |
|
|
final |
◆ init()
Initializes controller. This method is invoked at the end of constructor.
- Возвращает
- void
Переопределяется в Base, ProductSelector, StoreSelector, Address, Format, Source, Base, Export, Grabber, Csv, Csv и Controller.
См. определение в файле controller.php строка 134
◆ isLocatedUnderPsr4()
◆ listNameActions()
Returns list of all
- Возвращает
- array
См. определение в файле controller.php строка 289
◆ logDebugInfo()
Logs debug info by Diag.
- Исключения
-
Bitrix\Main\SystemException
- Возвращает
- void
См. определение в файле controller.php строка 517
◆ prepareParams()
Prepare params before process action.
- Возвращает
- bool
См. определение в файле controller.php строка 525
◆ processAfterAction()
processAfterAction |
( |
Action |
$action, |
|
|
|
$result |
|
) |
| |
|
protected |
Common operations after process action. If the method returns void or null it means that we don't want to modify $result.
- Аргументы
-
- Возвращает
- HttpResponse|mixed|void
Переопределяется в UserFieldConfig.
См. определение в файле controller.php строка 601
◆ processBeforeAction()
processBeforeAction |
( |
Action |
$action | ) |
|
|
protected |
◆ processUnsignedParameters()
processUnsignedParameters |
( |
| ) |
|
|
finalprotected |
◆ redirectTo()
◆ removeFilters()
removeFilters |
( |
array |
$filters, |
|
|
array |
$filtersToRemove |
|
) |
| |
|
finalprotected |
◆ run()
run |
( |
|
$actionName, |
|
|
array |
$sourceParametersList |
|
) |
| |
|
final |
- Аргументы
-
| $actionName | |
array | $sourceParametersList | |
- Возвращает
- HttpResponse|mixed
- Исключения
-
См. определение в файле controller.php строка 399
◆ runProcessingBinderThrowable()
◆ runProcessingError()
runProcessingError |
( |
\Error |
$error | ) |
|
|
protected |
◆ runProcessingException()
Runs processing exception.
- Аргументы
-
- Возвращает
- void
Переопределяется в Base.
См. определение в файле controller.php строка 957
◆ runProcessingIfInvalidCsrfToken()
runProcessingIfInvalidCsrfToken |
( |
| ) |
|
|
protected |
Runs processing if csrf token is invalid.
- Возвращает
- void
См. определение в файле controller.php строка 1021
◆ runProcessingIfUserNotAuthorized()
runProcessingIfUserNotAuthorized |
( |
| ) |
|
|
protected |
Runs processing if user is not authorized.
- Возвращает
- void
См. определение в файле controller.php строка 1010
◆ runProcessingThrowable()
runProcessingThrowable |
( |
\Throwable |
$throwable | ) |
|
|
protected |
◆ setActionConfig()
setActionConfig |
( |
|
$actionName, |
|
|
array |
$config = null |
|
) |
| |
|
finalprotected |
◆ setCurrentUser()
◆ setScope()
◆ setSourceParametersList()
setSourceParametersList |
( |
|
$sourceParametersList | ) |
|
|
final |
- Аргументы
-
array | $sourceParametersList | |
- Возвращает
- Controller
См. определение в файле controller.php строка 385
◆ shouldDecodePostData()
shouldDecodePostData |
( |
Action |
$action | ) |
|
|
protected |
◆ triggerOnAfterAction()
triggerOnAfterAction |
( |
Action |
$action, |
|
|
|
$result |
|
) |
| |
|
finalprotected |
◆ triggerOnBeforeAction()
triggerOnBeforeAction |
( |
Action |
$action | ) |
|
|
finalprotected |
Triggers the event {{static::EVENT_ON_BEFORE_ACTION}}
- См. также
- \Bitrix\Main\Engine\Controller::getFullEventName. This method is invoked right before an action is executed. In case the action should not run, event handler have to return EvenResult with type EventResult::ERROR.
- Аргументы
-
Action | $action | Action name. |
- Возвращает
- bool
См. определение в файле controller.php строка 560
◆ writeToLogException()
writeToLogException |
( |
\Throwable |
$e | ) |
|
|
protected |
◆ $configurator
◆ $errorCollection
◆ $request
◆ ERROR_REQUIRED_PARAMETER
const ERROR_REQUIRED_PARAMETER = 'MAIN_CONTROLLER_22001' |
◆ ERROR_UNKNOWN_ACTION
const ERROR_UNKNOWN_ACTION = 'MAIN_CONTROLLER_22002' |
◆ EVENT_ON_AFTER_ACTION
const EVENT_ON_AFTER_ACTION = 'onAfterAction' |
◆ EVENT_ON_BEFORE_ACTION
const EVENT_ON_BEFORE_ACTION = 'onBeforeAction' |
◆ EXCEPTION_UNKNOWN_ACTION
const EXCEPTION_UNKNOWN_ACTION = 22002 |
◆ SCOPE_AJAX
const SCOPE_AJAX = 'ajax' |
◆ SCOPE_CLI
◆ SCOPE_REST
const SCOPE_REST = 'rest' |