Bitrix API

BaseObject

Table of Contents

Methods

__construct()  : mixed
canEdit()  : bool
canRead()  : bool
getApplication()  : CMain
getErrorByCode()  : Error|null
getErrors()  : array<string|int, Error>
getId()  : int
getUser()  : CUser
init()  : void
exists only for child class
loadFromId()  : BaseObject
loadUserGroups()  : array<string|int, mixed>
shutdown()  : mixed
Debug function

Methods

__construct()

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

canEdit()

public canEdit(int $userId) : bool
Parameters
$userId : int

User ID.

Return values
bool

canRead()

public canRead(int $userId) : bool
Parameters
$userId : int

User ID.

Return values
bool

getApplication()

public getApplication() : CMain
Return values
CMain

getErrorByCode()

public getErrorByCode(string|int $code) : Error|null
Parameters
$code : string|int

The code of the error.

Tags
inheritdoc

Returns an error with the necessary code.

Return values
Error|null

getErrors()

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

getUser()

public getUser() : CUser
Return values
CUser

init()

exists only for child class

public init() : void

loadFromId()

public static loadFromId(int $id[, bool $shouldBeNewIfIdIsNull = false ]) : BaseObject
Parameters
$id : int

Entity ID.

$shouldBeNewIfIdIsNull : bool = false
Return values
BaseObject

loadUserGroups()

public static loadUserGroups(int $userId) : array<string|int, mixed>
Parameters
$userId : int

User ID.

Return values
array<string|int, mixed>

shutdown()

Debug function

public static shutdown() : mixed

        
On this page

Search results