-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathwp-exhibit-config.php
More file actions
32 lines (26 loc) · 1023 Bytes
/
wp-exhibit-config.php
File metadata and controls
32 lines (26 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
class WpExhibitConfig {
// datapress schema version
public static $DB_VERSION = "16";
// table keys
public static $EXHIBITS_TABLE_KEY = "exhibits";
public static $PARROTABLE_URLS_TABLE_KEY = "parrotable_urls";
public static $EXHIBITS_ASSOC_TABLE_KEY = "posts_exhibits";
public static $DATASCRAPS_TABLE_KEY = "datascraps";
public static $DATASCRAPS_ASSOC_TABLE_KEY = "posts_datascraps";
public static $GEOCODE_TABLE_KEY = "dp_geocode";
// Form prefixes
public static $DATA_FORM_PREFIX = "data";
public static $FACET_FORM_PREFIX = "facet";
public static $LENSE_FORM_PREFIX = "lens";
public static $VIEW_FORM_PREFIX = "view";
public static $EXHIBIT_FORM_PREFIX = "exhibit";
public static $DATASCRAP_FORM_PREFIX = "dscrap";
// wp configuration keys
public static $WP_EXHIBIT_DB_VERSION_KEY = "wp_exhibit_dbversion";
static function table_name($table_name) {
global $wpdb;
return $wpdb->prefix . "_wp_exhibit_" . $table_name;
}
}
?>