Backend\Classes\Dashboard\ReportDataOrderRule

Overview

ReportDataOrderRule represents a report data order rule.


Public Methods

public __construct()

public __construct(
    string $dataAttributeType,
    string $attributeName = null,
    bool $isAscending = true
): void

Creates 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.