method public

Component::__construct()

Класс: \Bitrix\Main\Engine\Response\Component

Сигнатура

public __construct(string $componentName[, string $componentTemplate = '' ][, array<string|int, mixed> $componentParams = [] ][, array<string|int, mixed> $additionalResponseParams = [] ][, mixed $dataKeys = [] ]) : mixed

Описание

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

Параметры

$componentName string
$componentTemplate string = ''
$componentParams array<string|int, mixed> = []
$additionalResponseParams array<string|int, mixed> = []
$dataKeys mixed = []

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

mixed

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

Component::__construct() — метод класса \Bitrix\Main\Engine\Response\Component модуля «Главный модуль». Component: Тип ответа для рендеринга ajax-html-контента из действия.

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

use Bitrix\Main\Engine\Response\Component;

$componentName = '';
$object = new Component($componentName);

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

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

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

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