public function getPageVars() { $hasReductionOrPruduction = count(R3EcoGisHelper::getGlobalPlainGaugeTypeList($_SESSION['do_id'], $this->gpr_id)) > 0; return array('hasReductionOrPruduction' => $hasReductionOrPruduction, 'gpr_id' => $this->gpr_id, 'tab_mode' => $this->tab_mode, 'parent_act' => $this->parent_act, 'date_format' => R3Locale::getJQueryDateFormat()); }