public function doSection($section = ACCOUNT_DETAILS, $subSection = false) { if ($section == ACCOUNT_DETAILS) { return AccountController::saveDetails(); } else { if ($section == ACCOUNT_IMPORT_EXPORT) { return AccountController::importFile(); } else { if ($section == ACCOUNT_MAP) { return AccountController::mapFile(); } else { if ($section == ACCOUNT_NOTIFICATIONS) { return AccountController::saveNotifications(); } else { if ($section == ACCOUNT_EXPORT) { return AccountController::export(); } else { if ($section == ACCOUNT_ADVANCED_SETTINGS) { if ($subSection == ACCOUNT_CUSTOM_FIELDS) { return AccountController::saveCustomFields(); } else { if ($subSection == ACCOUNT_INVOICE_DESIGN) { return AccountController::saveInvoiceDesign(); } } } else { if ($section == ACCOUNT_PRODUCTS) { return AccountController::saveProducts(); } } } } } } } }