| 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 |
|