UpdateManager
Table of Contents
-
SERVICE_NAME
= 'updateManager'
-
COLUMN_CLASS_NAME
= 'class_name'
-
COLUMN_DATA
= 'date'
-
COLUMN_ID
= 'id'
-
COLUMN_MODULE
= 'module'
-
COLUMN_VERSION
= 'version'
-
TABLE_NAME
= 'module_updates'
-
UPDATE_SCRIPT_NAMESPACE
= "\App\Modules\Updates\"
-
UPDATE_SCRIPT_PATH
= "/utils/updateScripts/"
-
$container
: Container
-
$database
: Explorer
-
__construct()
: mixed
-
findNewUpdates()
: array<string|int, mixed>
-
getModuleInstallUpdates()
: Selection
-
installUpdates()
: void
-
moduleHaveNewUpdates()
: bool
-
setModuleManager()
: mixed
-
updateModule()
: bool
-
findUpdateScriptsClass()
: array<string|int, mixed>
SERVICE_NAME
public
mixed
SERVICE_NAME
= 'updateManager'
COLUMN_CLASS_NAME
private
mixed
COLUMN_CLASS_NAME
= 'class_name'
COLUMN_DATA
private
mixed
COLUMN_DATA
= 'date'
COLUMN_ID
private
mixed
COLUMN_ID
= 'id'
COLUMN_MODULE
private
mixed
COLUMN_MODULE
= 'module'
COLUMN_VERSION
private
mixed
COLUMN_VERSION
= 'version'
TABLE_NAME
private
mixed
TABLE_NAME
= 'module_updates'
UPDATE_SCRIPT_NAMESPACE
private
mixed
UPDATE_SCRIPT_NAMESPACE
= "\App\Modules\Updates\"
UPDATE_SCRIPT_PATH
private
mixed
UPDATE_SCRIPT_PATH
= "/utils/updateScripts/"
$container
private
Container
$container
$database
private
Explorer
$database
__construct()
public
__construct(Container $container) : mixed
Parameters
-
$container
: Container
-
Return values
mixed
—
findNewUpdates()
public
findNewUpdates(IModule $module, mixed $versionFromDB) : array<string|int, mixed>
Parameters
-
$module
: IModule
-
-
$versionFromDB
: mixed
-
Return values
array<string|int, mixed>
—
getModuleInstallUpdates()
public
getModuleInstallUpdates(string $module_name) : Selection
Parameters
-
$module_name
: string
-
Return values
Selection
—
installUpdates()
public
installUpdates(array<string|int, IUpdateScript> $scripts) : void
Parameters
-
$scripts
: array<string|int, IUpdateScript>
-
Return values
void
—
moduleHaveNewUpdates()
public
moduleHaveNewUpdates(IModule $module, mixed $versionFromDB) : bool
Parameters
-
$module
: IModule
-
-
$versionFromDB
: mixed
-
Return values
bool
—
setModuleManager()
public
setModuleManager() : mixed
Return values
mixed
—
updateModule()
public
updateModule(IModule $module, mixed $versionFromDB) : bool
Parameters
-
$module
: IModule
-
-
$versionFromDB
: mixed
-
Return values
bool
—
findUpdateScriptsClass()
private
findUpdateScriptsClass(mixed $ScanDir) : array<string|int, mixed>
Parameters
-
$ScanDir
: mixed
-
Return values
array<string|int, mixed>
—