Bitrix API

AddResult extends Result

Table of Contents

Methods

__destruct()  : mixed
getErrorMessages()  : array<string|int, mixed>
Returns array of strings with error messages
getErrors()  : array<string|int, EntityError>|array<string|int, FieldError>
Returns an array of Error objects
getId()  : int|array<string|int, mixed>
Returns id of added record
getObject()  : EntityObject
getPrimary()  : array<string|int, mixed>
isSuccess()  : bool
Returns result status Within the core and events should be called with internalCall flag
setId()  : mixed
setObject()  : mixed
setPrimary()  : mixed

Methods

__destruct()

public __destruct() : mixed

getErrorMessages()

Returns array of strings with error messages

public getErrorMessages() : array<string|int, mixed>
Return values
array<string|int, mixed>

getId()

Returns id of added record

public getId() : int|array<string|int, mixed>
Return values
int|array<string|int, mixed>

getPrimary()

public getPrimary() : array<string|int, mixed>
Return values
array<string|int, mixed>

isSuccess()

Returns result status Within the core and events should be called with internalCall flag

public isSuccess([bool $internalCall = false ]) : bool
Parameters
$internalCall : bool = false
Return values
bool

setId()

public setId(mixed $id) : mixed
Parameters
$id : mixed

setPrimary()

public setPrimary(array<string|int, mixed> $primary) : mixed
Parameters
$primary : array<string|int, mixed>

        
On this page

Search results