예제 #1
0
 public function updateSeasonTaxHandle(ArrayHash $values)
 {
     $tax = new SeasonTax((array) $values);
     try {
         $tax->setEditor($this->getUser()->getIdentity());
         $this->getSeasonTaxService()->updateSeasonTax($tax);
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataSave($values->id, "this", $ex);
     }
     $this->redirect("default");
 }
예제 #2
0
 private function taxEditorTypeHandle(SeasonTax $t)
 {
     if ($t == null) {
         throw new Exceptions\NullPointerException("Argument SeasonTax cannot be null", 0);
     }
     try {
         $u = $this->getMixId($t->getEditor());
         if ($u !== null) {
             $editor = $this->getUserService()->getUser($u, false);
             $t->setEditor($editor);
         }
     } catch (\Exception $ex) {
         $this->logError($ex->getMessage());
         throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious());
     }
     return $t;
 }