PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.0
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / deprecated / FrmDbDeprecated.php

FrmDbDeprecated.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.0, at deprecated/FrmDbDeprecated.php

141 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 /**
7 * Class FrmDbDeprecated
8 *
9 * @since 2.03.05
10 * @deprecated 2.03.05
11 * @codeCoverageIgnore
12 */
13 class FrmDbDeprecated {
14
15 var $fields;
16 var $forms;
17 var $entries;
18 var $entry_metas;
19
20 public function __construct() {
21 if ( ! defined( 'ABSPATH' ) ) {
22 die( 'You are not allowed to call this page directly.' );
23 }
24
25 global $wpdb;
26 $this->fields = $wpdb->prefix . 'frm_fields';
27 $this->forms = $wpdb->prefix . 'frm_forms';
28 $this->entries = $wpdb->prefix . 'frm_items';
29 $this->entry_metas = $wpdb->prefix . 'frm_item_metas';
30 }
31
32 /**
33 * @deprecated 2.03.05
34 */
35 public function upgrade() {
36 _deprecated_function( __FUNCTION__, '2.05.06', 'FrmMigrate::upgrade' );
37
38 $db = new FrmMigrate();
39 $db->upgrade();
40 }
41
42 /**
43 * @deprecated 2.03.05
44 */
45 public function collation() {
46 _deprecated_function( __FUNCTION__, '2.05.06', 'FrmMigrate::collation' );
47
48 $db = new FrmMigrate();
49 return $db->collation();
50 }
51
52 /**
53 * @deprecated 2.03.05
54 */
55 public function uninstall() {
56 _deprecated_function( __FUNCTION__, '2.05.06', 'FrmMigrate::uninstall' );
57
58 $db = new FrmMigrate();
59 $db->uninstall();
60 }
61
62 /**
63 * @deprecated 2.03.05
64 */
65 public static function get_where_clause_and_values( &$args, $starts_with = ' WHERE ' ) {
66 _deprecated_function( __FUNCTION__, '2.03.05', 'FrmDb::get_where_clause_and_values( $args, $starts_with )' );
67 FrmDb::get_where_clause_and_values( $args, $starts_with );
68 }
69
70 /**
71 * @deprecated 2.03.05
72 */
73 public static function parse_where_from_array( $args, $base_where, &$where, &$values ) {
74 _deprecated_function( __FUNCTION__, '2.03.05', 'FrmDb::parse_where_from_array( $args, $base_where, $where, $values )' );
75 FrmDb::parse_where_from_array( $args, $base_where, $where, $values );
76 }
77
78 /**
79 * @deprecated 2.03.05
80 */
81 public static function get_count( $table, $where = array(), $args = array() ) {
82 _deprecated_function( __FUNCTION__, '2.03.05', 'FrmDb::get_count' );
83
84 return FrmDb::get_count( $table, $where, $args );
85 }
86
87 /**
88 * @deprecated 2.03.05
89 */
90 public static function get_var( $table, $where = array(), $field = 'id', $args = array(), $limit = '', $type = 'var' ) {
91 _deprecated_function( __FUNCTION__, '2.03.05', 'FrmDb::get_var' );
92
93 return FrmDb::get_var( $table, $where, $field, $args, $limit, $type );
94 }
95
96 /**
97 * @deprecated 2.03.05
98 */
99 public static function get_col( $table, $where = array(), $field = 'id', $args = array(), $limit = '' ) {
100 _deprecated_function( __FUNCTION__, '2.03.05', 'FrmDb::get_col' );
101
102 return FrmDb::get_col( $table, $where, $field, $args, $limit );
103 }
104
105 /**
106 * @deprecated 2.03.05
107 */
108 public static function get_row( $table, $where = array(), $fields = '*', $args = array() ) {
109 _deprecated_function( __FUNCTION__, '2.03.05', 'FrmDb::get_row' );
110
111 return FrmDb::get_row( $table, $where, $fields, $args );
112 }
113
114 /**
115 * @deprecated 2.03.05
116 */
117 public static function get_results( $table, $where = array(), $fields = '*', $args = array() ) {
118 _deprecated_function( __FUNCTION__, '2.03.05', 'FrmDb::get_results' );
119
120 return FrmDb::get_results( $table, $where, $fields, $args );
121 }
122
123 /**
124 * @deprecated 2.03.05
125 */
126 public static function append_where_is( $where_is ) {
127 _deprecated_function( __FUNCTION__, '2.03.05', 'FrmDb::append_where_is' );
128
129 return FrmDb::append_where_is( $where_is );
130 }
131
132 /**
133 * @deprecated 2.03.05
134 */
135 public static function get_associative_array_results( $columns, $table, $where ) {
136 _deprecated_function( __FUNCTION__, '2.03.05', 'FrmDb::get_associative_array_results' );
137
138 return FrmDb::get_associative_array_results( $columns, $table, $where );
139 }
140 }
141