Bitrix API

Content extends Json implements Errorable

FinalYes

Response type for rendering ajax html content from action

Table of Contents

Interfaces

Errorable

Constants

STATUS_DENIED  = 'denied'
STATUS_ERROR  = 'error'
STATUS_SUCCESS  = 'success'

Methods

__construct()  : mixed
Component constructor.
getErrorByCode()  : Error
Getting once error with the necessary code.
getErrors()  : array<string|int, Error>
Getting array of errors.
send()  : mixed
setData()  : mixed

Constants

STATUS_DENIED

public mixed STATUS_DENIED = 'denied'

STATUS_ERROR

public mixed STATUS_ERROR = 'error'

STATUS_SUCCESS

public mixed STATUS_SUCCESS = 'success'

Methods

__construct()

Component constructor.

public __construct(ContentInterface $content[, string $status = self::STATUS_SUCCESS ][, ErrorCollection|null $errorCollection = null ][, array<string|int, mixed> $additionalResponseParams = [] ]) : mixed
Parameters
$content : ContentInterface
$status : string = self::STATUS_SUCCESS
$errorCollection : ErrorCollection|null = null
$additionalResponseParams : array<string|int, mixed> = []

getErrorByCode()

Getting once error with the necessary code.

public getErrorByCode(string $code) : Error
Parameters
$code : string

Code of error.

Return values
Error

getErrors()

Getting array of errors.

public getErrors() : array<string|int, Error>
Return values
array<string|int, Error>

send()

public send() : mixed

setData()

public setData(mixed $data) : mixed
Parameters
$data : mixed

        
On this page

Search results