delVar('q');
$elements = $uri->getQuery(true);
// Create hidden input elements for each part of the URI.
// Add the current menu id if it doesn't have one
foreach ($elements as $n => $v)
{
if ($n == 'Itemid')
{
continue;
}
$fields .= '';
}
/*
* Figure out the Itemid value
* First, check if the param is set. If not, fall back to the Itemid from the JInput object
*/
$Itemid = $paramItem > 0 ? $paramItem : JFactory::getApplication()->input->getInt('Itemid');
$fields .= '';
return $fields;
}
/**
* Get Smart Search query object.
*
* @param JRegistry $params Module parameters.
*
* @return FinderIndexerQuery object
*
* @since 2.5
*/
public static function getQuery($params)
{
$app = JFactory::getApplication();
$input = $app->input;
$request = $input->request;
$filter = JFilterInput::getInstance();
// Get the static taxonomy filters.
$options = array();
$options['filter'] = ($request->get('f', 0, 'int') != 0) ? $request->get('f', '', 'int') : $params->get('searchfilter');
$options['filter'] = $filter->clean($options['filter'], 'int');
// Get the dynamic taxonomy filters.
$options['filters'] = $request->get('t', '', 'array');
$options['filters'] = $filter->clean($options['filters'], 'array');
JArrayHelper::toInteger($options['filters']);
// Instantiate a query object.
$query = new FinderIndexerQuery($options);
return $query;
}
}