Example #1
0
 public function submit()
 {
     if ($this->validate()) {
         JobApply::setStep(2);
         JobApply::setForm2($this->attributes);
         return true;
     }
     return false;
 }
Example #2
0
 public function submit()
 {
     if ($this->validate()) {
         if ($this->homePhoneAreaCode == self::DEFAULT_HOME_PHONE_AREA_CODE) {
             $this->homePhoneAreaCode = '';
         }
         if ($this->homePhoneNumber == self::DEFAULT_HOME_PHONE_NUMBER) {
             $this->homePhoneNumber = '';
         }
         JobApply::setJobId($this->jobId);
         JobApply::setStep(1);
         JobApply::setForm1($this->attributes);
         return true;
     }
     return false;
 }