/**
  * Retrieves the list of commands to process for the results view.
  *
  * @return	array	An array of command names to process for the result view
  */
 protected function getCommandList()
 {
     $requirements = tx_solr_PluginCommand::REQUIREMENT_NONE;
     $commandList = array();
     if ($this->search->hasSearched()) {
         $requirements = tx_solr_PluginCommand::REQUIREMENT_HAS_SEARCHED;
         if ($this->search->getNumberOfResults() > 0) {
             $requirements += tx_solr_PluginCommand::REQUIREMENT_HAS_RESULTS;
         } else {
             $requirements += tx_solr_PluginCommand::REQUIREMENT_NO_RESULTS;
         }
     }
     $commandList = tx_solr_CommandResolver::getPluginCommands('results', $requirements);
     return $commandList;
 }
 /**
  * Retrievs the list of commands we have to process for the results view
  *
  * @return	array	Array of command names to process for the result view
  */
 protected function getCommandList()
 {
     $commandList = tx_solr_CommandResolver::getPluginCommands('search');
     return $commandList;
 }