PATH:
home
/
lab2454c
/
caimegroup.com
/
wp-content
/
plugins
/
user-registration
/
includes
<?php /** * UserRegistration Autoloader. * * @class UR_Autoloader * @version 1.0.0 * @package UserRegistration/Classes */ if ( ! defined( 'ABSPATH' ) ) { exit; } /** * UR_Autoloader Class */ class UR_Autoloader { /** * Path to the includes directory. * * @var string */ private $include_path = ''; /** * Class Constructor Method. */ public function __construct() { if ( function_exists( '__autoload' ) ) { spl_autoload_register( '__autoload' ); } spl_autoload_register( array( $this, 'autoload' ) ); $this->include_path = untrailingslashit( plugin_dir_path( UR_PLUGIN_FILE ) ) . '/includes/'; } /** * Take a class name and turn it into a file name. * * @param string $class Class. * * @return string */ private function get_file_name_from_class( $class ) { return 'class-' . str_replace( '_', '-', $class ) . '.php'; } /** * Include a class file. * * @param string $path Path. * * @return bool successful or not */ private function load_file( $path ) { if ( $path && is_readable( $path ) ) { include_once $path; return true; } return false; } /** * Auto-load UR classes on demand to reduce memory consumption. * * @param string $class Class. */ public function autoload( $class ) { $class = strtolower( $class ); $file = $this->get_file_name_from_class( $class ); $path = ''; if ( strpos( $class, 'ur_shortcode_' ) === 0 ) { $path = $this->include_path . 'shortcodes/'; } elseif ( strpos( $class, 'ur_meta_box' ) === 0 ) { $path = $this->include_path . 'admin/meta-boxes/'; } elseif ( strpos( $class, 'ur_admin' ) === 0 ) { $path = $this->include_path . 'admin/'; } elseif ( strpos( $class, 'ur_settings' ) === 0 ) { $path = $this->include_path . 'admin/settings/emails/'; } elseif ( strpos( $class, 'ur_form' ) === 0 ) { $path = $this->include_path . 'form/'; } elseif ( strpos( $class, 'ur_log_handler_' ) === 0 ) { $path = $this->include_path . 'log-handlers/'; } elseif ( strpos( $class, 'ur_form_field_' ) === 0 ) { $path = $this->include_path . 'form/'; } if ( empty( $path ) || ( ! $this->load_file( $path . $file ) && strpos( $class, 'ur_' ) === 0 ) ) { $this->load_file( $this->include_path . $file ); } } } new UR_Autoloader();
[-] class-ur-shortcodes.php
[edit]
[-] class-ur-smart-tags.php
[edit]
[-] functions-ur-update.php
[edit]
[-] class-ur-cron.php
[edit]
[+]
admin
[-] class-ur-autoloader.php
[edit]
[+]
validation
[-] functions-ur-core.php
[edit]
[-] class-ur-user-approval.php
[edit]
[-] class-ur-install.php
[edit]
[+]
..
[-] functions-ur-notice.php
[edit]
[-] functions-ur-account.php
[edit]
[-] class-ur-background-updater.php
[edit]
[-] class-ur-logger.php
[edit]
[-] class-ur-email-approval.php
[edit]
[-] class-ur-email-confirmation.php
[edit]
[+]
stats
[+]
frontend
[-] class-ur-form-handler.php
[edit]
[+]
blocks
[-] class-ur-form-block.php
[edit]
[-] class-ur-post-types.php
[edit]
[+]
shortcodes
[-] functions-ur-template.php
[edit]
[-] class-ur-log-levels.php
[edit]
[-] functions-ur-form.php
[edit]
[-] class-ur-cache-helper.php
[edit]
[-] class-ur-emailer.php
[edit]
[+]
interfaces
[+]
libraries
[-] class-ur-query.php
[edit]
[-] class-ur-session-handler.php
[edit]
[-] class-ur-frontend-scripts.php
[edit]
[+]
RestApi
[+]
form
[-] class-ur-privacy.php
[edit]
[-] class-ur-ajax.php
[edit]
[-] functions-ur-page.php
[edit]
[+]
log-handlers
[-] class-ur-preview.php
[edit]
[-] functions-ur-deprecated.php
[edit]
[+]
abstracts
[-] class-ur-plugin-updater.php
[edit]