Class Paths
Class Paths - SINGLETON
USAGE:
Invoke the class as a singleton via dependency injector: $paths = $this->di()->get('hji\common\utils\Paths'); $paths->setPath('folder', 'path/to/handle/folder); $folderPath = $paths->getPath('folder); $folderUrl = $paths->getUrl('folder);
To use in other plugins, simply extend the class and pass $pathDirPath to the current plugin. Invoke as indicated above.
EXTENSION EXAMPLE: class Paths extends \hji\common\utils\Paths { function __construct($pluginFile) { parent::__construct($pluginFile); } }
- hji\membership\services\DependencyInjector
- hji\membership\abstracts\Component
- hji\membership\extension\abstracts\Component implements hji\membership\extension\interfaces\ExtensionInterface
- hji\common\utils\Paths
- hji\construction\core\Paths
Methods summary
public
|
Methods inherited from hji\common\utils\Paths
Methods inherited from hji\membership\extension\abstracts\Component
getMembershipServices()
,
getProjectRoute()
,
getServices()
,
membershipServices()
,
services()