method public

ClosureAction::__construct()

Класс: \Bitrix\Main\Engine\ClosureAction

Сигнатура

public __construct(string $name, Controller $controller, callable $callable[, array<string|int, mixed> $config = array() ]) : mixed

Описание

Конструктор ClosureAction.

Параметры

$name string
$controller Controller
$callable callable
$config array<string|int, mixed> = array()

Возвращаемое значение

mixed

Как применяется в ClosureAction

ClosureAction::__construct() — метод класса \Bitrix\Main\Engine\ClosureAction модуля «Главный модуль».

Конструктор: создаёт экземпляр ClosureAction — обязательные аргументы перечислены в разделе «Параметры».

use Bitrix\Main\Engine\ClosureAction;

$name = '';
$controller = null; // Controller
$callable = null; // callable
$object = new ClosureAction($name, $controller, $callable);

Другие методы ClosureAction

__construct() есть и у других классов модуля «Главный модуль»: AbstractAccessFilter, AbstractRule, AccessAuthProvider, AccessCode, AccessFilter, AccessibleController, Action, AddedData.

Исходный файл: source/main/lib/engine/closureaction.php:21

Что будем искать? Например,Продвижение