1 | <?php |
||
15 | abstract class ConstantsAbstract |
||
16 | { |
||
17 | /** |
||
18 | * Equivalent to `__FILE__` for main plugin file. |
||
19 | * @var string |
||
20 | */ |
||
21 | private static $plugin_file =''; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * String indicating version for plugin |
||
26 | * @var string |
||
27 | */ |
||
28 | private static $version = ''; |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Initializes internal static properties. |
||
33 | * @param $plugin_file |
||
34 | * @param $version |
||
35 | */ |
||
36 | public static function init($plugin_file, $version) |
||
41 | |||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | public static function pluginFile() |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public static function pluginBasename() |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public static function pluginPath() |
||
66 | |||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public static function pluginUrl() |
||
75 | |||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public static function version() |
||
84 | |||
85 | } |