Source for file helper.php
Documentation is available at helper.php
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Method to get hidden input fields for a get form so that control variables
* are not lost upon form submission.
* @param string $route The route to the page. [optional]
* @param integer $paramItem The menu item ID. (@since 3.1) [optional]
* @return string A string of hidden input form fields
public static function getGetFields($route =
null, $paramItem =
0)
$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)
$fields .=
'<input type="hidden" name="' .
$n .
'" value="' .
$v .
'" />';
* Figure out the Itemid value
* First, check if the param is set. If not, fall back to the Itemid from the JInput object
$fields .=
'<input type="hidden" name="Itemid" value="' .
$Itemid .
'" />';
* Get Smart Search query object.
* @param JRegistry $params Module parameters.
* @return FinderIndexerQuery object
public static function getQuery($params)
$request =
$input->request;
// Get the static taxonomy filters.
$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');
// Instantiate a query object.
Documentation generated on Tue, 19 Nov 2013 15:04:16 +0100 by phpDocumentor 1.4.3