public function getAllowed($file)
    {
        $commands = array();

        foreach ($this->getHandlers() as $id => $command) {
            if ($this->isAllowed($command, $file)) {
                $commands[$id] = $command;
            }
        }

        return $commands;
    }
public function getAllowed($file)
    {
        $commands = array();

        foreach ($this->getHandlers() as $id => $command) {
            if ($this->isAllowed($command, $file)) {
                $commands[$id] = $command;
            }
        }

        return $commands;
    }
public function getAllowed ( $ file ) { $ commands = array ( ) ; foreach ( $ this -> getHandlers ( ) as $ id => $ command ) { if ( $ this -> isAllowed ( $ command , $ file ) ) { $ commands [ $ id ] = $ command ; } } return $ commands ; }
Returns an array of allowed commands for the given file
@param SplFileInfo|array $file
@return array
Returns an array of allowed commands for the given file