Bitrix API

QuickAnswer

Table of Contents

Methods

add()  : QuickAnswer|bool
Adds new record through dataManager, returns new self on success or false on failure.
delete()  : mixed
Deletes record of $this object through dataManager
getById()  : QuickAnswer|bool
Tries to find record in DB through dataManager on id.
getCategory()  : int
getCount()  : mixed
Returns count of records on $filter.
getCountByUserPermissions()  : int
Returns quick answers count by permission
getIblock()  : int
getId()  : int
getList()  : array<string|int, QuickAnswer>
Returns array of self on filter.
getListByUserPermissions()  : array<string|int, QuickAnswer>
Returns quick answers array by permission
getName()  : string
getSectionList()  : array<string|int, mixed>
Returns array of sections.
getText()  : string
getUrlToList()  : string
Returns url to public page to manage records.
incrementRating()  : mixed
Increment rating of $this and update record in DB.
setDataManager()  : mixed
Sets dataManager that provide access to records in DB.
update()  : bool
Update record through dataManager, update $this attributes.

Methods

add()

Adds new record through dataManager, returns new self on success or false on failure.

public static add(array<string|int, mixed> $data) : QuickAnswer|bool
Parameters
$data : array<string|int, mixed>
Return values
QuickAnswer|bool

delete()

Deletes record of $this object through dataManager

public delete() : mixed

getById()

Tries to find record in DB through dataManager on id.

public static getById(mixed $id) : QuickAnswer|bool

Returns new self on success, false on failure.

Parameters
$id : mixed
Return values
QuickAnswer|bool

getCategory()

public getCategory() : int
Return values
int

getCount()

Returns count of records on $filter.

public static getCount([array<string|int, mixed> $filter = array() ]) : mixed
Parameters
$filter : array<string|int, mixed> = array()

getCountByUserPermissions()

Returns quick answers count by permission

public static getCountByUserPermissions(array<string|int, mixed> $filter[, string $permission = 'element_read' ]) : int
Parameters
$filter : array<string|int, mixed>
$permission : string = 'element_read'
Return values
int

getIblock()

public getIblock() : int
Return values
int

getList()

Returns array of self on filter.

public static getList([array<string|int, mixed> $filter = array() ][, int $offset = 0 ][, int $limit = 10 ]) : array<string|int, QuickAnswer>
Parameters
$filter : array<string|int, mixed> = array()
$offset : int = 0
$limit : int = 10

Maximum size of the result array.

Return values
array<string|int, QuickAnswer>

getListByUserPermissions()

Returns quick answers array by permission

public static getListByUserPermissions(array<string|int, mixed> $filter[, int|null $offset = null ][, int|null $limit = 10 ][, string $permission = 'element_read' ]) : array<string|int, QuickAnswer>
Parameters
$filter : array<string|int, mixed>
$offset : int|null = null
$limit : int|null = 10
$permission : string = 'element_read'
Return values
array<string|int, QuickAnswer>

getName()

public getName() : string
Return values
string

getSectionList()

Returns array of sections.

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

getText()

public getText() : string
Return values
string

getUrlToList()

Returns url to public page to manage records.

public static getUrlToList() : string
Return values
string

incrementRating()

Increment rating of $this and update record in DB.

public incrementRating() : mixed

setDataManager()

Sets dataManager that provide access to records in DB.

public static setDataManager(DataManager $dataManager) : mixed
Parameters
$dataManager : DataManager

update()

Update record through dataManager, update $this attributes.

public update(array<string|int, mixed> $data) : bool

Returns true on success, false on failure.

Parameters
$data : array<string|int, mixed>
Return values
bool

        
On this page

Search results