Documentation

LibraryManager
in package

Table of Contents

COLUMN_EXTERNAL_ID  = 'external_id'
COLUMN_FILE  = 'file'
COLUMN_ID  = 'id'
COLUMN_IMPORTANT  = 'important'
COLUMN_RULES  = 'rules'
COLUMN_SQL_RULES  = 'sql_rules'
COLUMN_TITLE  = 'title'
COLUMN_TYPE_NAME  = 'type_name'
COLUMN_UUID  = 'uuid'
TABLE_NAME  = 'library'
$container  : Container
$database  : Context
$employeeManager  : EmployeesManager
$fileManager  : FileManager
$SqlWhereBuilderFromQueryBuilderRules  : SqlWhereBuilderFromQueryBuilderRules
__construct()  : mixed
add()  : mixed
delete()  : void
get()  : ActiveRow|null
getAll()  : Selection
getByEmployee()  : array<string|int, mixed>
Возвращает Список материалов работника
getByExternalId()  : ActiveRow
getByType()  : array<string|int, mixed>
getByUuid()  : Row
update()  : int

Constants

COLUMN_EXTERNAL_ID

public mixed COLUMN_EXTERNAL_ID = 'external_id'

Properties

Methods

__construct()

public __construct(Context $database, Container $conteiner) : mixed
Parameters
$database : Context
$conteiner : Container
Return values
mixed

add()

public add(ArrayHash $data) : mixed
Parameters
$data : ArrayHash
Tags
throws
Exception
Return values
mixed

delete()

public delete(mixed $id) : void
Parameters
$id : mixed
Tags
throws
Exception
Return values
void

get()

public get(mixed $id) : ActiveRow|null
Parameters
$id : mixed
Return values
ActiveRow|null

getAll()

public getAll() : Selection
Return values
Selection

getByEmployee()

Возвращает Список материалов работника

public getByEmployee(int $employeeId) : array<string|int, mixed>
Parameters
$employeeId : int
Tags
throws
JsonException
Return values
array<string|int, mixed>

getByType()

public getByType(array<string|int, mixed> $types, int $employee_id) : array<string|int, mixed>
Parameters
$types : array<string|int, mixed>
$employee_id : int
Return values
array<string|int, mixed>

update()

public update(ArrayHash $data) : int
Parameters
$data : ArrayHash
Tags
throws
FileNotFound
throws
Exception
Return values
int

Search results