lib/gii/cascadeTypeModule/Generator.php
public function getModelMap()
    {
        $m = [];
        $search = [];
        foreach ($this->searchModels as $path => $namespace) {
            $files = FileHelper::findFiles(Yii::getAlias($path), ['only' => ['.php']]);
            foreach ($files as $file) {
                $baseName = strstr(basename($file), '.php', true);
                $className = $namespace . '\\' . $baseName;
                if (class_exists($className)) {
                    $reflector = new \ReflectionClass($className);
                    if ($reflector->isSubclassOf('yii\base\Model')) {
                        $m[$baseName] = $className;
                    }
                }
            }
        }

        return $m;
    }
public function getModelMap()
    {
        $m = [];
        $search = [];
        foreach ($this->searchModels as $path => $namespace) {
            $files = FileHelper::findFiles(Yii::getAlias($path), ['only' => ['.php']]);
            foreach ($files as $file) {
                $baseName = strstr(basename($file), '.php', true);
                $className = $namespace . '\\' . $baseName;
                if (class_exists($className)) {
                    $reflector = new \ReflectionClass($className);
                    if ($reflector->isSubclassOf('yii\base\Model')) {
                        $m[$baseName] = $className;
                    }
                }
            }
        }

        return $m;
    }
public function getModelMap ( ) { $ m = [ ] ; $ search = [ ] ; foreach ( $ this -> searchModels as $ path => $ namespace ) { $ files = FileHelper :: findFiles ( Yii :: getAlias ( $ path ) , [ 'only' => [ '.php' ] ] ) ; foreach ( $ files as $ file ) { $ baseName = strstr ( basename ( $ file ) , '.php' , true ) ; $ className = $ namespace . '\\' . $ baseName ; if ( class_exists ( $ className ) ) { $ reflector = new \ ReflectionClass ( $ className ) ; if ( $ reflector -> isSubclassOf ( 'yii\base\Model' ) ) { $ m [ $ baseName ] = $ className ; } } } } return $ m ; }
Get model map.

@return [[@doctodo return_type:getModelMap]] [[@doctodo return_description:getModelMap]]
Get model map .