Exemple #1
0
 public function save()
 {
     $file = null;
     if ($this->hasElement("company_logo")) {
         $file = $this->getElement("company_logo");
     }
     $valueList = $this->getValues();
     parent::save();
     $this->_saveAdditionalFields($valueList);
     $this->_additionalFields();
     $baseDir = Wpjb_Project::getInstance()->getProjectBaseDir();
     if ($file && $file->fileSent()) {
         $file->setDestination($baseDir . "/environment/images/");
         $file->upload("job_" . $this->getObject()->getId() . "." . $file->getExt());
     }
     apply_filters("wpja_form_save_addjob", $this);
     $this->reinit();
 }
Exemple #2
0
 public function save()
 {
     $valueList = $this->getValues();
     parent::save();
     $this->_saveAdditionalFields($valueList);
     apply_filters("wpjb_form_save_addjob", $this);
 }