Total Complexity | 5 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class NoImageProducts extends Report |
||
9 | { |
||
10 | public function title() |
||
11 | { |
||
12 | return _t('SilverShop\Reports\SideReport.NoImage', 'Products with no image'); |
||
13 | } |
||
14 | |||
15 | public function group() |
||
16 | { |
||
17 | return _t('SilverShop\Reports\SideReport.ShopGroup', 'Shop'); |
||
18 | } |
||
19 | |||
20 | public function sort() |
||
23 | } |
||
24 | |||
25 | public function sourceRecords($params = null) |
||
26 | { |
||
27 | return Product::get()->filter('ImageID', 0)->sort('Title', 'ASC'); |
||
28 | } |
||
29 | |||
30 | public function columns() |
||
36 | ], |
||
37 | ]; |
||
38 | } |
||
39 | } |
||
40 |