Documentation

VisualizationsModule extends Module
in package
implements IModule

Class Module

Interfaces, Classes and Traits

IModule
Interface IModule

Table of Contents

BODY_PART_TAG  = ['name' => 'body_part', 'title' => 'Body part']
META_ANSWER_UUID  = 'visual_uuid'
NAME  = 'visualizations'
PARAM_TAG  = ['name' => 'parametr', 'title' => 'Parametr']
PERMISSIONS_TABLE  = 'permissions'
VERSION  = '1.2'
COMPANY  = 'kuzbass-cot'
$assets  : Assets
$BODY_PARTS  : array<string|int, mixed>
$container  : Container
$databaseContext  : Context
$hooks  : TemplateHooks
$modelHooks  : ModelHooks
$permissionsManager  : PermissionsManager
$tagManager  : mixed
$translator  : Translator
$user  : mixed
$defaultSettings  : array<string|int, mixed>
$linkGenerator  : LinkGenerator
$systemNotificationsManager  : SystemNotificationsManager
$updatesScripts  : mixed
__construct()  : mixed
__invoke()  : mixed
getBodyParts()  : array<string|int, mixed>
getCompany()  : string
getDefaults()  : mixed
getDependencies()  : array<string|int, mixed>
getInstalledInfo()  : ModuleInstalledInfo
Краткая информация о установленом модуле
getName()  : string
getPath()  : string
getTagsTitles()  : array<string|int, mixed>
getTitle()  : string
getValue()  : mixed|ActiveRow
Возвращает значение найстройки модуля
getValues()  : array<string|int, mixed>
Возвращает все значения настроек модулыя
getVersion()  : string
HasRuleEnableModule()  : bool
Возвращает true если есть разрешение на просмотр модуля
isSystem()  : bool
onDestroy()  : bool
onInitialize()  : bool
onInstall()  : bool
onUninstall()  : bool
onUpdate()  : bool
registerNotification()  : void
registerPermission()  : bool
Зарегистрировать разрешение
unregisterPermission()  : int
Удалить разрешение
updateValue()  : mixed
Обновление настройки
updateValues()  : mixed
Обновление настроек
doUpdateScripts()  : bool
Производит выполнение скриптов обновления, если есть
registerPermissions()  : void
registerVisualizationsHooks()  : void
unregisterPermissions()  : void

Constants

BODY_PART_TAG

public mixed BODY_PART_TAG = ['name' => 'body_part', 'title' => 'Body part']

PERMISSIONS_TABLE

public mixed PERMISSIONS_TABLE = 'permissions'

Properties

$BODY_PARTS

public array<string|int, mixed> $BODY_PARTS = [['name' => 'belly', 'title' => 'Belly'], ['name' => 'belly-down', 'title' => 'Belly-down'], ['name' => 'belly-up', 'title' => 'Belly-up'], ['name' => 'chest', 'title' => 'Chest'], ['name' => 'head', 'title' => 'Head'], ['name' => 'hip-joint', 'title' => 'Hip-joint'], ['name' => 'neck', 'title' => 'Neck'], ['name' => 'left-foot', 'title' => 'Left-foot'], ['name' => 'right-foot', 'title' => 'Right-foot'], ['name' => 'left-forearm', 'title' => 'Left-forearm'], ['name' => 'right-forearm', 'title' => 'Right-forearm'], ['name' => 'left-hand', 'title' => 'Left-hand'], ['name' => 'right-hand', 'title' => 'Right-hand'], ['name' => 'left-shin', 'title' => 'Left-shin'], ['name' => 'right-shin', 'title' => 'Right-shin'], ['name' => 'left-shoulder', 'title' => 'Left-shoulder'], ['name' => 'right-shoulder', 'title' => 'Right-shoulder'], ['name' => 'left-upper-arm', 'title' => 'Left-upper-arm'], ['name' => 'right-upper-arm', 'title' => 'Right-upper-arm']]

$container

public Container $container

$databaseContext

public Context $databaseContext

$tagManager

public mixed $tagManager

$linkGenerator

protected LinkGenerator $linkGenerator

$updatesScripts

private mixed $updatesScripts

Methods

__construct()

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

__invoke()

public __invoke() : mixed
Return values
mixed

getBodyParts()

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

getDependencies()

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

getInstalledInfo()

Краткая информация о установленом модуле

public getInstalledInfo() : ModuleInstalledInfo

Требуется для определения зависимостей перед установкой

Return values
ModuleInstalledInfo

getTagsTitles()

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

getValue()

Возвращает значение найстройки модуля

public final getValue(string $key) : mixed|ActiveRow
Parameters
$key : string

Название настройки модуля

Return values
mixed|ActiveRow

getValues()

Возвращает все значения настроек модулыя

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

HasRuleEnableModule()

Возвращает true если есть разрешение на просмотр модуля

public HasRuleEnableModule() : bool
Return values
bool

onUpdate()

public onUpdate(mixed $pathToScriptsFolder) : bool
Parameters
$pathToScriptsFolder : mixed
Return values
bool

registerNotification()

public registerNotification(mixed $message[, mixed $status = 'info' ][, mixed $link = null ][, mixed $linkText = '' ]) : void
Parameters
$message : mixed
$status : mixed = 'info'
$link : mixed = null
$linkText : mixed = ''
Return values
void

registerPermission()

Зарегистрировать разрешение

public final registerPermission(string $resource, string $privilege, string $title) : bool
Parameters
$resource : string

Ресурс на который будет распростроняться разрешение

$privilege : string

Действие на которое распространяется разрешение

$title : string

Название разрешения

Tags
deprecated

Удалить в ближайшем рефакторинге

throws
PermissionExists
Return values
bool

unregisterPermission()

Удалить разрешение

public final unregisterPermission([string $resource = '' ][, string $privilege = '' ]) : int
Parameters
$resource : string = ''

Ресурс

$privilege : string = ''

Дейсвие

Tags
deprecated

Удалить в ближайшем рефакторинге

Return values
int

updateValue()

Обновление настройки

public final updateValue( $key,  $value) : mixed
Parameters
$key :
$value :
Return values
mixed

updateValues()

Обновление настроек

public final updateValues(array<string|int, mixed> $values) : mixed
Parameters
$values : array<string|int, mixed>

значение настроек

Return values
mixed

doUpdateScripts()

Производит выполнение скриптов обновления, если есть

protected doUpdateScripts(string $scriptsDir) : bool
Parameters
$scriptsDir : string
Tags
throws
Exception
Return values
bool

registerVisualizationsHooks()

private registerVisualizationsHooks() : void
Return values
void

Search results