PHP Class Piwik\Tracker\Action

Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

Свойство Type Description
$request Request Public so that events listener can access it

Méthodes publiques

Méthode Description
__construct ( $type, Request $request )
factory ( Request $request ) : Action Makes the correct Action object based on the request.
getActionName ( )
getActionType ( )
getActionUrl ( ) : string Returns URL of the page currently being tracked, or the file being downloaded, or the outlink being clicked
getActionUrlRaw ( ) Returns URL of page being tracked, including all original Query parameters
getCustomFields ( )
getCustomFloatValue ( ) custom_float column
getCustomVariables ( )
getIdActionName ( )
getIdActionNameForEntryAndExitIds ( )
getIdActionUrl ( )
getIdActionUrlForEntryAndExitIds ( )
getIdLinkVisitAction ( ) : integer Returns the ID of the newly created record in the log_link_visit_action table
getTypeAsString ( $type )
loadIdsFromLogActionTable ( ) Loads the idaction of the current action name and the current action url.
record ( Piwik\Tracker\Visitor $visitor, integer $idReferrerActionUrl, $idReferrerActionName ) Records in the DB the association between the visit and this action.
setCustomField ( $field, $value )
shouldHandle ( Request $request )
writeDebugInfo ( )

Méthodes protégées

Méthode Description
getActionsToLookup ( )
getUrlAndType ( )
setActionName ( $name )
setActionUrl ( $url )
setActionUrlWithoutExcludingParameters ( $url )

Private Methods

Méthode Description
getAllActions ( Request $request )
getModel ( )
getPriority ( Action $actionType )
isActionHasActionName ( ) : boolean

Method Details

__construct() public méthode

public __construct ( $type, Request $request )
$request Request

factory() public static méthode

Makes the correct Action object based on the request.
public static factory ( Request $request ) : Action
$request Request
Résultat Action

getActionName() public méthode

public getActionName ( )

getActionType() public méthode

public getActionType ( )

getActionUrl() public méthode

Returns URL of the page currently being tracked, or the file being downloaded, or the outlink being clicked
public getActionUrl ( ) : string
Résultat string

getActionUrlRaw() public méthode

Returns URL of page being tracked, including all original Query parameters
public getActionUrlRaw ( )

getActionsToLookup() abstract protected méthode

abstract protected getActionsToLookup ( )

getCustomFields() public méthode

public getCustomFields ( )

getCustomFloatValue() public méthode

custom_float column
public getCustomFloatValue ( )

getCustomVariables() public méthode

public getCustomVariables ( )

getIdActionName() public méthode

public getIdActionName ( )

getIdActionNameForEntryAndExitIds() public méthode

getIdActionUrl() public méthode

public getIdActionUrl ( )

getIdActionUrlForEntryAndExitIds() public méthode

getIdLinkVisitAction() public méthode

Returns the ID of the newly created record in the log_link_visit_action table
public getIdLinkVisitAction ( ) : integer
Résultat integer

getTypeAsString() public static méthode

public static getTypeAsString ( $type )

getUrlAndType() protected méthode

protected getUrlAndType ( )

loadIdsFromLogActionTable() public méthode

These idactions are used in the visitor logging table to link the visit information (entry action, exit action) to the actions. These idactions are also used in the table that links the visits and their actions. The methods takes care of creating a new record(s) in the action table if the existing action name and action url doesn't exist yet.

record() public méthode

Records in the DB the association between the visit and this action.
public record ( Piwik\Tracker\Visitor $visitor, integer $idReferrerActionUrl, $idReferrerActionName )
$visitor Piwik\Tracker\Visitor
$idReferrerActionUrl integer is the ID of the last action done by the current visit.
$idReferrerActionName

setActionName() protected méthode

protected setActionName ( $name )

setActionUrl() protected méthode

protected setActionUrl ( $url )

setActionUrlWithoutExcludingParameters() protected méthode

setCustomField() public méthode

public setCustomField ( $field, $value )

shouldHandle() public static méthode

public static shouldHandle ( Request $request )
$request Request

writeDebugInfo() public méthode

public writeDebugInfo ( )

Property Details

$request public_oe property

Public so that events listener can access it
public Request,Piwik\Tracker $request
Résultat Request