/** * For initializing members of the class. * * @param array $argarray misc. arguments * * @return boolean true */ function prepare($argarray) { parent::prepare($argarray); $password = $this->trimmed('password'); if (empty($password)) { throw new ClientException(_('No password.')); } $this->password = $password; return true; }
/** * For initializing members of the class. * * @param array $argarray misc. arguments * * @return boolean true */ function prepare($argarray) { try { parent::prepare($argarray); return true; } catch (ClientException $e) { $this->showError($e->getMessage(), $e->getCode()); return false; } catch (Exception $e) { common_log(LOG_ERR, $e->getMessage()); $this->showError(_('An internal error occurred.'), 500); return false; } }
/** * For initializing members of the class. * * @param array $argarray misc. arguments * * @return boolean true */ function prepare($argarray) { parent::prepare($argarray); return true; }