getModuleIdentifier()
getModuleIdentifier() : string
Retrieve the module identifier
The Module Interface
Expands on the leaf interface to implement common Module functions having to do with paths and path identifiers
CHANGELOG
1.0: Created ModuleInterface - February 21st, 2014 1.1: Refactored ModuleInterface to DirectoryInterface - February 27th, 2014 1.2: Wrapped ModuleInterface to DirectoryInterface - February 27th, 2014 2.0: Refactored for Primus 2 Integration - October 20th, 2015 3.0: removed default arguments to path methods reformatted for inclusion in phabstractic - August 2nd, 2016
addModule(\Phabstractic\Loader\Resource\Phabstractic\Loader\Resource\ModuleInterface $module)
Add a Module to this Module's 'directory'.
Remember that the passed ModuleName will become the LOCAL identifier
Like addLeaf
\Phabstractic\Loader\Resource\Phabstractic\Loader\Resource\ModuleInterface | $module |
removeModule(\Phabstractic\Loader\Resource\ModuleInterface $module)
Remove a Module from this Module's 'directory'
Like removeLeaf
\Phabstractic\Loader\Resource\ModuleInterface | $module |
addToModuleIdentityPath(string $path, \Phabstractic\Loader\Resource\Phabstractic\Loader\Resource\ModuleInterface $newModule)
Parse the path from this module and add new module
string | $path | |
\Phabstractic\Loader\Resource\Phabstractic\Loader\Resource\ModuleInterface | $newModule |
getFromModuleIdentityPath(string $path) : \Phabstractic\Loader\Resource\Phabstractic\Loader\Resource\LeafInterface|\Phabstractic\Loader\Resource\Phabstractic\Data\Types\None
Retrieve a Module using a path and a root
This starts at a given root Module, and then parses the path (delimited by \'s) until it reaches the intended module. The path refers to identifiers as stored in the identifier of the actual module
string | $path | The path to the desired Folder (this\is\a\path) |
A reference, none on failure