Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * interface for dwoo plugin loaders |
---|
5 | * |
---|
6 | * This software is provided 'as-is', without any express or implied warranty. |
---|
7 | * In no event will the authors be held liable for any damages arising from the use of this software. |
---|
8 | * |
---|
9 | * @author Jordi Boggiano <j.boggiano@seld.be> |
---|
10 | * @copyright Copyright (c) 2008, Jordi Boggiano |
---|
11 | * @license http://dwoo.org/LICENSE Modified BSD License |
---|
12 | * @link http://dwoo.org/ |
---|
13 | * @version 1.0.0 |
---|
14 | * @date 2008-10-23 |
---|
15 | * @package Dwoo |
---|
16 | */ |
---|
17 | interface Dwoo_ILoader |
---|
18 | { |
---|
19 | /** |
---|
20 | * loads a plugin file |
---|
21 | * |
---|
22 | * the second parameter is used to avoid permanent rehashing when using php functions, |
---|
23 | * however this means that if you have add a plugin that overrides a php function you have |
---|
24 | * to delete the classpath.cache file(s) by hand to force a rehash of the plugins |
---|
25 | * |
---|
26 | * @param string $class the plugin name, without the Dwoo_Plugin_ prefix |
---|
27 | * @param bool $forceRehash if true, the class path caches will be rebuilt if the plugin is not found, in case it has just been added, defaults to true |
---|
28 | */ |
---|
29 | public function loadPlugin($class, $forceRehash = true); |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.