PHP 클래스 TheIconic\Tracking\GoogleAnalytics\Parameters\CompoundParameter

A compound parameter represents a set of parameters that are part of a collection. There is a parameter name mapper that maps a human readable name that is used for passing the data into the real name that goes in the payload.
상속: implements TheIconic\Tracking\GoogleAnalytics\Parameters\CompoundParameterInterface
파일 보기 프로젝트 열기: theiconic/php-ga-measurement-protocol 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$parameterNameMapper array Maps a human readable name used when initializing the compound parameter into the real name used in the payload.
$parameters array After translating the human readable names into the payload ones, this collections contains the map for the payload names and the values to be sent.
$readableParameters array After translating the human readable names into the payload ones, this collections contains the map for the payload names and the values to be sent.
$requiredParameters array They are in the same human readable name as in the mapper above.

공개 메소드들

메소드 설명
__construct ( array $compoundData ) Validates the required parameters are passed, then translates using the mapper to later save along with the values.
getParameters ( )
getReadableParameters ( )

보호된 메소드들

메소드 설명
saveCompoundParameterData ( array $compoundData ) Translates the human readable names into the payload ones and saves them along with the values.

메소드 상세

__construct() 공개 메소드

Validates the required parameters are passed, then translates using the mapper to later save along with the values.
public __construct ( array $compoundData )
$compoundData array

getParameters() 공개 메소드

public getParameters ( )

getReadableParameters() 공개 메소드

saveCompoundParameterData() 보호된 메소드

Translates the human readable names into the payload ones and saves them along with the values.
protected saveCompoundParameterData ( array $compoundData )
$compoundData array

프로퍼티 상세

$parameterNameMapper 보호되어 있는 프로퍼티

Maps a human readable name used when initializing the compound parameter into the real name used in the payload.
protected array $parameterNameMapper
리턴 array

$parameters 보호되어 있는 프로퍼티

After translating the human readable names into the payload ones, this collections contains the map for the payload names and the values to be sent.
protected array $parameters
리턴 array

$readableParameters 보호되어 있는 프로퍼티

After translating the human readable names into the payload ones, this collections contains the map for the payload names and the values to be sent.
protected array $readableParameters
리턴 array

$requiredParameters 보호되어 있는 프로퍼티

They are in the same human readable name as in the mapper above.
protected array $requiredParameters
리턴 array