/** * Return the filter values (list form) */ public function getFilterValues() { $filters = array(); if ($this->auth->getParam('mu_id') == '') { $filters['pr_values'] = R3EcoGisHelper::getProvinceList($this->do_id, array('join_with_global_plain' => true)); $filters['mu_values'] = R3EcoGisHelper::getMunicipalityAndMunicipalityCollectionList($this->do_id, null, null, array('join_with_global_plain' => true)); } else { $filters['mu_values'] = array($this->auth->getParam('mu_id') => ''); } if (count($filters['mu_values']) == 1) { $mu_id = key($filters['mu_values']); $filters['fr_values'] = R3EcoGisHelper::getFractionList($this->do_id, $mu_id, array('used_by' => 'building')); $filters['st_values'] = R3EcoGisHelper::getStreetList($this->do_id, $mu_id, array('used_by' => 'building')); } else { $mu_id = null; } $filters['gc_values'] = R3EcoGisHelper::getCategoriesListTreeForFilter($this->do_id, 'global_plain_action'); $filters['gpa_values'] = R3EcoGisHelper::getGlobalplainActionListForFilter($this->do_id, 'global_plain_action'); // global_plain_action_list_data $filters['do_id'] = $this->getFilterValue('do_id'); $filters['pr_id'] = $this->getFilterValue('pr_id'); $filters['mu_id'] = $this->getFilterValue('mu_id'); $filters['mu_name'] = $this->getFilterValue('mu_name'); $filters['gc_id_filter'] = $this->getFilterValue('gc_id_filter'); $filters['gpa_name'] = $this->getFilterValue('gpa_name'); return $filters; }
/** * Return the filter values (list form) */ public function getFilterValues() { $filters = array(); if ($this->auth->getParam('mu_id') == '') { $filters['pr_values'] = R3EcoGisHelper::getProvinceList($this->do_id, array('join_with_building' => true)); $filters['mu_values'] = R3EcoGisHelper::getMunicipalityList($this->do_id, null, null, array('join_with_building' => true)); } else { $filters['mu_values'] = array($this->auth->getParam('mu_id') => ''); } if (count($filters['mu_values']) == 1) { $mu_id = key($filters['mu_values']); $filters['fr_values'] = R3EcoGisHelper::getFractionList($this->do_id, $mu_id, array('used_by' => 'building')); $filters['st_values'] = R3EcoGisHelper::getStreetList($this->do_id, $mu_id, array('used_by' => 'building', 'use_lkp_name' => true)); } else { $mu_id = null; } $filters['bpu_values'] = R3EcoGisHelper::getBuildingPurposeUseList($this->do_id, array('mu_id' => $mu_id, 'used_by' => 'building_data')); $filters['bt_values'] = R3EcoGisHelper::getBuildingTypeList($this->do_id, array('mu_id' => $mu_id, 'used_by' => 'building_data')); $filters['bby_values'] = R3EcogisHelper::getBuildingBuildYearList($this->do_id); $filters['bry_values'] = R3EcogisHelper::getBuildingRestructureYearList($this->do_id); $filters['do_id'] = $this->do_id; $filters['pr_id'] = $this->pr_id; $filters['mu_id'] = $this->mu_id; $filters['mu_name'] = $this->mu_name; $filters['fr_id'] = $this->fr_id; $filters['fr_name'] = $this->fr_name; $filters['st_id'] = $this->st_id; $filters['st_name'] = $this->st_name; $filters['bu_civic'] = $this->bu_civic; $filters['bu_code'] = $this->bu_code; $filters['bu_name'] = $this->bu_name; $filters['bpu_id'] = $this->bpu_id; $filters['bt_id'] = $this->bt_id; $filters['bby_id'] = $this->bby_id; $filters['bry_id'] = $this->bry_id; $filters['bu_to_check'] = $this->bu_to_check; $filters['bu_alternative_simulation'] = $this->bu_alternative_simulation; return $filters; }
/** * Return the filter values (list form) */ public function getFilterValues() { $filters = array(); if ($this->auth->getParam('mu_id') == '') { $filters['pr_values'] = R3EcoGisHelper::getProvinceList($this->do_id, array('join_with_street_lighting' => true)); $filters['mu_values'] = R3EcoGisHelper::getMunicipalityList($this->do_id, null, null, array('join_with_street_lighting' => true)); } else { $filters['mu_values'] = array($this->auth->getParam('mu_id') => ''); } if (count($filters['mu_values']) == 1) { $mu_id = key($filters['mu_values']); $filters['st_values'] = R3EcoGisHelper::getStreetList($this->do_id, $mu_id, array('used_by' => 'street_lighting', 'use_lkp_name' => true)); } else { $mu_id = null; } $filters['do_id'] = $this->auth->getDomainID(); $filters['pr_id'] = $this->pr_id; $filters['mu_id'] = $this->mu_id; $filters['mu_name'] = $this->mu_name; $filters['st_id'] = $this->st_id; $filters['st_name'] = $this->st_name; $filters['sl_full_name'] = $this->sl_full_name; $filters['sl_to_check'] = $this->sl_to_check; return $filters; }
/** * Return the filter values (list form) */ public function getFilterValues() { $filters = array(); if ($this->auth->getParam('mu_id') == '') { $filters['pr_values'] = R3EcoGisHelper::getProvinceList($this->do_id, array('join_with_global_strategy' => true)); $filters['mu_values'] = R3EcoGisHelper::getMunicipalityAndMunicipalityCollectionList($this->do_id, null, null, array('join_with_global_strategy' => true)); } else { $filters['mu_values'] = array($this->auth->getParam('mu_id') => ''); } if (count($filters['mu_values']) == 1) { $mu_id = key($filters['mu_values']); $filters['fr_values'] = R3EcoGisHelper::getFractionList($this->do_id, $mu_id, array('used_by' => 'building')); $filters['st_values'] = R3EcoGisHelper::getStreetList($this->do_id, $mu_id, array('used_by' => 'building')); } else { $mu_id = null; } $filters['do_id'] = $this->do_id; $filters['pr_id'] = $this->pr_id; $filters['mu_id'] = $this->mu_id; $filters['mu_name'] = $this->mu_name; $filters['gst_name'] = $this->gst_name; return $filters; }
/** * Return the filter values (list form) */ public function getFilterValues() { $filters = array(); $filters = array(); if ($this->auth->getParam('mu_id') == '') { $filters['pr_values'] = R3EcoGisHelper::getProvinceList($this->do_id, array('join_with_simulation' => true)); $filters['mu_values'] = R3EcoGisHelper::getMunicipalityAndMunicipalityCollectionList($this->do_id, null, null, array('join_with_simulation' => true)); } else { $filters['mu_values'] = array($this->auth->getParam('mu_id') => ''); } if (count($filters['mu_values']) == 1) { $mu_id = key($filters['mu_values']); $filters['fr_values'] = R3EcoGisHelper::getFractionList($this->do_id, $mu_id, array('used_by' => 'building')); $filters['st_values'] = R3EcoGisHelper::getStreetList($this->do_id, $mu_id, array('used_by' => 'building')); } else { $mu_id = null; } $filters['do_id'] = $this->do_id; $filters['pr_id'] = $this->pr_id; $filters['mu_id'] = $this->mu_id; $filters['mu_name'] = $this->mu_name; $filters['sw_title'] = $this->sw_title; $filters['sw_date_from'] = SQLDateToStr($this->sw_date_from, R3Locale::getPhpDateFormat()); $filters['sw_date_to'] = SQLDateToStr($this->sw_date_to, R3Locale::getPhpDateFormat()); return $filters; }