private function getCityDistricts($view, $object) { $locationID = $object->getSettlementID(); if ($locationID != NULL) { $list1 = new RealEstateAgency_Object_SettlementPartList(); $list1->setGlobalData($this->getGlobalData()); $list1->setSettlementId($locationID); $list1->loadBy(); $list2 = $list1->getArray(); $list3 = NULL; if (count($list2)) { $list3 = array_merge(array(0 => array('id' => 0, 'name' => '...')), $list2); } $view->list_of_city_districts = $list3; } }
private function secondPage($view) { $view->viewmode = 'secondpage'; if ($this->location_id != NULL) { $view->location_id = $this->location_id; } if ($this->location_text != NULL) { $view->location_text = $this->location_text; } if ($this->location_id != NULL) { $list1 = new RealEstateAgency_Object_SettlementPartList(); $list1->setGlobalData($this->getGlobalData()); $list1->setSettlementId($this->location_id); $list1->loadBy(); $list2 = $list1->getArray(); $list3 = NULL; if (count($list2)) { $list3 = array_merge(array(0 => array('id' => 0, 'name' => '...')), $list2); } $view->list_of_city_districts = $list3; } }