Ejemplo n.º 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 JUDownloadSearchHelper::getDocumentsSearch($searchword, $this->getState(), $search_cat_id);
	}
Ejemplo n.º 2
0
 protected function getListQuery()
 {
     $app = JFactory::getApplication();
     $searchword = trim($app->input->get('searchword', '', 'string'));
     return JUDownloadSearchHelper::getDocumentsSearch($searchword, $this->getState());
 }