Пример #1
0
 /**
  * @return array
  */
 public function AjaxEmailSetSafety()
 {
     $sEmail = (string) $this->getParamValue('Email', '');
     if (0 === strlen(trim($sEmail))) {
         throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\Notifications::InvalidInputParameter);
     }
     $oAccount = $this->getAccountFromParam();
     $this->oApiUsers->SetSafetySender($oAccount->IdUser, $sEmail);
     return $this->DefaultResponse($oAccount, __FUNCTION__, true);
 }