Release v1.17.10

This commit is contained in:
Ronny Grobel
2026-04-21 07:55:14 +02:00
commit 84b970b04f
258 changed files with 107458 additions and 0 deletions

45
includes/Autoloader.php Executable file
View File

@@ -0,0 +1,45 @@
<?php
/**
* Simple PSR-4 style autoloader for the plugin.
*
* @package KGV\VereinManager
*/
namespace KGV\VereinManager;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class Autoloader {
/**
* Register the autoloader.
*
* @return void
*/
public static function register() {
spl_autoload_register( array( __CLASS__, 'autoload' ) );
}
/**
* Load matching class files.
*
* @param string $class Fully qualified class name.
* @return void
*/
public static function autoload( $class ) {
$prefix = __NAMESPACE__ . '\\';
if ( 0 !== strpos( $class, $prefix ) ) {
return;
}
$relative = substr( $class, strlen( $prefix ) );
$file = KGVVM_PLUGIN_DIR . 'includes/' . str_replace( '\\', '/', $relative ) . '.php';
if ( file_exists( $file ) ) {
require_once $file;
}
}
}