SS_ConfigStaticManifest
class SS_ConfigStaticManifest (View source)
A utility class which builds a manifest of the statics defined in all classes, along with their access levels and values
We use this to make the statics that the Config system uses as default values be truely immutable.
It has the side effect of allowing Config to avoid private-level access restrictions, so we can optionally catch attempts to modify the config statics (otherwise the modification will appear to work, but won't actually have any effect - the equvilent of failing silently)
Properties
protected | $base | |||
protected | $tests | |||
protected | $cache | |||
protected | $key | |||
protected | $index | |||
protected | $statics | |||
protected static | $initial_classes |
Methods
Constructs and initialises a new config static manifest, either loading the data from the cache or re-scanning for classes.
Details
__construct(string $base, bool $includeTests = false, bool $forceRegen = false, bool $cache = true)
Constructs and initialises a new config static manifest, either loading the data from the cache or re-scanning for classes.
get($class, $name, $default)
No description
regenerate($cache = true)
Completely regenerates the manifest file.
handleFile($basename, $pathname, $depth)
No description
getStatics()
No description