method
public
final
ComponentController::run()
Сигнатура
public final run(mixed $actionName, array<string|int, mixed> $sourceParametersList) : HttpResponse|mixed
Параметры
$actionName
mixed
$sourceParametersList
array<string|int, mixed>
Возвращаемое значение
HttpResponse|mixed
Как применяется в ComponentController
ComponentController::run() — метод класса \Bitrix\Main\Engine\Component\ComponentController модуля «Главный модуль».
Метод объекта: сначала нужен экземпляр ComponentController.
use Bitrix\Main\Engine\Component\ComponentController;
/** @var ComponentController $object */
$actionName = null;
$sourceParametersList = [];
$result = $object->run($actionName, $sourceParametersList);
// $result: HttpResponse|mixedДругие методы ComponentController
className()Возвращает полностью квалифицированное имя этого класса.configureActions()convertKeysToCamelCase()Преобразует ключи массива в нотацию camelCase.finalizeResponse()Финализирует ответ.forward()generateActionMethodName()getActionUri()Возвращает uri для ajax-эндпоинта по имени действия. Это вспомогательный метод, который использует относительное имя…getAutoWiredParameters()getConfigurationOfActions()getCurrentUser()getDefaultAutoWiredParameters()getErrorByCode()Получение единственной ошибки с необходимым кодом.
run() есть и у других классов модуля «Главный модуль»: Application, Controller, DefaultController, HttpApplication, JsonController.
Исходный файл: source/main/lib/engine/component/componentcontroller.php:407

