AccidentsManager
in package
Table of Contents
- COL_CONDITIONS = 'conditions'
- COL_CREATE_DT = 'create_dt'
- COL_FILE = 'file'
- COL_ID = 'id'
- COL_INJURY_SEVERITY = 'injury_severity'
- COL_STRUCTURE = 'structure'
- COL_UUID = 'uuid'
- SERVICE_NAME = 'accidents.manager'
- TABLE_NAME = 'acc_accidents'
- $database : Explorer
- __construct() : mixed
- add() : ActiveRow
- delete() : void
- Удаляет запись из таблицы
- find() : Selection
- Возвращает список несчастных случаев
- get() : ActiveRow
- Возвращает запись из таблицы по id
- getByUuid() : ActiveRow
- Возвращает запись по UUID
- update() : ActiveRow
- Обновляет запись в таблице
Constants
COL_CONDITIONS
public
string
COL_CONDITIONS
= 'conditions'
COL_CREATE_DT
public
string
COL_CREATE_DT
= 'create_dt'
COL_FILE
public
string
COL_FILE
= 'file'
COL_ID
public
string
COL_ID
= 'id'
COL_INJURY_SEVERITY
public
string
COL_INJURY_SEVERITY
= 'injury_severity'
COL_STRUCTURE
public
string
COL_STRUCTURE
= 'structure'
COL_UUID
public
string
COL_UUID
= 'uuid'
SERVICE_NAME
public
mixed
SERVICE_NAME
= 'accidents.manager'
TABLE_NAME
public
string
TABLE_NAME
= 'acc_accidents'
Properties
$database
private
Explorer
$database
Methods
__construct()
public
__construct(Explorer $database) : mixed
Parameters
- $database : Explorer
Return values
mixed —add()
public
add(iteratable<string|int, mixed> $value) : ActiveRow
Parameters
- $value : iteratable<string|int, mixed>
Return values
ActiveRow —delete()
Удаляет запись из таблицы
public
delete(int $id) : void
Parameters
- $id : int
Tags
Return values
void —find()
Возвращает список несчастных случаев
public
find() : Selection
Return values
Selection —get()
Возвращает запись из таблицы по id
public
get(int $id) : ActiveRow
Parameters
- $id : int
Tags
Return values
ActiveRow —getByUuid()
Возвращает запись по UUID
public
getByUuid(string $uuid) : ActiveRow
Parameters
- $uuid : string
Tags
Return values
ActiveRow —update()
Обновляет запись в таблице
public
update(int $id, iteratable<string|int, mixed> $value) : ActiveRow
Parameters
- $id : int
- $value : iteratable<string|int, mixed>