Commit c244d8c3 by Gavin Brown

entry point with autoload function

1 parent 628bfee1
<?php
class Net_EPP {
static function autoload($class) {
$prefix = __CLASS__.'_';
if ($prefix == substr($class, 0, strlen($prefix))) {
debug_log($class);
$file = dirname(__FILE__).'/'.str_replace('_', '/', $class).'.php';
debug_log($file);
return (file_exists($file) && @include_once($file));
} else {
return false;
}
}
}
spl_autoload_register(array('Net_EPP', 'autoload'));
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!