PHP Class M1\Vars\Loader\DirectoryLoader

Since: 0.1.1
Inheritance: extends AbstractLoader
Show file Open project: m1/Vars Class Usage Examples

Public Methods

Method Description
__construct ( string $entity, boolean $recursive ) Construct the loader with the passed entity
load ( )

Private Methods

Method Description
createRegexIterator ( FilesystemIterator | RecursiveIteratorIterator $files ) : RegexIterator Returns the supported files in the directory
getSupportedFiles ( ) : RegexIterator Returns the supported files in the directory
getSupportedFilesRecursively ( ) : RegexIterator Returns the supported files in the directory recursively
makeResources ( array $paths ) : array | boolean Makes usable resource paths from path strings

Method Details

__construct() public method

Construct the loader with the passed entity
public __construct ( string $entity, boolean $recursive )
$entity string The passed entity
$recursive boolean Search the directories recursively

load() public method

public load ( )