Documentation

QuestionsManager
in package

Class QuestionsManager

Tags
category

Managers

subpackage

Models

Table of Contents

COLUMN_ACTIVE  = 'active'
COLUMN_ADDED_DT  = 'added_dt'
COLUMN_CREATED_DT  = 'created_dt'
COLUMN_EDITED_DT  = 'edited_dt'
COLUMN_EXTERNAL_ID  = 'external_id'
COLUMN_FILE_ID  = 'file_id'
COLUMN_ID  = 'id'
COLUMN_SORT  = 'sort'
COLUMN_TEXT  = 'text'
COLUMN_UUID  = 'uuid'
MODULE_NAME  = 'questions'
TABLE_NAME  = 'questions'
$answerManager  : mixed
$database  : Context
$metaManager  : MetaManager
$tagManager  : TagsManager
__construct()  : mixed
add()  : false|mixed|ActiveRow
delete()  : bool
find()  : array<string|int, Row>
findByEmployee()  : mixed
findDefaultQuestions()  : mixed
get()  : Row|null
getByExternalId()  : ActiveRow|null
Ищет вопрос по внешнему идентификатору
getByUuid()  : ActiveRow
Возвращает запись из таблицы вопросов по uuid
remove()  : mixed
update()  : bool
whereIds()  : array<string|int, mixed>

Constants

Properties

Methods

__construct()

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

find()

public find() : array<string|int, Row>
Return values
array<string|int, Row>

findByEmployee()

public findByEmployee([string $employee_uuid = null ]) : mixed
Parameters
$employee_uuid : string = null
Return values
mixed

findDefaultQuestions()

public findDefaultQuestions(mixed $defaultTestUuid[, mixed $modules = null ][, mixed $type = null ][, int|null $count = null ]) : mixed
Parameters
$defaultTestUuid : mixed
$modules : mixed = null
$type : mixed = null
$count : int|null = null
Return values
mixed

getByExternalId()

Ищет вопрос по внешнему идентификатору

public getByExternalId(string $external_id) : ActiveRow|null
Parameters
$external_id : string
Return values
ActiveRow|null

remove()

public remove(mixed $ids) : mixed
Parameters
$ids : mixed
Return values
mixed

whereIds()

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

Search results