Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Content
+ Граф наследования:Content:

Открытые члены

 __construct (Response $response)
 
 onFlush ()
 
 toText ()
 
 addError ($message, $code=null)
 
 addPermissionError ($message=null)
 
 getErrorCollection ()
 

Открытые статические члены

static create (Response $response, $type)
 

Открытые атрибуты

const TYPE_JSON = 'json'
 
const TYPE_HTML = 'html'
 

Защищенные данные

 $errors
 
 $response
 

Подробное описание

См. определение в файле content.php строка 20

Конструктор(ы)

◆ __construct()

__construct ( Response $response)

Answer constructor.

Аргументы
Response$responseResponse.

См. определение в файле content.php строка 48

Методы

◆ addError()

addError ( $message,
$code = null )
Аргументы
$message
null$code

См. определение в файле content.php строка 71

◆ addPermissionError()

addPermissionError ( $message = null)
Аргументы
string | null$messageMessage.

См. определение в файле content.php строка 78

◆ create()

static create ( Response $response,
$type )
static

См. определение в файле content.php строка 31

◆ getErrorCollection()

getErrorCollection ( )
Возвращает
ErrorCollection

См. определение в файле content.php строка 91

◆ onFlush()

onFlush ( )

On flush callback.

Переопределяется в ContentJson.

См. определение в файле content.php строка 57

◆ toText()

toText ( )
abstract
Возвращает
string

Переопределяется в ContentHtml.

Данные класса

◆ $errors

$errors
protected

См. определение в файле content.php строка 26

◆ $response

$response
protected

См. определение в файле content.php строка 29

◆ TYPE_HTML

const TYPE_HTML = 'html'

См. определение в файле content.php строка 23

◆ TYPE_JSON

const TYPE_JSON = 'json'

См. определение в файле content.php строка 22