예제 #1
0
 private function paymentEditorTypeHandle(Payment $p)
 {
     if ($p === NULL) {
         throw new Exceptions\NullPointerException("Argument Payment was null.", 0);
     }
     try {
         $rId = $this->getMixId($p->getEditor());
         if ($this->getUsersService() !== null && $rId !== null) {
             $editor = $this->getUsersService()->getUser($rId, false);
             $p->setEditor($editor);
         }
     } catch (\Exception $ex) {
         $this->logError($ex->getMessage());
         throw new Exceptions\DataErrorException($ex->getMessage(), $ex->getCode(), $ex->getPrevious());
     }
     return $p;
 }