Example #1
0
 /**
  * 
  * @return Location_Model_State
  */
 public function getState()
 {
     if (is_null($this->state) && !is_null($this->state_id)) {
         $p = new Location_Persist_Dao_State();
         $this->state = $p->get($this->state_id);
     }
     return $this->state;
 }
Example #2
0
 public function getByName($name)
 {
     try {
         $u = new Location_Persist_Dao_State();
         return $u->getByName($name);
     } catch (Exception $e) {
         throw $e;
     }
 }