ModuleInfo
in package
Class ModuleInfo
Tags
Table of Contents
- TABLE_NAME = 'modules'
- $dependencies : array<string|int, mixed>
- $is_enabled : bool
- $is_have_settings : bool
- $is_installed : bool
- $is_need_update : bool
- $is_system : bool
- $name : string
- $title : string
- $version : string
- $version_from_db : string
- $version_readable : string
- $container : Container
- $database : Context
- $enabled : mixed
- $installed : mixed
- $instance : Module
- $localModules : LocalModules
- $moduleManager : ModulesManager
- $updateManager : UpdateManager
- __construct() : mixed
- getInstance() : Module
- toArray() : array<string|int, mixed>
- Формирует массив параметров модуля
- loadModule() : $this|false
- Загружает модуль
- setDependencies() : $this
- Устанавливает зависемости
- setEnableds() : $this
- Устанавливает включенные модули в переменную класса
- setInstalleds() : $this
- Устанавливает установленные модули в переменную класса
- setInstance() : mixed
- Задаёт текущий модуль
- setIsEnabled() : $this
- Устанавливает флаг что модуль включен
- setIsHaveSettings() : $this
- Устанавливает метку что у модуля есть настройки
- setIsInstalled() : $this
- Устанавливает флаг что модуль установлен
- setIsNeedUpdate() : $this
- Устанавливает флан что модуль нужно обновить
- setIsSystem() : $this
- Устанавливает флаг что модуьл системный
- setName() : $this
- Устанавливает имя модуля
- setTitle() : $this
- Устанавливает Название модуля
- setVersion() : $this
- Устанавливает мерсию модуля
- setVersionFromDB() : ModuleInfo
- Устанавливает версию модуля записаную в базе данных
- setVersionReadable() : $this
- Устанавливает версию модуля
Constants
TABLE_NAME
public
string
TABLE_NAME
= 'modules'
Properties
$dependencies
public
array<string|int, mixed>
$dependencies
$is_enabled
public
bool
$is_enabled
$is_have_settings
public
bool
$is_have_settings
$is_installed
public
bool
$is_installed
$is_need_update
public
bool
$is_need_update
$is_system
public
bool
$is_system
$name
public
string
$name
$title
public
string
$title
$version
public
string
$version
$version_from_db
public
string
$version_from_db
$version_readable
public
string
$version_readable
$container
private
Container
$container
$database
private
Context
$database
$enabled
private
mixed
$enabled
$installed
private
mixed
$installed
$instance
private
Module
$instance
$localModules
private
LocalModules
$localModules
$moduleManager
private
ModulesManager
$moduleManager
$updateManager
private
UpdateManager
$updateManager
Methods
__construct()
public
__construct(Container $container, mixed $module_name) : mixed
Parameters
- $container : Container
- $module_name : mixed
Return values
mixed —getInstance()
public
getInstance() : Module
Return values
Module —toArray()
Формирует массив параметров модуля
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —loadModule()
Загружает модуль
private
loadModule(string $module_name) : $this|false
Parameters
- $module_name : string
-
Название модуля
Tags
Return values
$this|false —Возвращает лобъект modulInfo либо false если не удалось загрузить модуль
setDependencies()
Устанавливает зависемости
private
setDependencies(array<string|int, mixed> $dependencies) : $this
Parameters
- $dependencies : array<string|int, mixed>
-
массив зависемостей
Return values
$this —setEnableds()
Устанавливает включенные модули в переменную класса
private
setEnableds() : $this
Return values
$this —setInstalleds()
Устанавливает установленные модули в переменную класса
private
setInstalleds() : $this
Return values
$this —setInstance()
Задаёт текущий модуль
private
setInstance(string $module_name) : mixed
Parameters
- $module_name : string
-
назввание модуля
Tags
Return values
mixed —setIsEnabled()
Устанавливает флаг что модуль включен
private
setIsEnabled() : $this
Return values
$this —setIsHaveSettings()
Устанавливает метку что у модуля есть настройки
private
setIsHaveSettings() : $this
Return values
$this —setIsInstalled()
Устанавливает флаг что модуль установлен
private
setIsInstalled() : $this
Return values
$this —setIsNeedUpdate()
Устанавливает флан что модуль нужно обновить
private
setIsNeedUpdate() : $this
Return values
$this —setIsSystem()
Устанавливает флаг что модуьл системный
private
setIsSystem() : $this
Return values
$this —setName()
Устанавливает имя модуля
private
setName() : $this
Return values
$this —setTitle()
Устанавливает Название модуля
private
setTitle() : $this
Return values
$this —setVersion()
Устанавливает мерсию модуля
private
setVersion() : $this
Return values
$this —setVersionFromDB()
Устанавливает версию модуля записаную в базе данных
private
setVersionFromDB() : ModuleInfo
Return values
ModuleInfo —setVersionReadable()
Устанавливает версию модуля
private
setVersionReadable() : $this