src/Authorization/AuthDbMiddleware.php
public function getModules(){
        if($this->loadModules != 'ALL'){
            $this->connection->select('name');
            $this->connection->from($this->tableModule);
            $modules= $this->connection->get()->fetchAll(\PDO::FETCH_ASSOC);
            foreach ($modules as $module) {
                $this->getModule($module['name']);
            }
            $this->loadModules= 'ALL';
        }
        return $this->modules;
    }
public function getModules(){
        if($this->loadModules != 'ALL'){
            $this->connection->select('name');
            $this->connection->from($this->tableModule);
            $modules= $this->connection->get()->fetchAll(\PDO::FETCH_ASSOC);
            foreach ($modules as $module) {
                $this->getModule($module['name']);
            }
            $this->loadModules= 'ALL';
        }
        return $this->modules;
    }
public function getModules ( ) { if ( $ this -> loadModules != 'ALL' ) { $ this -> connection -> select ( 'name' ) ; $ this -> connection -> from ( $ this -> tableModule ) ; $ modules = $ this -> connection -> get ( ) -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; foreach ( $ modules as $ module ) { $ this -> getModule ( $ module [ 'name' ] ) ; } $ this -> loadModules = 'ALL' ; } return $ this -> modules ; }
Retorna todos los modulos de la aplicacion
@return array
Retorna todos los modulos de la aplicacion