ModuleManifest
class ModuleManifest
A utility class which builds a manifest of configuration items
Traits
Constants
PROJECT_KEY |
|
Config options
module_priority | array | List of modules sorted by priority | |
project | string | Project name |
Methods
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .
Gets the uninherited value for the given config option
Adds a path as a module
Returns true if the passed module exists
Constructs and initialises a new configuration object, either loading from the cache or re-scanning for classes.
No description
Includes all of the php _config.php files found by this manifest.
Completely regenerates the manifest file. Scans through finding all php _config.php and yaml _config/*.ya?ml files,parses the yaml files into fragments, sorts them and figures out what values need to be checked to pick the correct variant.
Get modules found
Sort modules sorted by priority
Get module that contains the given path
Details
in Configurable at line 20
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .
....).
in Configurable at line 32
mixed
stat(string $name)
deprecated
deprecated 5.0 Use ->config()->get() instead
Get inherited config value
in Configurable at line 44
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
in Configurable at line 57
$this
set_stat(string $name, mixed $value)
deprecated
deprecated 5.0 Use ->config()->set() instead
Update the config value for a given property
at line 74
addModule(string $path)
Adds a path as a module
at line 101
bool
moduleExists(string $name)
Returns true if the passed module exists
at line 114
__construct(string $base, CacheFactory $cacheFactory = null)
Constructs and initialises a new configuration object, either loading from the cache or re-scanning for classes.
at line 125
init(bool $includeTests = false, bool $forceRegen = false)
at line 147
activateConfig()
Includes all of the php _config.php files found by this manifest.
at line 166
regenerate(bool $includeTests = false)
Completely regenerates the manifest file. Scans through finding all php _config.php and yaml _config/*.ya?ml files,parses the yaml files into fragments, sorts them and figures out what values need to be checked to pick the correct variant.
Does not build the actual variant
at line 198
Module
getModule(string $name)
Get module by name
at line 222
Module[]
getModules()
Get modules found
at line 232
void
sort()
Sort modules sorted by priority
at line 259
Module
getModuleByPath(string $path)
Get module that contains the given path