1 | <?php |
||
12 | class MslsPlugin { |
||
13 | |||
14 | /** |
||
15 | * Loads styles and some js if needed |
||
16 | * The methiod returns true if JS is loaded or false if not |
||
17 | * @return boolean |
||
18 | */ |
||
19 | public static function init() { |
||
42 | |||
43 | /** |
||
44 | * Register widget |
||
45 | * |
||
46 | * The widget will only be registered if the current blog is not |
||
47 | * excluded in the configuration of the plugin. |
||
48 | * @return boolean |
||
49 | */ |
||
50 | public static function init_widget() { |
||
57 | |||
58 | /** |
||
59 | * Load textdomain |
||
60 | * |
||
61 | * The method will be executed allways on init because we have some |
||
62 | * translatable string in the frontend too. |
||
63 | * @return boolean |
||
64 | */ |
||
65 | public static function init_i18n_support() { |
||
72 | |||
73 | /** |
||
74 | * Set the admin language |
||
75 | * Callback for 'locale' hook |
||
76 | * @param string $locale |
||
77 | * @return string |
||
78 | */ |
||
79 | public static function set_admin_language( $locale ) { |
||
88 | |||
89 | /** |
||
90 | * Message handler |
||
91 | * |
||
92 | * Prints a message box to the screen. |
||
93 | * @param string $message |
||
94 | * @param string $css_class |
||
95 | * @return boolean |
||
96 | */ |
||
97 | public static function message_handler( $message, $css_class = 'error' ) { |
||
108 | |||
109 | /** |
||
110 | * Uninstall plugin |
||
111 | * |
||
112 | * The plugin data in all blogs of the current network will be |
||
113 | * deleted after the uninstall procedure. |
||
114 | * @return boolean |
||
115 | */ |
||
116 | public static function uninstall() { |
||
141 | |||
142 | /** |
||
143 | * Cleanup the options |
||
144 | * |
||
145 | * Removes all values of the current blogs which are stored in the |
||
146 | * options-table and returns true if it was successful. |
||
147 | * @return boolean |
||
148 | */ |
||
149 | public static function cleanup() { |
||
160 | |||
161 | /** |
||
162 | * Get specific vars from $_POST and $_GET in a safe way |
||
163 | * @param array $list |
||
164 | * @return array |
||
165 | */ |
||
166 | public static function get_superglobals( array $list ) { |
||
182 | |||
183 | } |
||
184 |