1 | <?php |
||
88 | final class GravityView_Plugin { |
||
89 | |||
90 | /** |
||
91 | * @deprecated Use \GV\Plugin::$version |
||
92 | */ |
||
93 | const version = GV_PLUGIN_VERSION; |
||
94 | |||
95 | private static $instance; |
||
96 | |||
97 | /** |
||
98 | * Singleton instance |
||
99 | * |
||
100 | * @deprecated See \GV\Plugin |
||
101 | * |
||
102 | * @return GravityView_Plugin GravityView_Plugin object |
||
103 | */ |
||
104 | public static function getInstance() { |
||
111 | |||
112 | /** |
||
113 | * @deprecated See \GV\Plugin |
||
114 | */ |
||
115 | private function __construct() { |
||
118 | |||
119 | /** |
||
120 | * Include global plugin files |
||
121 | * |
||
122 | * @deprecated Use gravityview()->plugin->include_legacy_core |
||
123 | * |
||
124 | * @since 1.12 |
||
125 | */ |
||
126 | public function include_files() { |
||
130 | |||
131 | /** |
||
132 | * Check whether GravityView is network activated |
||
133 | * |
||
134 | * @deprecated See \GV\Plugin |
||
135 | * |
||
136 | * @since 1.7.6 |
||
137 | * @return bool |
||
138 | */ |
||
139 | public static function is_network_activated() { |
||
143 | |||
144 | |||
145 | /** |
||
146 | * Plugin activate function. |
||
147 | * |
||
148 | * @static |
||
149 | * @return void |
||
150 | */ |
||
151 | public static function activate() { |
||
154 | |||
155 | |||
156 | /** |
||
157 | * Plugin deactivate function. |
||
158 | * |
||
159 | * @deprecated see \GV\Plugin::deactivate() |
||
160 | * @return void |
||
161 | */ |
||
162 | public static function deactivate() { |
||
165 | |||
166 | /** |
||
167 | * Include the extension class |
||
168 | * |
||
169 | * @deprecated The extension framework is included by default now. |
||
170 | * |
||
171 | * @since 1.5.1 |
||
172 | * @return void |
||
173 | */ |
||
174 | public static function include_extension_framework() { |
||
177 | |||
178 | /** |
||
179 | * Load GravityView_Widget class |
||
180 | * |
||
181 | * @deprecated The widget class is loaded elsewhere in legacy core. |
||
182 | * |
||
183 | * @since 1.7.5.1 |
||
184 | */ |
||
185 | public static function include_widget_class() { |
||
188 | |||
189 | |||
190 | /** |
||
191 | * Loads the plugin's translated strings. |
||
192 | * |
||
193 | * @deprecated Use \GV\Plugin::load_textdomain() |
||
194 | * |
||
195 | * @return void |
||
196 | */ |
||
197 | public function load_plugin_textdomain() { |
||
201 | |||
202 | /** |
||
203 | * Check if is_admin(), and make sure not DOING_AJAX |
||
204 | * @since 1.7.5 |
||
205 | * @deprecated |
||
206 | * @see \GV\Frontend_Request::is_admin via gravityview()->request->is_admin() |
||
207 | * @return bool |
||
208 | */ |
||
209 | public static function is_admin() { |
||
213 | |||
214 | /** |
||
215 | * Function to launch frontend objects |
||
216 | * |
||
217 | * @since 1.17 Added $force param |
||
218 | * |
||
219 | * |
||
220 | * @param bool $force Whether to force loading |
||
221 | * |
||
222 | * @return void |
||
223 | */ |
||
224 | public function frontend_actions( $force = false ) { |
||
228 | |||
229 | /** |
||
230 | * Helper function to define the default widget areas. |
||
231 | * |
||
232 | * @deprecated Moved to GravityView_Widget::get_default_widget_areas() |
||
233 | * |
||
234 | * @return array definition for default widget areas |
||
235 | */ |
||
236 | public static function get_default_widget_areas() { |
||
239 | |||
240 | /** DEBUG */ |
||
241 | |||
242 | /** |
||
243 | * Logs messages using Gravity Forms logging add-on |
||
244 | * @param string $message log message |
||
245 | * @param mixed $data Additional data to display |
||
246 | * @deprecated use gravityview()->log |
||
247 | * @return void |
||
248 | */ |
||
249 | public static function log_debug( $message, $data = null ){ |
||
253 | |||
254 | /** |
||
255 | * Logs messages using Gravity Forms logging add-on |
||
256 | * @param string $message log message |
||
257 | * @deprecated use gravityview()->log |
||
258 | * @return void |
||
259 | */ |
||
260 | public static function log_error( $message, $data = null ){ |
||
264 | } // end class GravityView_Plugin |
||
265 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.