Dashboard\Classes\ReportDataOrderRule
Overview
ReportDataOrderRule represents a report data order rule.
Public Methods
public __construct()
public __construct(
string $dataAttributeType,
string $attributeName = null,
bool $isAscending = true
): void
__construct a report data order rule.
public static createFromWidgetConfig()
public static createFromWidgetConfig(
string $sortOrder,
string $sortBy
): void
Creates the order rule from a widget configuration.
public getAttributeName()
public getAttributeName(): string
Returns the attribute name.
public getDataAttributeType()
public getDataAttributeType(): string
Returns the data attribute type.
public isAscending()
public isAscending(): bool
Returns if the order is ascending or descending.