1 | <?php |
||
31 | abstract class Load |
||
32 | { |
||
33 | /** |
||
34 | * Checks if options are fetched already |
||
35 | **/ |
||
36 | private static $_init = false; |
||
37 | |||
38 | /** |
||
39 | * Stores the dirname part of links |
||
40 | **/ |
||
41 | private static $_prefix = ''; |
||
42 | |||
43 | /** |
||
44 | * Fetch options and set flags |
||
45 | * |
||
46 | * @return void |
||
47 | **/ |
||
|
|||
48 | |||
49 | private static function _init() |
||
53 | |||
54 | /** |
||
55 | * Set details for a plugin image |
||
56 | * |
||
57 | * @param string $plugin Plugin of image file |
||
58 | * @param string $directory Image subdirectory that cannot be empty |
||
59 | * @param string $name Name of image file |
||
60 | * @param string $extension File extension with "png" as default value |
||
61 | * |
||
62 | * @throws \Exception |
||
63 | * |
||
64 | * @return string |
||
65 | **/ |
||
66 | |||
67 | public static function image($plugin, $directory, $name, $extension = 'png') |
||
92 | } |
||
93 |