protected function getTabsFileManager()
    {
        $commands = $this->command->getAllowed($this->data_file);

        if (!empty($this->data_selected) && $this->isQuery('selected')) {
            $commands[$this->data_command['command_id']] = $this->data_command;
        }

        $tabs = array();
        foreach ($commands as $command_id => $command) {

            if (!isset($command['tab']) || !$this->access("module_file_manager_$command_id")) {
                continue;
            }

            $tabs[$command['tab']] = array(
                'text' => $this->text($command['tab']),
                'url' => $this->url('', array('path' => $this->data_path, 'cmd' => $command_id)),
            );
        }

        return $tabs;
    }