Function CMSStatsProvider->fill_data_by_date_pivots

Definitions

sources/stats.php

  • Fill up an array with all standard date pivot values between a month range.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$pivot string No No required parameter N/A N/A Pivot type
$start_month integer No No required parameter N/A N/A Start month (counting from 1970)
$end_month integer No No required parameter N/A N/A End month (counting from 1970)

Returns

  • All pivot values mapping to 0
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Fill up an array with all standard date pivot values between a month range.
 *
 * @param  string $pivot Pivot type
 * @param  integer $start_month Start month (counting from 1970)
 * @param  integer $end_month End month (counting from 1970)
 * @return array All pivot values mapping to 0
 */

protected function fill_data_by_date_pivots(string $pivot, int $start_month, int $end_month) : array