Source of file EcommerceSideReportNoImageProducts.php
Size: 0,777 Bytes - Last Modified: 2021-12-23T10:39:35+00:00
/var/www/docs.ssmods.com/process/src/src/Reports/EcommerceSideReportNoImageProducts.php
12345678910111213141516171819202122232425262728293031323334353637 | <?php namespace Sunnysideup\Ecommerce\Reports; use SilverStripe\Reports\Report; use Sunnysideup\Ecommerce\Pages\Product; /** * Selects all products without an image. * * @authors: Nicolaas [at] Sunny Side Up .co.nz * @package: ecommerce * @sub-package: reports */ class EcommerceSideReportNoImageProducts extends Report { use EcommerceProductReportTrait; protected $dataClass = Product::class; /** * @return string */ public function title() { return _t('EcommerceSideReport.NOIMAGE', 'E-commerce: Products without image'); } /** * @param mixed $params */ protected function getEcommerceWhere($params = null): string { return '"Product"."ImageID" IS NULL OR "Product"."ImageID" <= 0'; } } |