function process() { // HTML area coords $this->HTMLAreaLocation = array('amn' => "255,38,234,81,166,151,94,208,54,189,34,86,2,101,17,28,219,17,253,35", 'ams' => "124,187,90,215,138,353,163,351,158,319,215,244,140,207,147,197,121,189", 'eur' => "306,69,315,117,342,160,341,165,283,172,281,163,243,169,244,113,226,99,226,88,237,88,252,103,306,70,306,69", 'afr' => "238,174,286,163,325,174,343,212,367,210,350,285,297,302,280,275,277,242,269,227,240,229,225,200,245,171", 'oce' => "458,278,501,253,517,256,520,229,558,256,572,317,567,342,549,354,459,303,459,277", 'asi' => "301,66,308,116,347,157,327,171,342,210,377,198,411,229,423,208,447,252,480,259,518,252,518,236,481,221,493,181,515,161,511,117,529,119,559,20,388,31,302,64"); $this->tpl->assign('url_continent', $this->request->getUrl()); if ($continentAsked = $this->request->getContinentZoom()) { $this->tpl->assign("map", 'continent'); $this->tpl->assign('continent_asked', $continentAsked); $sumContinent = $this->getDataMethod(array("continentcountries" => array())); } else { $this->tpl->assign('map', 'world'); $this->tpl->assign('html_area_location', $this->HTMLAreaLocation); $sumContinent = $this->getDataMethod(array("continentcountries" => array())); } //assign('dir_img_countries_flags', DIR_IMG_COUNTRIES_FLAGS); $this->tpl->assign('path_maps', DIR_IMG_MAPS); $o_mod = new ViewDataArray($this->data); $o_mod->init($this->request); //, $this->tpl); $a_dataToLoad = array("countries" => "sourcecountries", "countriesinterest" => "sourcecountriesinterest", "providers" => "sourceproviders", "continentcountries" => "sourcecontinentcountries"); foreach ($a_dataToLoad as $key => $value) { $this->tpl->assign($key, $o_mod->showAll($value, true, true)); } $this->request->setModuleName('view_source'); $methodsToLoad = array("countriesdistinct" => array()); $this->getDataMethod($methodsToLoad); }
function process() { $o_mod = new ViewDataArray(null); $o_mod->init($this->request); //, $this->tpl); $a_dataToLoad = array('config' => 'settingsconfig', 'os' => 'settingsos', 'osinterest' => 'settingsosinterest', 'browserstype' => 'settingsbrowserstype', 'browsers' => 'settingsbrowsers', 'browsersinterest' => 'settingsbrowsersinterest', 'plugins' => 'settingsplugins', 'resolutions' => 'settingsresolutions', 'resolutionsinterest' => 'settingsresolutionsinterest', 'normalwidescreen' => 'settingsnormalwidescreen'); foreach ($a_dataToLoad as $key => $value) { $this->tpl->assign($key, $o_mod->showAll($value, true, true)); } $ctrl =& ApplicationController::getInstance(); $o_request =& $ctrl->getRequest(); $o_request->setModuleName('view_settings'); }
/** * Data processing method * only called if template is not cached */ function process() { $a_dataToLoad = array('searchengines' => 'refererssearchengines', 'searchenginesinterest' => 'refererssearchenginesinterest', 'keywords' => 'refererskeywords', 'keywordsinterest' => 'refererskeywordsinterest', 'sites' => 'refererssites', 'sitesinterest' => 'refererssitesinterest', 'partners' => 'refererspartners', 'partnersinterest' => 'refererspartnersinterest', 'newsletters' => 'referersnewsletters', 'newslettersinterest' => 'referersnewslettersinterest', 'typeinterest' => 'refererstypeinterest'); $o_mod = new ViewDataArray(null); $o_mod->init($this->request); //, $this->tpl); foreach ($a_dataToLoad as $key => $value) { //printTime('before'.$key, true); $this->tpl->assign($key, $o_mod->showAll($value, true, true)); } $this->request->setModuleName('view_referers'); $methodsToLoad = array("numbers" => array()); $this->getDataMethod($methodsToLoad); }