Documentation

RisksManager
in package

Table of Contents

COLUMN_COMPETENCE  = 'competence'
COLUMN_DEAD_INIJURY_COEF  = 'dead_injury_coef'
COLUMN_INIJURY_COEF  = 'injury_coef'
COLUMN_NUM_OF_VICTIMS  = 'num_of_victims'
COLUMN_PROBABILITY_OF_INIJURY  = 'probability_of_injury'
SERVICE_NAME  = 'risks.manager'
TABLE_NAME  = 'risks_coefficient'
$database  : Explorer
__construct()  : mixed
exportTable()  : array<string|int, mixed>
Возвращает таблица рисков в виде массива, где первый элемент это список столбцов, а далее идут значения
find()  : Selection
get()  : ActiveRow
getAllCountEmployeeInDateRange()  : int
getCoefByCompetence()  : ActiveRow
getCompetenceAndRiskByRulesAndDateRage()  : array<string|int, mixed>
getStudyResultByEmployeeOnDatePeriod()  : mixed
importTable()  : void
Записывает данные с файла в базу

Constants

COLUMN_COMPETENCE

public mixed COLUMN_COMPETENCE = 'competence'

COLUMN_DEAD_INIJURY_COEF

public mixed COLUMN_DEAD_INIJURY_COEF = 'dead_injury_coef'

COLUMN_INIJURY_COEF

public mixed COLUMN_INIJURY_COEF = 'injury_coef'

COLUMN_NUM_OF_VICTIMS

public mixed COLUMN_NUM_OF_VICTIMS = 'num_of_victims'

COLUMN_PROBABILITY_OF_INIJURY

public mixed COLUMN_PROBABILITY_OF_INIJURY = 'probability_of_injury'

SERVICE_NAME

public mixed SERVICE_NAME = 'risks.manager'

TABLE_NAME

public mixed TABLE_NAME = 'risks_coefficient'

Properties

Methods

__construct()

public __construct(Explorer $database) : mixed
Parameters
$database : Explorer
Return values
mixed

exportTable()

Возвращает таблица рисков в виде массива, где первый элемент это список столбцов, а далее идут значения

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

find()

public find() : Selection
Return values
Selection

getAllCountEmployeeInDateRange()

public getAllCountEmployeeInDateRange(DateTimeInterface $startDatePeriod, DateTimeInterface $endDatePeriod[, string $sqlRules = null ]) : int
Parameters
$startDatePeriod : DateTimeInterface
$endDatePeriod : DateTimeInterface
$sqlRules : string = null
Return values
int

getCompetenceAndRiskByRulesAndDateRage()

public getCompetenceAndRiskByRulesAndDateRage(DatePeriod $datePeriod[, string $sqlRules = null ]) : array<string|int, mixed>
Parameters
$datePeriod : DatePeriod
$sqlRules : string = null
Return values
array<string|int, mixed>

getStudyResultByEmployeeOnDatePeriod()

public getStudyResultByEmployeeOnDatePeriod(DateTimeInterface $startDatePeriod, DateTimeInterface $endDatePeriod[, string $sqlRules = null ]) : mixed
Parameters
$startDatePeriod : DateTimeInterface
$endDatePeriod : DateTimeInterface
$sqlRules : string = null
Return values
mixed

importTable()

Записывает данные с файла в базу

public importTable(string $filePath) : void
Parameters
$filePath : string
Tags
throws
FileImportException
Return values
void

Search results