| @@ 9-19 (lines=11) @@ | ||
| 6 | var $entries; |
|
| 7 | var $entry_metas; |
|
| 8 | ||
| 9 | public function __construct() { |
|
| 10 | if ( ! defined('ABSPATH') ) { |
|
| 11 | die('You are not allowed to call this page directly.'); |
|
| 12 | } |
|
| 13 | ||
| 14 | global $wpdb; |
|
| 15 | $this->fields = $wpdb->prefix . 'frm_fields'; |
|
| 16 | $this->forms = $wpdb->prefix . 'frm_forms'; |
|
| 17 | $this->entries = $wpdb->prefix . 'frm_items'; |
|
| 18 | $this->entry_metas = $wpdb->prefix . 'frm_item_metas'; |
|
| 19 | } |
|
| 20 | ||
| 21 | public function upgrade( $old_db_version = false ) { |
|
| 22 | do_action( 'frm_before_install' ); |
|
| @@ 15-25 (lines=11) @@ | ||
| 12 | var $entries; |
|
| 13 | var $entry_metas; |
|
| 14 | ||
| 15 | public function __construct() { |
|
| 16 | if ( ! defined( 'ABSPATH' ) ) { |
|
| 17 | die( 'You are not allowed to call this page directly.' ); |
|
| 18 | } |
|
| 19 | ||
| 20 | global $wpdb; |
|
| 21 | $this->fields = $wpdb->prefix . 'frm_fields'; |
|
| 22 | $this->forms = $wpdb->prefix . 'frm_forms'; |
|
| 23 | $this->entries = $wpdb->prefix . 'frm_items'; |
|
| 24 | $this->entry_metas = $wpdb->prefix . 'frm_item_metas'; |
|
| 25 | } |
|
| 26 | ||
| 27 | /** |
|
| 28 | * @deprecated 2.03.05 |
|