Documentation

StudyManager
in package

Менеджер способов обучения-тестирования

Tags
subpackage

Models

Table of Contents

TABLE_NAME  = 'study_result'
$container  : Container
$database  : Context
$studyMethods  : array<string|int, mixed>
__construct()  : mixed
StudyManager constructor.
argumentErrorText()  : string
Текст ошибки о неправильных аргументах
find()  : mixed
getDealerPercentage()  : int
getEmployeeDynamicsCompetence()  : mixed
getEmployeeStudy()  : mixed
getEmployeeStudyCount()  : mixed
getMetaManager()  : MetaManager
Вспомогательный метод для передачи мета менеджера в метод обучения
getMethodObject()  : IStudyMethod
getPercentRightAnswersByEmployee()  : Row|null
isRegisteredMethod()  : bool
Проверка регистрации модуля
registerMethod()  : mixed
Регистрация способа обучения или тестирования
save()  : bool
Сохранить результат обучения
checkMethodClass()  : bool
getMethodClassName()  : string

Constants

Properties

$studyMethods

private array<string|int, mixed> $studyMethods = []

Methods

__construct()

StudyManager constructor.

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

argumentErrorText()

Текст ошибки о неправильных аргументах

public argumentErrorText(int $position, string $name, string $type) : string

Параметры: позиция аргумента, название аргумента, тип

Parameters
$position : int
$name : string
$type : string
Return values
string

find()

public find(string $methodName) : mixed
Parameters
$methodName : string
Return values
mixed

getDealerPercentage()

public getDealerPercentage(array<string|int, mixed> $structures) : int
Parameters
$structures : array<string|int, mixed>
Return values
int

getEmployeeDynamicsCompetence()

public getEmployeeDynamicsCompetence(int $employeeId) : mixed
Parameters
$employeeId : int
Return values
mixed

getEmployeeStudy()

public getEmployeeStudy(int $employeeId) : mixed
Parameters
$employeeId : int
Return values
mixed

getEmployeeStudyCount()

public getEmployeeStudyCount(int $employeeId) : mixed
Parameters
$employeeId : int
Return values
mixed

getMetaManager()

Вспомогательный метод для передачи мета менеджера в метод обучения

public getMetaManager() : MetaManager
Return values
MetaManager

getPercentRightAnswersByEmployee()

public getPercentRightAnswersByEmployee(mixed $employeeId) : Row|null
Parameters
$employeeId : mixed
Return values
Row|null

isRegisteredMethod()

Проверка регистрации модуля

public isRegisteredMethod(string $methodName) : bool
Parameters
$methodName : string
Return values
bool

save()

Сохранить результат обучения

public save(string $methodName, DateTime $event_date, string $employee_id,  ...$args) : bool
Parameters
$methodName : string
$event_date : DateTime
$employee_id : string
$args :
Tags
throws
StudyMethodClassNotFound
throws
StudyMethodNotRegister
Return values
bool

checkMethodClass()

private checkMethodClass(string $methodName) : bool
Parameters
$methodName : string
Return values
bool

getMethodClassName()

private getMethodClassName(string $methodName) : string
Parameters
$methodName : string
Return values
string

Search results