<?php
namespace JET_ABAF;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
/**
* Autoloader handler class is responsible for loading the different
* classes needed to run the plugin.
*/
class Autoloader {
/**
* Run autoloader.
*
* Register a function as `__autoload()` implementation.
*
* @since 1.6.0
* @access public
* @static
*/
public static function run() {
spl_autoload_register( array( __CLASS__, 'autoload' ) );
}
/**
* Load class.
*
* For a given class name, require the class file.
*
* @since 1.6.0
* @access private
* @static
*
* @param string $relative_class_name Class name.
*/
private static function load_class( $class_name ) {
$file = str_replace( '\\', DIRECTORY_SEPARATOR, $class_name );
$file = strtolower( str_replace( '_', '-', $file ) );
$filepath = JET_ABAF_PATH . 'includes/' . $file . '.php';
if ( is_readable( $filepath ) ) {
require $filepath;
}
}
/**
* Autoload.
*
* For a given class, check if it exist and load it.
*
* @since 1.6.0
* @access private
* @static
*
* @param string $class Class name.
*/
private static function autoload( $class ) {
if ( 0 !== strpos( $class, __NAMESPACE__ . '\\' ) ) {
return;
}
$relative_class_name = preg_replace( '/^' . __NAMESPACE__ . '\\\/', '', $class );
$final_class_name = __NAMESPACE__ . '\\' . $relative_class_name;
if ( ! class_exists( $final_class_name ) ) {
self::load_class( $relative_class_name );
}
}
}
| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| actions/ | 2026-07-21 14:16 | 3.54 KB | 76129f60960:kunden | dxwrx-r--r | |
| compatibility/ | 2026-07-21 14:16 | 102.94 KB | 76129f60960:kunden | dxwrx-r--r | |
| components/ | 2026-07-21 14:16 | 315.47 KB | 76129f60960:kunden | dxwrx-r--r | |
| cron/ | 2026-07-21 14:16 | 15.24 KB | 76129f60960:kunden | dxwrx-r--r | |
| dashboard/ | 2026-07-21 14:16 | 68.07 KB | 76129f60960:kunden | dxwrx-r--r | |
| db/ | 2026-07-21 14:16 | 44.01 KB | 76129f60960:kunden | dxwrx-r--r | |
| form-fields/ | 2026-07-21 14:16 | 4.28 KB | 76129f60960:kunden | dxwrx-r--r | |
| formbuilder-plugin/ | 2026-07-21 14:16 | 44.48 KB | 76129f60960:kunden | dxwrx-r--r | |
| framework/ | 2026-07-21 14:16 | 1.49 MB | 76129f60960:kunden | dxwrx-r--r | |
| macros/ | 2026-07-21 14:16 | 34.15 KB | 76129f60960:kunden | dxwrx-r--r | |
| multivendors/ | 2026-07-21 14:16 | 27 KB | 76129f60960:kunden | dxwrx-r--r | |
| render/ | 2026-07-21 14:16 | 16.17 KB | 76129f60960:kunden | dxwrx-r--r | |
| resources/ | 2026-07-21 14:16 | 28.38 KB | 76129f60960:kunden | dxwrx-r--r | |
| rest-api/ | 2026-07-21 14:16 | 35.46 KB | 76129f60960:kunden | dxwrx-r--r | |
| stores/ | 2026-07-21 14:16 | 4.32 KB | 76129f60960:kunden | dxwrx-r--r | |
| vendor/ | 2026-07-21 14:16 | 77.89 KB | 76129f60960:kunden | dxwrx-r--r | |
| visibility-conditions/ | 2026-07-21 14:16 | 3.69 KB | 76129f60960:kunden | dxwrx-r--r | |
| wc-integration/ | 2026-07-21 14:16 | 164.96 KB | 76129f60960:kunden | dxwrx-r--r | |
| workflows/ | 2026-07-21 14:16 | 34.38 KB | 76129f60960:kunden | dxwrx-r--r | |
| advanced-price-rates.php | 2026-07-21 14:16 | 1.5 KB | 76129f60960:kunden | -xw-x----- | |
| ajax-handlers.php | 2026-07-21 14:16 | 12.02 KB | 76129f60960:kunden | -xw-x----- | |
| apartment-booking-trait.php | 2026-07-21 14:16 | 8.27 KB | 76129f60960:kunden | -xw-x----- | |
| assets.php | 2026-07-21 14:16 | 6.3 KB | 76129f60960:kunden | -xw-x----- | |
| autoloader.php | 2026-07-21 14:16 | 1.49 KB | 76129f60960:kunden | -xw-x----- | |
| booking-functions.php | 2026-07-21 14:16 | 1.65 KB | 76129f60960:kunden | -xw-x----- | |
| capabilities.php | 2026-07-21 14:16 | 491 B | 76129f60960:kunden | -xw-x----- | |
| export.php | 2026-07-21 14:16 | 8.22 KB | 76129f60960:kunden | -xw-x----- | |
| google-calendar.php | 2026-07-21 14:16 | 5.88 KB | 76129f60960:kunden | -xw-x----- | |
| ical.php | 2026-07-21 14:16 | 19.35 KB | 76129f60960:kunden | -xw-x----- | |
| plugin.php | 2026-07-21 14:16 | 7.35 KB | 76129f60960:kunden | -xw-x----- | |
| price.php | 2026-07-21 14:16 | 13.4 KB | 76129f60960:kunden | -xw-x----- | |
| seasonal-price.php | 2026-07-21 14:16 | 1.54 KB | 76129f60960:kunden | -xw-x----- | |
| set-up.php | 2026-07-21 14:16 | 7.21 KB | 76129f60960:kunden | -xw-x----- | |
| settings.php | 2026-07-21 14:16 | 32.28 KB | 76129f60960:kunden | -xw-x----- | |
| statuses.php | 2026-07-21 14:16 | 3.05 KB | 76129f60960:kunden | -xw-x----- | |
| tools.php | 2026-07-21 14:16 | 31.31 KB | 76129f60960:kunden | -xw-x----- | |
| upgrade.php | 2026-07-21 14:16 | 11.17 KB | 76129f60960:kunden | -xw-x----- | |
| weekend-price.php | 2026-07-21 14:16 | 1.17 KB | 76129f60960:kunden | -xw-x----- | |