Property | Type | Description | |
---|---|---|---|
$base | string | the route base |
Method | Description | |
---|---|---|
get_reports ( ) : array | Get a simple listing of available reports | |
get_sales_report ( string $fields = null, array $filter = [] ) : array | Get the sales report | |
get_top_sellers_report ( string $fields = null, array $filter = [] ) : array | Get the top sellers report | |
register_routes ( array $routes ) : array | Register the routes for this class |
Method | Description | |
---|---|---|
validate_request ( null $id = null, null $type = null, null $context = null ) : boolean | Verify that the current user has permission to view reports |
Method | Description | |
---|---|---|
setup_report ( array $filter ) | Setup the report object and parse any date filtering |
public get_reports ( ) : array | ||
return | array |
public register_routes ( array $routes ) : array | ||
$routes | array | |
return | array |