src/Authorization/AuthDbMiddleware.php
public function getProfiles(){
        if($this->loadProfiles != 'ALL'){
            $this->connection->select('name');
            $this->connection->from($this->tableProfile);
            $profiles= $this->connection->get()->fetchAll(\PDO::FETCH_ASSOC);
            foreach ($profiles as $profile) {
                $this->getProfile($profile['name']);
            }
            $this->loadModules= 'ALL';
        }
        return $this->profiles;
    }
public function getProfiles(){
        if($this->loadProfiles != 'ALL'){
            $this->connection->select('name');
            $this->connection->from($this->tableProfile);
            $profiles= $this->connection->get()->fetchAll(\PDO::FETCH_ASSOC);
            foreach ($profiles as $profile) {
                $this->getProfile($profile['name']);
            }
            $this->loadModules= 'ALL';
        }
        return $this->profiles;
    }
public function getProfiles ( ) { if ( $ this -> loadProfiles != 'ALL' ) { $ this -> connection -> select ( 'name' ) ; $ this -> connection -> from ( $ this -> tableProfile ) ; $ profiles = $ this -> connection -> get ( ) -> fetchAll ( \ PDO :: FETCH_ASSOC ) ; foreach ( $ profiles as $ profile ) { $ this -> getProfile ( $ profile [ 'name' ] ) ; } $ this -> loadModules = 'ALL' ; } return $ this -> profiles ; }
Retorna todos los profiles de la aplicacion
@return array
Retorna todos los profiles de la aplicacion