for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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,
],
];