Source of file NoImageProducts.php
Size: 0,765 Bytes - Last Modified: 2021-12-24T06:35:03+00:00
/var/www/docs.ssmods.com/process/src/src/Reports/SideReport/NoImageProducts.php
12345678910111213141516171819202122232425262728293031323334353637383940 | <?php namespace SilverShop\Reports\SideReport; use SilverShop\Page\Product; use SilverStripe\Reports\Report; class NoImageProducts extends Report { public function title() { return _t('SilverShop\Reports\SideReport.NoImage', 'Products with no image'); } public function group() { return _t('SilverShop\Reports\SideReport.ShopGroup', 'Shop'); } public function sort() { return 0; } public function sourceRecords($params = null) { return Product::get()->filter('ImageID', 0)->sort('Title', 'ASC'); } public function columns() { return [ 'Title' => [ 'title' => 'Title', 'link' => true, ], ]; } } |