PHP Trait Kurt\Google\Analytics\Traits\Handlers\DimensionsHandler

Datei anzeigen Open project: ozankurt/google-analytics

Public Methods

Method Description
getDimensions ( ) : array Get the metrics of current query.
mergeDimensions ( $newDimensions ) Convert $newMetrics to array if string given and pass the array to a helper function.
setDimensions ( $dimensions ) Set the dimensions of current query while converting string values to array.
unsetDimensions ( ) Unset the dimensions of current query.

Private Methods

Method Description
dimentionsAreSet ( ) : boolean Determine if dimensions are set.
getDimensionsAsString ( ) : string Get the dimensions of current query as string.
mergeNewDimensionsToCurrentOnes ( $newDimensions ) : array Merge $newMetrics with current ones.

Method Details

getDimensions() public method

Get the metrics of current query.
public getDimensions ( ) : array
return array

mergeDimensions() public method

Convert $newMetrics to array if string given and pass the array to a helper function.
public mergeDimensions ( $newDimensions )

setDimensions() public method

Set the dimensions of current query while converting string values to array.
public setDimensions ( $dimensions )

unsetDimensions() public method

Unset the dimensions of current query.
public unsetDimensions ( )