method public

File::getContent()

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

Сигнатура

public getContent() : string

Описание

Возвращает контент ответа.

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

string

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

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

Метод объекта: сначала нужен экземпляр File.

use Bitrix\Main\Engine\Response\File;

/** @var File $object */
$result = $object->getContent();
// $result: string

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

getContent() есть и у других классов модуля «Главный модуль»: AjaxJson, Archive, Base, BFile, Component, Component, Extension, HtmlContent.

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

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