Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
Config | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
addConditionName | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace BO\Zmsdb\Query; |
4 | |
5 | class Config extends Base |
6 | { |
7 | /** |
8 | * @var String TABLE mysql table reference |
9 | */ |
10 | const TABLE = 'config'; |
11 | |
12 | const QUERY_SELECT = ' |
13 | SELECT * FROM config |
14 | '; |
15 | |
16 | const QUERY_SELECT_PROPERTY = |
17 | 'SELECT |
18 | value |
19 | FROM config |
20 | WHERE name = ? |
21 | '; |
22 | |
23 | const QUERY_REPLACE_PROPERTY = |
24 | 'REPLACE INTO config |
25 | SET name = :property, |
26 | value = :value |
27 | '; |
28 | |
29 | |
30 | public function addConditionName($itemName) |
31 | { |
32 | $this->query->where(self::TABLE . '.name', '=', $itemName); |
33 | return $this; |
34 | } |
35 | } |