예제 #1
0
 /**
  * 
  * @return Location_Model_CityRegion
  */
 public function getParent()
 {
     if (is_null($this->parent) && (!is_null($this->parent_id) && !empty($this->parent_id))) {
         $p = new Location_Persist_Dao_CityRegion();
         $this->parent = $p->get($this->parent_id);
     }
     return $this->parent;
 }
예제 #2
0
 public function getById($id)
 {
     try {
         $u = new Location_Persist_Dao_CityRegion();
         return $u->get($id);
     } catch (Exception $e) {
         throw $e;
     }
 }