Example #1
0
 public function canSearch()
 {
     if ($this->getOption('playlist')) {
         return false;
     }
     return parent::canSearch();
 }
 public function canSearch()
 {
     if ($this->getOption('playlist')) {
         //when declaring a playlist search, set max results to 50, to be filtered through on our end.
         //temporary fix determined by staff
         $this->addFilter('max-results', $this->DEFAULT_PLAYLIST_SEARCH_RESULTS_LIMIT);
         return false;
     }
     return parent::canSearch();
 }