SilverShop\Reports\CustomerReport
List top customers, especially those who spend alot, and those who buy alot.
Synopsis
class CustomerReport
extends ShopPeriodReport
{
- // members
- protected string $title = 'Customers';
- protected string $description = 'Understand which customers spend the most.';
- protected $dataClass = Member::class;
- protected string $periodfield = '"SilverShop_Order"."Paid"';
- // Inherited members from ShopPeriodReport
- protected $dataClass;
- protected string $periodfield;
- protected boolean $grouping;
- protected integer $pagesize;
- // methods
- public void columns()
- public void getReportField()
- public void query()
- // Inherited methods from ShopPeriodReport
- public void title()
- public void description()
- public void parameterFields()
- public void canView()
- public void getReportField()
- public void sourceRecords()
- public void formatDateForGrouping()
- public void query()
- protected void fd()
- public array provideI18nEntities()
Hierarchy
Tasks
Line | Task |
---|---|
15+ | customer making the most purchases |
15+ | customer who has spent the most money |
15+ | new registrations graph |
15+ | demographics |
Members
protected
- $dataClass
- $dataClass
- $description
- $grouping
- $pagesize
- $periodfield
- $periodfield
- $title
Methods
public
Inherited from SilverShop\Reports\ShopPeriodReport
protected
public
- canView()
- description()
- formatDateForGrouping()
- getReportField()
- parameterFields()
- provideI18nEntities() — Provide translatable entities for this class and all subclasses
- query()
- sourceRecords()
- title()