__construct()
findInDir()
findInFile()
getDebugMessages()
getExcludeDirs()
getExcludeFiles()
getExtensionsToParse()
getFormattedDebugMessages()
setExcludeDirs()
setExcludeFiles()
setExtensionsToParse()
_debug()
_getDirIterator()
_isDirToExclude()
_isFileToExclude()
_isFileToParse()
_isFileToProccess()
_normalizePathSeparator()
$_debugMessages
$_enableDebug
$_excludeDirs
$_excludeFiles
$_extensionsToParse
Class to find class type tokens
category | Development |
---|---|
package | mpAutoloaderClassMap |
author | Murat Purc |
__construct(array $options)
array
Assoziative options array as follows: - excludeDirs: (array) List of directories to exclude, optional. Default values are '.svn' and '.cvs'. - excludeFiles: (array) List of files to exclude, optional. Default values are '/^~..php$/' and '/^~..inc$/'. - extensionsToParse: (array) List of file extensions to parse, optional. Default values are '.php' and '.inc'. - enableDebug: (bool) Flag to enable debugging, optional. Default value is false.
findInDir(SplFileInfo $fileInfo, bool $recursive) : array | null
\SplFileInfo
bool
Flag to parse directory recursive
array
null
Either a assoziative array where the key is the class type token and the value is the path or null.findInFile(SplFileInfo $fileInfo) : array | null
\SplFileInfo
array
null
Either a assoziative array where the key is the class type token and the value is the path or null.getDebugMessages() : array
array
getExcludeDirs() : array
array
getExcludeFiles() : array
array
getExtensionsToParse() : array
array
getFormattedDebugMessages(string $delemiter, string $wrap) : string
string
Delemiter between each message
string
String with %s type specifier used to wrap all messages
string
Formatted stringsetExcludeDirs(array $excludeDirs) : void
array
setExcludeFiles(array $excludeFiles) : void
array
Feasible values are - temp.php (single file name) - ~.php (with * wildcard) Will be replaced against regex '/^~..php$/'
setExtensionsToParse(array $extensionsToParse) : void
array
_debug(string $msg) : void
string
_getDirIterator(SplFileInfo $fileInfo, bool $recursive) : \RecursiveIteratorIterator | \DirectoryIterator
_isDirToExclude(SplFileInfo $file) : bool
_isFileToExclude(SplFileInfo $file) : bool
_isFileToParse(SplFileInfo $file) : bool
_isFileToProccess(SplFileInfo $file) : bool
_normalizePathSeparator($path) : string
string
string
$_debugMessages : array
$_enableDebug : bool
$_excludeDirs : array
$_excludeFiles : array
$_extensionsToParse : array