SALT main class
package | salt |
---|
addClassFolder(string $folder, string $namespace= NULL
, string $pattern= '.class.php'
)
string
root 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
string
Origin path
string
Destination 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 |
---|
string
Relative path for go to $dest from $from. Return always ends with /, except if emptyconfig()
loadClass(string $className)
string
Class 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
string
Relative path between executed PHP script and method callersaltPath() : string
string
absolute SALT pathwebRelativePath(integer $destIgnoreLevel = 0
) : string
integer
(Optionnel, 0) Ignore some folders at the end of the method caller
string
Relative path between requested URI and method caller (usefull for URI rewrite)findAllClasses(string $folder, string $namespace= NULL
, string $pattern= '.class.php'
) : array<mixed,string>
string
Folder 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()