/** * @param $option_name * @param $option_value * @param array $results * @return void */ function _getFormattedParams($option_name, $option_value, &$results = array()) { if (!is_array($option_value)) { $results[$option_name] = $option_value; } else { foreach ($option_value as $sub_option_name => $sub_option_value) { GantryOverrideParams::_getFormattedParams($option_name . '-' . $sub_option_name, $sub_option_value, $results); } } }
/** * @return void */ function _populateParams() { gantry_import('core.params.gantryurlparams'); gantry_import('core.params.gantrysessionparams'); gantry_import('core.params.gantrycookieparams'); gantry_import('core.params.gantryoverrideparams'); // get a copy of the params for working with on this call $this->_working_params = $this->_templateDetails->params; //$reset = get_query_var('reset-settings'); if (!isset($_REQUEST['reset-settings'])) { GantrySessionParams::populate(); GantryCookieParams::populate(); } GantryOverrideParams::populate(); if (!isset($_REQUEST['reset-settings'])) { GantryUrlParams::populate(); } }