Source of file EcommerceSideReportNotForSale.php
Size: 0,914 Bytes - Last Modified: 2021-12-23T10:39:35+00:00
/var/www/docs.ssmods.com/process/src/src/Reports/EcommerceSideReportNotForSale.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445 | <?php namespace Sunnysideup\Ecommerce\Reports; use SilverStripe\Reports\Report; use Sunnysideup\Ecommerce\Pages\Product; /** * Selects all products that are not for sale. * * @authors: Nicolaas [at] Sunny Side Up .co.nz * @package: ecommerce * @sub-package: reports */ class EcommerceSideReportNotForSale extends Report { use EcommerceProductReportTrait; protected $dataClass = Product::class; /** * @return string */ public function title() { return _t('EcommerceSideReport.NOTFORSALE', 'E-commerce: Products not for sale'); } /** * @param null|mixed $params */ public function getEcommerceFilter($params = null): array { return ['AllowPurchase' => 0]; } /** * @param null|mixed $params */ public function getEcommerceSort($params = null): array { return ['FullSiteTreeSort' => 'ASC']; } } |