protected function getParams()
{
$arrWantedParam = $this->getWantedNames();
$arrMyParams = $arrOtherParams = array();
if ($_GET) {
foreach (array_keys($_GET) as $strParam) {
if (in_array($strParam, $arrWantedParam)) {
$arrMyParams[$strParam] = \Input::get($strParam);
} elseif ($strParam != 'page') {
// Add only to the array if param is not page.
$arrOtherParams[$strParam] = \Input::get($strParam);
}
}
}
// if POST, translate to proper GET url
if ($_POST && \Input::post('FORM_SUBMIT') == $this->formId) {
foreach (array_keys($_POST) as $strParam) {
if (in_array($strParam, $arrWantedParam)) {
$arrMyParams[$strParam] = \Input::post($strParam);
}
}
}
return array('filter' => $arrMyParams, 'other' => $arrOtherParams, 'all' => array_merge($arrOtherParams, $arrMyParams));
}