Esempio n. 1
0
 /**
  * @return array
  */
 public function AjaxEmailSetSafety()
 {
     $sEmail = (string) $this->getParamValue('Email', '');
     if (0 === strlen(trim($sEmail))) {
         throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\Notifications::InvalidInputParameter);
     }
     $oAccount = $this->getAccountFromParam();
     $this->oApiUsers->setSafetySender($oAccount->IdUser, $sEmail);
     return $this->DefaultResponse($oAccount, __FUNCTION__, true);
 }