saveAccountManagement() private method

private saveAccountManagement ( ) : Illuminate\Http\RedirectResponse
return Illuminate\Http\RedirectResponse
コード例 #1
0
 /**
  * @param $section
  * @return \Illuminate\Http\RedirectResponse
  */
 public function doSection($section)
 {
     if ($section === ACCOUNT_LOCALIZATION) {
         return AccountController::saveLocalization();
     } elseif ($section == ACCOUNT_PAYMENTS) {
         return self::saveOnlinePayments();
     } elseif ($section === ACCOUNT_NOTIFICATIONS) {
         return AccountController::saveNotifications();
     } elseif ($section === ACCOUNT_EXPORT) {
         return AccountController::export();
     } elseif ($section === ACCOUNT_INVOICE_SETTINGS) {
         return AccountController::saveInvoiceSettings();
     } elseif ($section === ACCOUNT_EMAIL_SETTINGS) {
         return AccountController::saveEmailSettings();
     } elseif ($section === ACCOUNT_INVOICE_DESIGN) {
         return AccountController::saveInvoiceDesign();
     } elseif ($section === ACCOUNT_CUSTOMIZE_DESIGN) {
         return AccountController::saveCustomizeDesign();
     } elseif ($section === ACCOUNT_CLIENT_PORTAL) {
         return AccountController::saveClientPortal();
     } elseif ($section === ACCOUNT_TEMPLATES_AND_REMINDERS) {
         return AccountController::saveEmailTemplates();
     } elseif ($section === ACCOUNT_PRODUCTS) {
         return AccountController::saveProducts();
     } elseif ($section === ACCOUNT_TAX_RATES) {
         return AccountController::saveTaxRates();
     } elseif ($section === ACCOUNT_PAYMENT_TERMS) {
         return AccountController::savePaymetTerms();
     } elseif ($section === ACCOUNT_MANAGEMENT) {
         return AccountController::saveAccountManagement();
     }
 }