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