Esempio n. 1
0
 private function editorTypeHandle(Comment $a)
 {
     if ($a === null) {
         throw new Exceptions\NullPointerException("Argument Event cannot be null", 0);
     }
     try {
         $editor = null;
         if ($this->getUserService() !== null) {
             $id = $this->getMixId($a->getEditor());
             if ($id !== null) {
                 $editor = $this->getUserService()->getUser($id, false);
             }
         }
         $a->setEditor($editor);
     } catch (\Exception $ex) {
         throw new Exceptions\DataErrorException($ex);
     }
 }