🏨 Hotel Booking Enhancements: - Implemented Eagle Booking Advanced Pricing add-on - Added Booking.com-style rate management system - Created professional calendar interface for pricing - Integrated deals and discounts functionality 💰 Advanced Pricing Features: - Dynamic pricing models (per room, per person, per adult) - Base rates, adult rates, and child rates management - Length of stay discounts and early bird deals - Mobile rates and secret deals implementation - Seasonal promotions and flash sales 📅 Availability Management: - Real-time availability tracking - Stop sell and restriction controls - Closed to arrival/departure functionality - Minimum/maximum stay requirements - Automatic sold-out management 💳 Payment Integration: - Maintained Redsys payment gateway integration - Seamless integration with existing Eagle Booking - No modifications to core Eagle Booking plugin 🛠️ Technical Implementation: - Custom database tables for advanced pricing - WordPress hooks and filters integration - AJAX-powered admin interface - Data migration from existing Eagle Booking - Professional calendar view for revenue management 📊 Admin Interface: - Booking.com-style management dashboard - Visual rate and availability calendar - Bulk operations for date ranges - Statistics and analytics dashboard - Modal dialogs for quick editing 🔧 Code Quality: - WordPress coding standards compliance - Secure database operations with prepared statements - Proper input validation and sanitization - Error handling and logging - Responsive admin interface 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
79 lines
2.2 KiB
PHP
79 lines
2.2 KiB
PHP
<?php
|
|
/**
|
|
* Requests for PHP
|
|
*
|
|
* Inspired by Requests for Python.
|
|
*
|
|
* Based on concepts from SimplePie_File, RequestCore and WP_Http.
|
|
*
|
|
* @package Requests
|
|
*
|
|
* @deprecated 6.2.0
|
|
*/
|
|
|
|
/*
|
|
* Integrators who cannot yet upgrade to the PSR-4 class names can silence deprecations
|
|
* by defining a `REQUESTS_SILENCE_PSR0_DEPRECATIONS` constant and setting it to `true`.
|
|
* The constant needs to be defined before this class is required.
|
|
*/
|
|
if (!defined('REQUESTS_SILENCE_PSR0_DEPRECATIONS') || REQUESTS_SILENCE_PSR0_DEPRECATIONS !== true) {
|
|
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
|
|
trigger_error(
|
|
'The PSR-0 `Requests_...` class names in the Requests library are deprecated.'
|
|
. ' Switch to the PSR-4 `WpOrg\Requests\...` class names at your earliest convenience.',
|
|
E_USER_DEPRECATED
|
|
);
|
|
|
|
// Prevent the deprecation notice from being thrown twice.
|
|
if (!defined('REQUESTS_SILENCE_PSR0_DEPRECATIONS')) {
|
|
define('REQUESTS_SILENCE_PSR0_DEPRECATIONS', true);
|
|
}
|
|
}
|
|
|
|
require_once __DIR__ . '/Requests/src/Requests.php';
|
|
|
|
/**
|
|
* Requests for PHP
|
|
*
|
|
* Inspired by Requests for Python.
|
|
*
|
|
* Based on concepts from SimplePie_File, RequestCore and WP_Http.
|
|
*
|
|
* @package Requests
|
|
*
|
|
* @deprecated 6.2.0 Use `WpOrg\Requests\Requests` instead for the actual functionality and
|
|
* use `WpOrg\Requests\Autoload` for the autoloading.
|
|
*/
|
|
class Requests extends WpOrg\Requests\Requests {
|
|
|
|
/**
|
|
* Deprecated autoloader for Requests.
|
|
*
|
|
* @deprecated 6.2.0 Use the `WpOrg\Requests\Autoload::load()` method instead.
|
|
*
|
|
* @codeCoverageIgnore
|
|
*
|
|
* @param string $class Class name to load
|
|
*/
|
|
public static function autoloader($class) {
|
|
if (class_exists('WpOrg\Requests\Autoload') === false) {
|
|
require_once __DIR__ . '/Requests/src/Autoload.php';
|
|
}
|
|
|
|
return WpOrg\Requests\Autoload::load($class);
|
|
}
|
|
|
|
/**
|
|
* Register the built-in autoloader
|
|
*
|
|
* @deprecated 6.2.0 Include the `WpOrg\Requests\Autoload` class and
|
|
* call `WpOrg\Requests\Autoload::register()` instead.
|
|
*
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public static function register_autoloader() {
|
|
require_once __DIR__ . '/Requests/src/Autoload.php';
|
|
WpOrg\Requests\Autoload::register();
|
|
}
|
|
}
|