Bitrix API

Database implements IRepository, IDatabase, IFindById, IFindByExternalId, IFindByText, IFindParents, ISave, ISaveParents, IDelete, IScope

FinalYes

Class Database

Table of Contents

Interfaces

IRepository
Interface IRepository
IDatabase
Interface IRepositoryDatabase
IFindById
Interface IFindById
IFindByExternalId
Interface IFindByExternalId
IFindByText
Interface IFindByText
IFindParents
Interface IFindParent
ISave
Interface ISave
ISaveParents
Interface ISaveParents
IDelete
Interface IDelete
IScope

Methods

delete()  : Result
findByExternalId()  : Location|null|bool
findById()  : Location|null|bool
findByText()  : Collection|bool
findParents()  : Parents
isScopeSatisfy()  : bool
Check is scope satisfy
save()  : AddResult|UpdateResult
saveParents()  : Result

Methods

delete()

public delete(Location $location) : Result
Parameters
$location : Location
Tags
inheritDoc
Return values
Result

todo: with inheritance or not

findByExternalId()

public findByExternalId(string $externalId, string $sourceCode, string $languageId) : Location|null|bool
Parameters
$externalId : string
$sourceCode : string
$languageId : string
Tags
inheritDoc
Return values
Location|null|bool

findById()

public findById(int $id, string $languageId) : Location|null|bool
Parameters
$id : int
$languageId : string
Tags
inheritDoc
Return values
Location|null|bool

findByText()

public findByText(string $text, string $languageId) : Collection|bool
Parameters
$text : string
$languageId : string
Tags
inheritDoc

todo: address fields

Return values
Collection|bool

findParents()

public findParents(Location $location, string $languageId) : Parents
Parameters
$location : Location
$languageId : string
Tags
inheritDoc
Return values
Parents

isScopeSatisfy()

Check is scope satisfy

public isScopeSatisfy(int $scope) : bool
Parameters
$scope : int
Tags
inheritDoc
Return values
bool

saveParents()

public saveParents(Parents $parents) : Result
Parameters
$parents : Parents
Tags
throws
ArgumentNullException
throws
SqlQueryException
Return values
Result

        
On this page

Search results