Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
Setting | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
6 | |
0.00% |
0 / 1 |
fetchName | |
0.00% |
0 / 7 |
|
0.00% |
0 / 1 |
6 |
1 | <?php |
2 | |
3 | /** |
4 | * @package ClientDldb |
5 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG |
6 | **/ |
7 | |
8 | namespace BO\Zmsdldb\MySql; |
9 | |
10 | use BO\Zmsdldb\File\Setting as Base; |
11 | |
12 | /** |
13 | * |
14 | */ |
15 | class Setting extends Base |
16 | { |
17 | public function fetchName($name) |
18 | { |
19 | try { |
20 | $sql = 'SELECT value FROM setting WHERE name = ?'; |
21 | |
22 | $stm = $this->access()->prepare($sql); |
23 | $stm->execute([(string)$name]); |
24 | |
25 | $settingValue = $stm->fetchColumn(); |
26 | |
27 | return $settingValue ?? null; |
28 | } catch (\Exception $e) { |
29 | throw $e; |
30 | } |
31 | } |
32 | } |