1 | <?php |
||
7 | class Autoloader { |
||
8 | |||
9 | private $classMap = array(); |
||
10 | |||
11 | 1 | public function __construct($basePath = null) { |
|
17 | |||
18 | /** |
||
19 | * Not fully PSR-0 compatible, but good enough for this particular plugin |
||
20 | * |
||
21 | * @param string $basePath |
||
22 | * @param string $prefix |
||
23 | */ |
||
24 | 1 | private function registerDirectory($basePath, $prefix = '') { |
|
44 | |||
45 | /** |
||
46 | * @param string $className |
||
47 | * @return bool |
||
48 | */ |
||
49 | 7 | public function load($className) { |
|
55 | |||
56 | /** |
||
57 | * @return bool |
||
58 | */ |
||
59 | 1 | public function register() { |
|
62 | |||
63 | /** |
||
64 | * @return bool |
||
65 | */ |
||
66 | 1 | public function unregister() { |
|
69 | |||
70 | } |