Bitrix API

AjaxJson extends Json implements Errorable

Table of Contents

Interfaces

Errorable

Constants

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

Methods

__construct()  : mixed
createDenied()  : mixed
createError()  : mixed
createSuccess()  : mixed
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()

public __construct([mixed $data = null ][, mixed $status = self::STATUS_SUCCESS ][, ErrorCollection $errorCollection = null ]) : mixed
Parameters
$data : mixed = null
$status : mixed = self::STATUS_SUCCESS
$errorCollection : ErrorCollection = null

createDenied()

public final static createDenied([ErrorCollection $errorCollection = null ][, mixed $data = null ]) : mixed
Parameters
$errorCollection : ErrorCollection = null
$data : mixed = null

createError()

public final static createError([ErrorCollection $errorCollection = null ][, mixed $data = null ]) : mixed
Parameters
$errorCollection : ErrorCollection = null
$data : mixed = null

createSuccess()

public final static createSuccess([mixed $data = null ]) : mixed
Parameters
$data : mixed = null

getErrorByCode()

Getting once error with the necessary code.

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

Code of error.

Return values
Error

getErrors()

Getting array of errors.

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

send()

public send() : mixed

setData()

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

        
On this page

Search results