PHP Класс Piwik\Tracker\Action

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$request Request Public so that events listener can access it

Открытые методы

Метод Описание
__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 ( )

Защищенные методы

Метод Описание
getActionsToLookup ( )
getUrlAndType ( )
setActionName ( $name )
setActionUrl ( $url )
setActionUrlWithoutExcludingParameters ( $url )

Приватные методы

Метод Описание
getAllActions ( Request $request )
getModel ( )
getPriority ( Action $actionType )
isActionHasActionName ( ) : boolean

Описание методов

__construct() публичный Метод

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

factory() публичный статический Метод

Makes the correct Action object based on the request.
public static factory ( Request $request ) : Action
$request Request
Результат Action

getActionName() публичный Метод

public getActionName ( )

getActionType() публичный Метод

public getActionType ( )

getActionUrl() публичный Метод

Returns URL of the page currently being tracked, or the file being downloaded, or the outlink being clicked
public getActionUrl ( ) : string
Результат string

getActionUrlRaw() публичный Метод

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

getActionsToLookup() абстрактный защищенный Метод

abstract protected getActionsToLookup ( )

getCustomFields() публичный Метод

public getCustomFields ( )

getCustomFloatValue() публичный Метод

custom_float column
public getCustomFloatValue ( )

getCustomVariables() публичный Метод

public getCustomVariables ( )

getIdActionName() публичный Метод

public getIdActionName ( )

getIdActionNameForEntryAndExitIds() публичный Метод

getIdActionUrl() публичный Метод

public getIdActionUrl ( )

getIdActionUrlForEntryAndExitIds() публичный Метод

getIdLinkVisitAction() публичный Метод

Returns the ID of the newly created record in the log_link_visit_action table
public getIdLinkVisitAction ( ) : integer
Результат integer

getTypeAsString() публичный статический Метод

public static getTypeAsString ( $type )

getUrlAndType() защищенный Метод

protected getUrlAndType ( )

loadIdsFromLogActionTable() публичный Метод

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() публичный Метод

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 setActionName ( $name )

setActionUrl() защищенный Метод

protected setActionUrl ( $url )

setActionUrlWithoutExcludingParameters() защищенный Метод

setCustomField() публичный Метод

public setCustomField ( $field, $value )

shouldHandle() публичный статический Метод

public static shouldHandle ( Request $request )
$request Request

writeDebugInfo() публичный Метод

public writeDebugInfo ( )

Описание свойств

$request публичное свойство

Public so that events listener can access it
public Request,Piwik\Tracker $request
Результат Request