예제 #1
0
 /**
  * 
  * @return Location_Model_City
  */
 public function getCity()
 {
     if (is_null($this->city) && !is_null($this->city_id)) {
         $p = new Location_Persist_Dao_City();
         $this->city = $p->get($this->city_id);
     }
     return $this->city;
 }
예제 #2
0
 public function getByName($name)
 {
     try {
         $u = new Location_Persist_Dao_City();
         return $u->getByName($name);
     } catch (Exception $e) {
         throw $e;
     }
 }