-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeamDataTables.php
37 lines (31 loc) · 955 Bytes
/
TeamDataTables.php
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
33
34
35
36
37
<?php
class TeamDataTables {
public static $permitted_tables = array( 'cap', 'level', 'list', 'match', 'match_stat', 'member', 'member_list', 'team', 'season', 'stat', 'venue');
public $cap;
public $level;
public $list;
public $match;
public $match_stat;
public $member;
public $member_list;
public $team;
public $season;
public $stat;
public $venue;
public function __construct() {
global $wpdb;
$table_prefix = $wpdb->prefix . 'team_data_';
$this->cap = $table_prefix . 'cap';
$this->level = $table_prefix . 'level';
$this->list = $table_prefix . 'list';
$this->match = $table_prefix . 'match';
$this->match_stat = $table_prefix . 'match_stat';
$this->member = $table_prefix . 'member';
$this->member_list = $table_prefix . 'member_list';
$this->team = $table_prefix . 'team';
$this->season = $table_prefix . 'season';
$this->stat = $table_prefix . 'stat';
$this->venue = $table_prefix . 'venue';
}
}
?>