PHP Class SlimCMS\Modules\SModuleManager

Inheritance: implements SlimCMS\Contracts\Modules\IModuleManager
Show file Open project: andrey900/slimcms

Public Properties

Property Type Description
$moduleNamespace

Protected Properties

Property Type Description
$cache
$cacheManager
$filesystem
$moduleContainer
$modulesName
$path

Public Methods

Method Description
__construct ( boolean $cache )
getModules ( ) : Illuminate\Container\Container Get all modules in container
keys ( ) : array Return all name modules in the container
loadModule ( string $name, stdClass $config, stdClass $info ) : boolean Load module in container
loadModules ( $path = "" ) Find and analyse the module folder
module ( string $name ) : IModule | mixed Get module by name

Protected Methods

Method Description
checkConfig ( stdClass $config ) : mixed Check base parametr in config
checkDependecies ( array $dependeny ) Check dependencies for concret module initialized
checkInfo ( $info, $name ) : stdClass Check base parametr in info
decoratorsInit ( string $name, array $decorators ) Set decorators class by module
extModuleInfo ( string $path ) : stdClass | mixed Get information for module
initModule ( string $folder ) : void Init proccess by one module

Method Details

__construct() public method

public __construct ( boolean $cache )
$cache boolean

checkConfig() protected method

Check base parametr in config
protected checkConfig ( stdClass $config ) : mixed
$config stdClass
return mixed

checkDependecies() protected method

Check dependencies for concret module initialized
protected checkDependecies ( array $dependeny )
$dependeny array

checkInfo() protected method

Check base parametr in info
protected checkInfo ( $info, $name ) : stdClass
$info
$name
return stdClass

decoratorsInit() protected method

Set decorators class by module
protected decoratorsInit ( string $name, array $decorators )
$name string
$decorators array

extModuleInfo() protected method

Get information for module
protected extModuleInfo ( string $path ) : stdClass | mixed
$path string
return stdClass | mixed

getModules() public method

Get all modules in container
public getModules ( ) : Illuminate\Container\Container
return Illuminate\Container\Container

initModule() protected method

Init proccess by one module
protected initModule ( string $folder ) : void
$folder string
return void

keys() public method

Return all name modules in the container
public keys ( ) : array
return array

loadModule() public method

Load module in container
public loadModule ( string $name, stdClass $config, stdClass $info ) : boolean
$name string
$config stdClass
$info stdClass
return boolean

loadModules() public method

Find and analyse the module folder
public loadModules ( $path = "" )

module() public method

Get module by name
public module ( string $name ) : IModule | mixed
$name string
return IModule | mixed

Property Details

$cache protected property

protected $cache

$cacheManager protected property

protected $cacheManager

$filesystem protected property

protected $filesystem

$moduleContainer protected property

protected $moduleContainer

$moduleNamespace public property

public $moduleNamespace

$modulesName protected property

protected $modulesName

$path protected property

protected $path