Function CMSStatsProvider->calculate_date_pivot_value
Definitions
sources/stats.php
- Get the pivot value (date-differentiation value within a bucket) for a standard date pivot type.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$pivot | string | No | No | required parameter | N/A | N/A | Pivot type |
$timestamp | TIME | No | No | required parameter | N/A | N/A | Timestamp |
Returns
- Pivot value
- Type: integer
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get the pivot value (date-differentiation value within a bucket) for a standard date pivot type.
*
* @param string $pivot Pivot type
* @param TIME $timestamp Timestamp
* @return integer Pivot value
*/
protected function calculate_date_pivot_value(string $pivot, int $timestamp) : int
* Get the pivot value (date-differentiation value within a bucket) for a standard date pivot type.
*
* @param string $pivot Pivot type
* @param TIME $timestamp Timestamp
* @return integer Pivot value
*/
protected function calculate_date_pivot_value(string $pivot, int $timestamp) : int