SALT main class
| package | salt |
|---|
addClassFolder(string $folder, string $namespace= NULL, string $pattern= '.class.php')
stringroot folder that contain classes
string(Optional, NULL) Namespace to use for register classes
string(Optional, .class.php) Suffix of files that contains classes
computeRelativePath(string $from, string $dest, integer $destIgnoreLevel = 0) : string
Parameters can be provided with a file or ends with / (or )
All characters after the last / (or ) is ignored
stringOrigin path
stringDestination path
integer(Optional, 0) Ignore some folders at the end of the destination path
\Exception |
If the origin and destination paths are not both relative or absolute path |
|---|
stringRelative path for go to $dest from $from. Return always ends with /, except if emptyconfig()
loadClass(string $className)
stringClass name with namespace to load
\salt\SaltException |
if the class don't exists in folders added with self::addClassFolder() |
|---|
relativePath(integer $destIgnoreLevel = 0) : string
integer(Optionnel, 0) Ignore some folders at the end of the method caller
stringRelative path between executed PHP script and method callersaltPath() : string
stringabsolute SALT pathwebRelativePath(integer $destIgnoreLevel = 0) : string
integer(Optionnel, 0) Ignore some folders at the end of the method caller
stringRelative path between requested URI and method caller (usefull for URI rewrite)findAllClasses(string $folder, string $namespace= NULL, string $pattern= '.class.php') : array<mixed,string>
stringFolder to inspect
string(Optional, NULL) Namespace to use
string(Optional, .class.php) Suffix to use for filter files
array<mixed,string>List or found files as ( Namespace\ClassName => FilePath )$ALL_CLASSES : array<mixed,string>
array()