GraphUtils::getTotalPeriods

Usage

int GraphUtils::getTotalPeriods(string $start_date, [ string $period = 'day' ])

Description

Get the total number of periods available from a given start date until today.

Parameters

Parameter Required Type Description
$start_date Yes string The start date or first entry of the statistics (eg. user created)
$period No string The period that is being viewed. Supported values are, 'day', 'week', 'month', 'quarter', 'year'

Return Value

The number of periods between the start date and current date.

See Also