hasPerformedAction()

Overview

public boolean function hasPerformedAction(
      required string type       
    , required string action     
    ,          string userId      = ""
    ,          string dateFrom    = ""
    ,          string dateTo      = ""
    ,          array  identifiers
)

Returns whether or not the given user has performed the given action. Uses the current visitor when no user supplied.

Arguments

NameTypeRequiredDescription
typestringYesType of the action
actionstringYesAction ID
userIdstringNo (default="")ID of the user who performed the action (if blank or ommitted, the current visitor ID will be used instead)
dateFromstringNo (default="")Optional date from which the user has performed the action
dateTostringNo (default="")Optional date to which the user has performed the action
identifiersarrayNoArray of identifiers with which to filter the actions