Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function __construct() { |
||
21 | |||
22 | # Process selection |
||
23 | |||
24 | $selection = ['name', 'contents']; $condition = ['display' => 1]; $order = ['name' => 'ASC']; |
||
25 | |||
26 | if (!(DB::select(TABLE_WIDGETS, $selection, $condition, $order) && DB::last()->status)) return; |
||
27 | |||
28 | # Process results |
||
29 | |||
30 | while (null !== ($widget = DB::last()->row())) $this->addItem($widget['name'], $widget['contents']); |
||
31 | } |
||
32 | |||
41 |