Conditions | 4 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function getExtraConfig() |
||
33 | { |
||
34 | $data = array(); |
||
35 | $dbConnection = $this->dbObject->getConnection(); |
||
36 | $prefixedTableName = $dbConnection->getTableName(self::CONFIG_TABLE); |
||
37 | if ($dbConnection->isTableExists($prefixedTableName)) { |
||
38 | $result = $dbConnection->fetchAll("select * from $prefixedTableName"); |
||
39 | if (count($result)) { |
||
40 | foreach ($result as $value) { |
||
41 | $data[$value['config']] = $value['value']; |
||
42 | } |
||
43 | } |
||
44 | } |
||
45 | |||
46 | return $data; |
||
47 | } |
||
48 | } |