예제 #1
0
 public function set_state($pValue)
 {
     $state = Zupal_Places_States::getInstance()->get_state($pValue);
     if ($state) {
         $this->state = $state->identity();
     } else {
         $this->state = 0;
     }
 }
예제 #2
0
 /**
  *\
  * @return void;
  */
 public function update_state()
 {
     if (!$this->state) {
         return new Zupal_Places_Cities(Zupal_Domain_Abstract::STUB);
     }
     $state = Zupal_Places_States::getInstance()->get_state($this->state, $this->country_id, TRUE);
     $this->state_id = $state->identity();
     return $state;
 }