1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Service

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

 __construct ($type, $externalId)
 handle (Payload\Batch $payload)
 register (array $parameters=[])
 remove ()
 checkSecurityCode ($securityCode)
 getErrorCollection ()

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

static create ($type, $externalId)
static registerForm ($formId)
static unregisterForm ($formId)

Поля данных

const ANSWER_ERROR_SYSTEM = '001'
const ANSWER_ERROR_NO_CODE = '002'
const ANSWER_ERROR_NO_EXT_ID = '003'
const ANSWER_ERROR_NO_PAYLOAD = '004'
const ANSWER_ERROR_NO_SEC_CODE = '005'
const ANSWER_ERROR_WRONG_SEC_CODE = '006'

Защищенные статические члены

static answerError ($code=null, $text=null)
static answerData (array $data=array())
static getData ($type, $externalId)
static queryHookRegister ($methodName, array $parameters)

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

 $errorCollection
 $type
 $externalId
 $payload
 $errors = array()
 $data = null

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

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

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

◆ __construct()

__construct ( $type,
$externalId )

Service constructor.

Аргументы
string$typeType.
string$externalIdExternal ID.

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

Методы

◆ answerData()

answerData ( array $data = array())
staticprotected

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

◆ answerError()

answerError ( $code = null,
$text = null )
staticprotected

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

◆ checkSecurityCode()

checkSecurityCode ( $securityCode)

Check security code.

Аргументы
string$securityCodeCode.
Возвращает
bool

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

◆ create()

create ( $type,
$externalId )
static

Create instance.

Аргументы
string$typeType.
string$externalIdExternal ID.
Возвращает
static

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

◆ getData()

getData ( $type,
$externalId )
staticprotected

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

◆ getErrorCollection()

getErrorCollection ( )

Get error collection.

Возвращает
ErrorCollection

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

◆ handle()

handle ( Payload\Batch $payload)

Handle web hook.

Аргументы
Payload\Batch$payloadPayload instance.
Возвращает
$this

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

◆ queryHookRegister()

queryHookRegister ( $methodName,
array $parameters )
staticprotected

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

◆ register()

register ( array $parameters = [])

Register web hook.

Аргументы
array$parametersParameters.
Возвращает
bool

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

◆ registerForm()

registerForm ( $formId)
static

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

◆ remove()

remove ( )

Remove web hook.

Возвращает
bool

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

◆ unregisterForm()

unregisterForm ( $formId)
static

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

Поля

◆ $data

$data = null
protected

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

◆ $errorCollection

$errorCollection
protected

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

◆ $errors

$errors = array()
protected

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

◆ $externalId

$externalId
protected

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

◆ $payload

$payload
protected

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

◆ $type

$type
protected

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

◆ ANSWER_ERROR_NO_CODE

const ANSWER_ERROR_NO_CODE = '002'

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

◆ ANSWER_ERROR_NO_EXT_ID

const ANSWER_ERROR_NO_EXT_ID = '003'

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

◆ ANSWER_ERROR_NO_PAYLOAD

const ANSWER_ERROR_NO_PAYLOAD = '004'

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

◆ ANSWER_ERROR_NO_SEC_CODE

const ANSWER_ERROR_NO_SEC_CODE = '005'

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

◆ ANSWER_ERROR_SYSTEM

const ANSWER_ERROR_SYSTEM = '001'

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

◆ ANSWER_ERROR_WRONG_SEC_CODE

const ANSWER_ERROR_WRONG_SEC_CODE = '006'

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


Объявления и описания членов класса находятся в файле: