コード例 #1
0
ファイル: Cities.php プロジェクト: BGCX262/zupal-svn-to-git
 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
ファイル: Places.php プロジェクト: BGCX262/zupal-svn-to-git
 /**
  *\
  * @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;
 }