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
Name | Type | Required | Description |
---|---|---|---|
type | string | Yes | Type of the action |
action | string | Yes | Action ID |
userId | string | No (default="") | ID of the user who performed the action (if blank or ommitted, the current visitor ID will be used instead) |
dateFrom | string | No (default="") | Optional date from which the user has performed the action |
dateTo | string | No (default="") | Optional date to which the user has performed the action |
identifiers | array | No | Array of identifiers with which to filter the actions |