function clean()
 {
     global $gantry;
     if (array_key_exists('cookie_time', $gantry->_working_params)) {
         $cookie_time = time() + (int) $gantry->_working_params['cookie_time']['value'];
     }
     foreach ($this->_setincookie as $cookie_var) {
         setcookie($gantry->template_prefix . $gantry->_base_params_checksum . "-" . $cookie_var, "", $cookie_time, '/', false);
     }
     GantryCookieParams::_flushOldCookies();
 }
Exemple #2
0
 /**
  * @return void
  */
 function _populateParams()
 {
     gantry_import('core.params.gantryurlparams');
     gantry_import('core.params.gantrysessionparams');
     gantry_import('core.params.gantrycookieparams');
     gantry_import('core.params.gantrymenuitemparams');
     // get a copy of the params for working with on this call
     $this->_working_params = $this->_templateDetails->params;
     if (!isset($_REQUEST['reset-settings'])) {
         GantrySessionParams::populate();
         GantryCookieParams::populate();
     }
     GantryMenuItemParams::populate();
     if (!isset($_REQUEST['reset-settings'])) {
         GantryUrlParams::populate();
     }
 }