private function scanModuleFolders($basedir, &$folders)
    {
        if (is_dir($basedir) && ($h = opendir($basedir))) {
            while (($folder = readdir($h))) {
                if ($folder !== '.' && $folder !== '..') {
                    $this->scanModuleFiles($basedir . DIRECTORY_SEPARATOR . $folder, $folders);
                }
            }
            closedir($h);
        }
    }
private function scanModuleFolders($basedir, &$folders)
    {
        if (is_dir($basedir) && ($h = opendir($basedir))) {
            while (($folder = readdir($h))) {
                if ($folder !== '.' && $folder !== '..') {
                    $this->scanModuleFiles($basedir . DIRECTORY_SEPARATOR . $folder, $folders);
                }
            }
            closedir($h);
        }
    }
private function scanModuleFolders ( $ basedir , & $ folders ) { if ( is_dir ( $ basedir ) && ( $ h = opendir ( $ basedir ) ) ) { while ( ( $ folder = readdir ( $ h ) ) ) { if ( $ folder !== '.' && $ folder !== '..' ) { $ this -> scanModuleFiles ( $ basedir . DIRECTORY_SEPARATOR . $ folder , $ folders ) ; } } closedir ( $ h ) ; } }
Scan module folders to prepare init mechanism.
@param string $basedir Base directory to looking for module folders.
@param array &$folders Array passed by reference to be filled with modules found.
Scan module folders to prepare init mechanism .