public function getModelClasses()
    {
        $models = [];

        $modelFiles = $this->getModelFiles();

        if (empty($modelFiles)) {
            return false;
        }

        foreach ($this->getModelFiles() as $appName => $files) {
            foreach ($files as $file) {
                $className = ClassHelper::getClassFromFile($file);

                if (!class_exists($className)) {
                    throw new ClassNotFoundException(
                        sprintf('The class [ %s ] could not be located', $className)
                    );
                }
                $models[$appName][] = $className;
            }
        }

        return $models;
    }
public function getModelClasses()
    {
        $models = [];

        $modelFiles = $this->getModelFiles();

        if (empty($modelFiles)) {
            return false;
        }

        foreach ($this->getModelFiles() as $appName => $files) {
            foreach ($files as $file) {
                $className = ClassHelper::getClassFromFile($file);

                if (!class_exists($className)) {
                    throw new ClassNotFoundException(
                        sprintf('The class [ %s ] could not be located', $className)
                    );
                }
                $models[$appName][] = $className;
            }
        }

        return $models;
    }
public function getModelClasses ( ) { $ models = [ ] ; $ modelFiles = $ this -> getModelFiles ( ) ; if ( empty ( $ modelFiles ) ) { return false ; } foreach ( $ this -> getModelFiles ( ) as $ appName => $ files ) { foreach ( $ files as $ file ) { $ className = ClassHelper :: getClassFromFile ( $ file ) ; if ( ! class_exists ( $ className ) ) { throw new ClassNotFoundException ( sprintf ( 'The class [ %s ] could not be located' , $ className ) ) ; } $ models [ $ appName ] [ ] = $ className ; } } return $ models ; }
Returns a list of all model names in lowercase or false if not models were found.

@return array|bool

@throws ClassNotFoundException

@since  1.1.0

@author Eddilbert Macharia (http://eddmash.com) <edd.cowan@gmail.com>
Returns a list of all model names in lowercase or false if not models were found .