Documentation

ImportManager
in package

Class ImportManager

Tags
subpackage

Models

Table of Contents

$container  : mixed
$database  : Explorer
$employeeCount  : int
$errors  : int
$fileManager  : FileManager|object|null
$slugger  : mixed
$tagManager  : TagsManager
$visualizationsManager  : VisualizationsManager
__construct()  : mixed
importEmployee()  : void
Импортирует сущноть работника в базу данных
importExtraEducationHistory()  : void
importFile()  : BaseFile
Импортирует файл
importHistory()  : bool|array<string|int, mixed>
Импорт истории сдач
importLibrary()  : void
importLibraryTypes()  : void
importLibraryViewHistory()  : void
importPositionsTest()  : mixed
Импорт ссылок на должности в тестах
importQuestions()  : ActiveRow
Импортирует экземпляр сущности вопрос
importStructure()  : void
Импортирование экземпляр сущности структуры в базу данных
importViolations()  : void
importVisualisations()  : void
constructRules()  : array<string|int, mixed>
Собирает массив правил
findAnswerId()  : int
findQuestion()  : mixed
findReason()  : mixed
generateAssignRuleArray()  : array<string|int, mixed>
getType()  : string
Возвращает тип файла

Properties

Methods

__construct()

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

importEmployee()

Импортирует сущноть работника в базу данных

public importEmployee(array<string|int, mixed> $employees, ezcConsoleProgressbar $progress) : void
Parameters
$employees : array<string|int, mixed>

Массив с параетрами о работнике

$progress : ezcConsoleProgressbar
Tags
throws
EmployeeNotFoundException
throws
EmployeeSaveException
throws
LibraryNotFoundException
throws
NotAllPropertySetException
throws
BadParameterException
Return values
void

importExtraEducationHistory()

public importExtraEducationHistory(iteratable<string|int, mixed> $appointments, iteratable<string|int, mixed> $extraEducationResults, mixed $emp_id) : void
Parameters
$appointments : iteratable<string|int, mixed>
$extraEducationResults : iteratable<string|int, mixed>
$emp_id : mixed
Return values
void

importFile()

Импортирует файл

public importFile(iteratable<string|int, mixed> $fileData, string $pathToImportFile) : BaseFile
Parameters
$fileData : iteratable<string|int, mixed>
$pathToImportFile : string
Tags
throws
FileImportException
Return values
BaseFile

importHistory()

Импорт истории сдач

public importHistory(array<string|int, mixed> $userHistory, string $employee_id) : bool|array<string|int, mixed>
Parameters
$userHistory : array<string|int, mixed>
$employee_id : string

Идентификатор работника

Tags
throws
Exception
Return values
bool|array<string|int, mixed>

importLibrary()

public importLibrary(iteratable<string|int, mixed> $library, string $pathToImportFile, ezcConsoleProgressbar $progressbar) : void
Parameters
$library : iteratable<string|int, mixed>
$pathToImportFile : string
$progressbar : ezcConsoleProgressbar
Return values
void

importLibraryTypes()

public importLibraryTypes(array<string|int, mixed> $types, ezcConsoleProgressbar $progress) : void
Parameters
$types : array<string|int, mixed>
$progress : ezcConsoleProgressbar
Return values
void

importLibraryViewHistory()

public importLibraryViewHistory(iteratable<string|int, mixed> $viewHistory, mixed $emp_id) : void
Parameters
$viewHistory : iteratable<string|int, mixed>
$emp_id : mixed
Tags
throws
LibraryNotFoundException
throws
BadParameterException
Return values
void

importPositionsTest()

Импорт ссылок на должности в тестах

public importPositionsTest(array<string|int, mixed> $positions) : mixed
Parameters
$positions : array<string|int, mixed>
Tags
throws
ezcConsoleInvalidOutputTargetException
Return values
mixed

importQuestions()

Импортирует экземпляр сущности вопрос

public importQuestions(array<string|int, mixed> $questions, string $pathToImportFile[, int|null $parent_question_id = null ][, ezcConsoleProgressbar $progress = null ]) : ActiveRow
Parameters
$questions : array<string|int, mixed>

Параметры вопроса

$pathToImportFile : string

Путь до файла визуализации

$parent_question_id : int|null = null

Идентификкатор радительского вопроса

$progress : ezcConsoleProgressbar = null
Tags
throws
FileCreateDirFail
throws
FileInsertFail
throws
FileUpdateFail
throws
NotAllPropertySetException
throws
QuestionInvalidId
throws
TagInsertFail
throws
TagInvalidUuid
throws
ezcConsoleInvalidOutputTargetException
Return values
ActiveRow

importStructure()

Импортирование экземпляр сущности структуры в базу данных

public importStructure(array<string|int, mixed> $structures[, int|null $parentId = null ]) : void
Parameters
$structures : array<string|int, mixed>

массив содержащих данные о структуре

$parentId : int|null = null

идентификатор радительской структуры

Tags
throws
AddStructureLevelException
throws
InvalidUuidException
Return values
void

importViolations()

public importViolations(iteratable<string|int, mixed> $violations, mixed $emp_id) : void
Parameters
$violations : iteratable<string|int, mixed>
$emp_id : mixed
Return values
void

importVisualisations()

public importVisualisations(iteratable<string|int, mixed> $visualisations, mixed $pathImportFile, ezcConsoleProgressbar $progressbar) : void
Parameters
$visualisations : iteratable<string|int, mixed>
$pathImportFile : mixed
$progressbar : ezcConsoleProgressbar
Tags
throws
VisualizationInvalidUUID
throws
Exception
Return values
void

constructRules()

Собирает массив правил

private constructRules( $args) : array<string|int, mixed>
Parameters
$args :
Return values
array<string|int, mixed>

findAnswerId()

private findAnswerId(int $questionId, string $answerText) : int
Parameters
$questionId : int
$answerText : string
Tags
throws
AnswerNotFoundException
Return values
int

findReason()

private findReason(string $reasonText) : mixed
Parameters
$reasonText : string
Return values
mixed

generateAssignRuleArray()

private generateAssignRuleArray( $tag) : array<string|int, mixed>
Parameters
$tag :
Return values
array<string|int, mixed>

getType()

Возвращает тип файла

private getType(string $external_type) : string
Parameters
$external_type : string
Return values
string

Search results