예제 #1
0
 /**
  * @param CHelpdeskUser $oHelpdeskUser
  * @return bool
  */
 public function UpdateUser(CHelpdeskUser $oHelpdeskUser)
 {
     $bResult = false;
     try {
         if ($oHelpdeskUser->Validate()) {
             $bResult = $this->oStorage->UpdateUser($oHelpdeskUser);
             if (!$bResult) {
                 $this->moveStorageExceptionToManager();
                 throw new CApiManagerException(Errs::HelpdeskManager_UserUpdateFailed);
             }
         }
     } catch (CApiBaseException $oException) {
         $bResult = false;
         $this->setLastException($oException);
     }
     return $bResult;
 }