FOF30\Platform\Base\Filesystem::getFiles PHP Метод

getFiles() защищенный статический Метод

Then it organizes them into an associative array.
protected static getFiles ( string $path, array $ignoreFolders = [], array $ignoreFiles = [] ) : array
$path string Folder where we should start looking
$ignoreFolders array Folder ignore list
$ignoreFiles array File ignore list
Результат array Associative array, where the `fullpath` key contains the path to the file, and the `classname` key contains the name of the class
    protected static function getFiles($path, array $ignoreFolders = array(), array $ignoreFiles = array())
    {
        $return = array();
        $files = self::scanDirectory($path, $ignoreFolders, $ignoreFiles);
        // Ok, I got the files, now I have to organize them
        foreach ($files as $file) {
            $clean = str_replace($path, '', $file);
            $clean = trim(str_replace('\\', '/', $clean), '/');
            $parts = explode('/', $clean);
            // If I have less than 3 fragments, it means that the file was inside the generic folder
            // (interface + abstract) so I have to skip it
            if (count($parts) < 3) {
                continue;
            }
            $return[] = array('fullpath' => $file, 'classname' => 'F0FPlatform' . ucfirst($parts[0]) . ucfirst(basename($parts[1], '.php')));
        }
        return $return;
    }