Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | private static function getExtraConfig() |
||
26 | { |
||
27 | global $wpdb; |
||
28 | $tableName = $wpdb->prefix.PAGANTIS_CONFIG_TABLE; |
||
29 | $response = array(); |
||
30 | $dbResult = $wpdb->get_results("select config, value from $tableName", ARRAY_A); |
||
|
|||
31 | foreach ($dbResult as $value) { |
||
32 | $response[$value['config']] = $value['value']; |
||
33 | } |
||
34 | |||
35 | return $response; |
||
36 | } |
||
47 |