PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / inc / deprecated / classes / class-imagify-abstract-db-deprecated.php

class-imagify-abstract-db-deprecated.php in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF trunk, at inc/deprecated/classes/class-imagify-abstract-db-deprecated.php

49 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
3
4 /**
5 * Class for deprecated methods from Imagify_Abstract_DB.
6 *
7 * @since 1.7
8 * @author Grégory Viguier
9 * @deprecated
10 */
11 class Imagify_Abstract_DB_Deprecated {
12
13 /**
14 * Check if the given table exists.
15 *
16 * @since 1.5 In Imagify_Abstract_DB.
17 * @since 1.7 Deprecated.
18 * @access public
19 * @deprecated
20 *
21 * @param string $table The table name.
22 * @return bool True if the table name exists.
23 */
24 public function table_exists( $table ) {
25 _deprecated_function( get_class( $this ) . '::' . __FUNCTION__ . '()', '1.7.0', 'Imagify_DB::table_exists( $table )' );
26
27 return Imagify_DB::table_exists( $table );
28 }
29
30 /**
31 * Main Instance.
32 * Ensures only one instance of class is loaded or can be loaded.
33 * Well, actually it ensures nothing since it's not a full singleton pattern.
34 *
35 * @since 1.5 In Imagify_NGG_DB.
36 * @since 1.7 Deprecated.
37 * @access public
38 * @author Jonathan Buttigieg
39 * @deprecated
40 *
41 * @return object Main instance.
42 */
43 public static function instance() {
44 _deprecated_function( 'Imagify_Abstract_DB::instance()', '1.6.5', 'Imagify_Abstract_DB::get_instance()' );
45
46 return self::get_instance();
47 }
48 }
49