PHP Class Piwik\Plugins\Live\Visitor

Inheritance: implements Piwik\Plugins\Live\VisitorInterface
Mostrar archivo Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( $visitorRawData )
cleanVisitorDetails ( array $visitorDetails ) : array Removes fields that are not meant to be displayed (md5 config hash) Or that the user should only access if he is Super User or admin (cookie, IP)
enrichVisitorArrayWithActions ( $visitorDetailsArray, $actionsLimit, $timezone ) : array
flattenVisitorDetailsArray ( $visitorDetailsArray ) : array The &flat=1 feature is used by API.getSuggestedValuesForSegment
getAllVisitorDetails ( )
getDateTimeLastAction ( )
getIdSite ( )
getIdVisit ( )
getIp ( )
getServerDate ( )
getTimestampLastAction ( )
getVisitServerHour ( )
getVisitorId ( )

Private Methods

Method Description
getCustomVariablePrettyKey ( $key )
sortByServerTime ( $a, $b )

Method Details

__construct() public method

public __construct ( $visitorRawData )

cleanVisitorDetails() public static method

Removes fields that are not meant to be displayed (md5 config hash) Or that the user should only access if he is Super User or admin (cookie, IP)
public static cleanVisitorDetails ( array $visitorDetails ) : array
$visitorDetails array
return array

enrichVisitorArrayWithActions() public static method

public static enrichVisitorArrayWithActions ( $visitorDetailsArray, $actionsLimit, $timezone ) : array
$visitorDetailsArray
$actionsLimit
$timezone
return array

flattenVisitorDetailsArray() public static method

The &flat=1 feature is used by API.getSuggestedValuesForSegment
public static flattenVisitorDetailsArray ( $visitorDetailsArray ) : array
$visitorDetailsArray
return array

getAllVisitorDetails() public method

getDateTimeLastAction() public method

getIdSite() public method

public getIdSite ( )

getIdVisit() public method

public getIdVisit ( )

getIp() public method

public getIp ( )

getServerDate() public method

public getServerDate ( )

getTimestampLastAction() public method

getVisitServerHour() public method

public getVisitServerHour ( )

getVisitorId() public method

public getVisitorId ( )