Пример #1
0
 /**
  * Retrieves 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 = CommandResolver::getPluginCommands('search');
     return $commandList;
 }
Пример #2
0
 /**
  * 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 = PluginCommand::REQUIREMENT_NONE;
     $commandList = array();
     if ($this->search->hasSearched()) {
         $requirements = PluginCommand::REQUIREMENT_HAS_SEARCHED;
         if ($this->search->getNumberOfResults() > 0) {
             $requirements += PluginCommand::REQUIREMENT_HAS_RESULTS;
         } else {
             $requirements += PluginCommand::REQUIREMENT_NO_RESULTS;
         }
     }
     $commandList = CommandResolver::getPluginCommands('results', $requirements);
     return $commandList;
 }