Пример #1
0
 protected function getListQuery()
 {
     $app = JFactory::getApplication();
     $searchword = $app->input->getString('searchword', '');
     $cat_id = $app->input->getInt('cat_id', 0);
     $sub_cat = $app->input->getInt('sub_cat', 0);
     $search_cat_id = null;
     if ($sub_cat) {
         $search_cat_id = $this->getCatIdTree($cat_id);
     } else {
         $search_cat_id = $cat_id;
     }
     return JUDirectorySearchHelper::getListingsSearch($searchword, $this->getState(), $search_cat_id);
 }
Пример #2
0
 protected function getListQuery()
 {
     $app = JFactory::getApplication();
     $searchword = trim($app->input->get('searchword', '', 'string'));
     return JUDirectorySearchHelper::getListingsSearch($searchword, $this->getState());
 }