diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-03-20 17:03:06 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-03-20 17:03:06 +0100 |
| commit | 6032c11d7a88651d85154ffe835a26b3f569c893 (patch) | |
| tree | b3cb83cb8d7dbcfa23891b84e3f0447c31e743c8 /src/bdrem/Autoloader.php | |
| parent | 62842c0ba16bb1dc67435dea7b4d75af7773eacb (diff) | |
| download | bdrem-6032c11d7a88651d85154ffe835a26b3f569c893.tar.gz bdrem-6032c11d7a88651d85154ffe835a26b3f569c893.zip | |
add docblocks to all files, classes, methods and variables
Diffstat (limited to 'src/bdrem/Autoloader.php')
| -rw-r--r-- | src/bdrem/Autoloader.php | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/src/bdrem/Autoloader.php b/src/bdrem/Autoloader.php index 093b1b0..cebd0eb 100644 --- a/src/bdrem/Autoloader.php +++ b/src/bdrem/Autoloader.php @@ -1,16 +1,51 @@ <?php +/** + * Part of bdrem + * + * PHP version 5 + * + * @category Tools + * @package Bdrem + * @author Christian Weiske <cweiske@cweiske.de> + * @copyright 2014 Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @link http://cweiske.de/bdrem.htm + */ namespace bdrem; +/** + * Class autoloader, PSR-0 compliant. + * + * @category Tools + * @package Bdrem + * @author Christian Weiske <cweiske@cweiske.de> + * @copyright 2014 Christian Weiske + * @license http://www.gnu.org/licenses/agpl.html GNU AGPL v3 + * @version Release: @package_version@ + * @link http://cweiske.de/bdrem.htm + */ class Autoloader { + /** + * Load the given class + * + * @param string $class Class name + * + * @return void + */ public function load($class) { $file = strtr($class, '_\\', '//') . '.php'; if (stream_resolve_include_path($file)) { - require $file; + include $file; } } + /** + * Register this autoloader + * + * @return void + */ public static function register() { set_include_path( |
