/** * Регистрация. Начало. * * @param array $aParams массив входящих данных * @return array $aResult ответ */ protected function x____users_signup($aParams = array()) { $this->_validDevice($aParams); require_once ABS_PATH . '/classes/registration.php'; $registration = new registration(); if (!$registration->actionRegistrationMobile($aParams)) { $this->_setLoginError($registration); $this->_setEmailError($registration); $this->_setPasswordError($registration); $this->_setPhoneError($registration); $this->_setRoleError($registration); if (!empty($registration->error['actionSendSms'])) { $this->error(EXTERNAL_ERR_SEND_SMS); } $this->error(EXTERNAL_ERR_SERVER_ERROR); // неизвестная ошибка } return array(); }