Class to find class type tokens
| category | Development |
|---|---|
| package | mpAutoloaderClassMap |
| author | Murat Purc |
__construct(array $options)
arrayAssoziative 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
boolFlag to parse directory recursive
arraynullEither 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
arraynullEither a assoziative array where the key is the class
type token and the value is the path or null.getDebugMessages() : array
arraygetExcludeDirs() : array
arraygetExcludeFiles() : array
arraygetExtensionsToParse() : array
arraygetFormattedDebugMessages(string $delemiter, string $wrap) : string
stringDelemiter between each message
stringString with %s type specifier used to wrap all messages
\cInvalidArgumentException |
if the given wrap does not contain %s |
|---|
stringFormatted stringsetExcludeDirs(array $excludeDirs) : void
array
setExcludeFiles(array $excludeFiles) : void
arrayFeasible 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(string $path) : string
string
string$_debugMessages : array
$_enableDebug : bool
$_excludeDirs : array
$_excludeFiles : array
$_extensionsToParse : array