コード例 #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 getByName($name)
 {
     try {
         $u = new Location_Persist_Dao_CityRegion();
         return $u->getByName($name);
     } catch (Exception $e) {
         throw $e;
     }
 }