# ComponentController

URL: https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/
Проверено на 1С-Битрикс 25.x, обновлено 03.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией 1С-Битрикс.

Класс `\Bitrix\Main\Engine\Component\ComponentController`
Модуль: Main.

Исходный файл: `source/main/lib/engine/component/componentcontroller.php:12`

## Константы (8)

- `ERROR_REQUIRED_PARAMETER`
- `ERROR_UNKNOWN_ACTION`
- `EVENT_ON_AFTER_ACTION`
- `EVENT_ON_BEFORE_ACTION`
- `EXCEPTION_UNKNOWN_ACTION`
- `SCOPE_AJAX`
- `SCOPE_CLI`
- `SCOPE_REST`

## Методы (29)

- [`__construct()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/__construct/) — Конструктор ComponentController.
- [`static className()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/classname/) — Возвращает полностью квалифицированное имя этого класса.
- [`configureActions()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/configureactions/)
- [`convertKeysToCamelCase()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/convertkeystocamelcase/) — Преобразует ключи массива в нотацию camelCase.
- [`finalizeResponse()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/finalizeresponse/) — Финализирует ответ.
- [`forward()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/forward/)
- [`generateActionMethodName()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/generateactionmethodname/)
- [`getActionUri()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getactionuri/) — Возвращает uri для ajax-эндпоинта по имени действия. Это вспомогательный метод, который использует относительное имя действия без имени контроллера.
- [`getAutoWiredParameters()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getautowiredparameters/)
- [`getConfigurationOfActions()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getconfigurationofactions/)
- [`getCurrentUser()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getcurrentuser/)
- [`getDefaultAutoWiredParameters()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getdefaultautowiredparameters/)
- [`getErrorByCode()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/geterrorbycode/) — Получение единственной ошибки с необходимым кодом.
- [`getErrors()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/geterrors/) — Получение массива ошибок.
- [`static getFullEventName()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getfulleventname/)
- [`getModuleId()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getmoduleid/) — Возвращает id модуля.
- [`getPrimaryAutoWiredParameter()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getprimaryautowiredparameter/)
- [`getRequest()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getrequest/)
- [`getScope()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getscope/)
- [`getSourceParametersList()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getsourceparameterslist/)
- [`getUnsignedParameters()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/getunsignedparameters/)
- [`hasErrors()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/haserrors/)
- [`isLocatedUnderPsr4()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/islocatedunderpsr4/)
- [`listNameActions()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/listnameactions/) — Возвращает список всех.
- [`redirectTo()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/redirectto/) — Перенаправление на URL.
- [`run()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/run/)
- [`setCurrentUser()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/setcurrentuser/)
- [`setScope()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/setscope/)
- [`setSourceParametersList()`](https://chugunov.pro/api-bitrix/main/engine/component/componentcontroller/setsourceparameterslist/)

Оригинал в официальной документации: https://docs.1c-bitrix.ru/api/classes/Bitrix-Main-Engine-Component-ComponentController.html
