Bristol SU Support Package
Public Member Functions | Private Attributes | List of all members
BristolSU\Support\Action\History\HasHistory Class Reference

Public Member Functions

 setActionInstanceId (int $actionInstanceId)
 
 setEventFields (array $eventFields)
 
 setSettings (array $settings)
 
 saveHistory (ActionResponse $response)
 

Private Attributes

 $actionInstanceId
 
 $eventFields
 
 $settings
 

Detailed Description

Definition at line 9 of file HasHistory.php.

Member Function Documentation

◆ saveHistory()

BristolSU\Support\Action\History\HasHistory::saveHistory ( ActionResponse  $response)

Save the history of the action run

Parameters
ActionResponse$responseResponse of the run
Exceptions
ExceptionIf the action instance ID is not given

Definition at line 69 of file HasHistory.php.

References BristolSU\Support\Action\ActionResponse\getMessage(), BristolSU\Support\Action\ActionResponse\getSuccess(), and function\settings().

◆ setActionInstanceId()

BristolSU\Support\Action\History\HasHistory::setActionInstanceId ( int  $actionInstanceId)

Set the action instance for use in the action history records

Parameters
int$actionInstanceId

Definition at line 38 of file HasHistory.php.

References BristolSU\Support\Action\History\HasHistory\$actionInstanceId.

◆ setEventFields()

BristolSU\Support\Action\History\HasHistory::setEventFields ( array  $eventFields)

Set the fields given by the event

Parameters
array$eventFields

Definition at line 48 of file HasHistory.php.

References BristolSU\Support\Action\History\HasHistory\$eventFields.

◆ setSettings()

BristolSU\Support\Action\History\HasHistory::setSettings ( array  $settings)

Set the data passed to the action

Parameters
array$settings

Definition at line 58 of file HasHistory.php.

References BristolSU\Support\Action\History\HasHistory\$settings, and function\settings().

Member Data Documentation

◆ $actionInstanceId

BristolSU\Support\Action\History\HasHistory::$actionInstanceId
private

◆ $eventFields

BristolSU\Support\Action\History\HasHistory::$eventFields
private

◆ $settings

BristolSU\Support\Action\History\HasHistory::$settings
private

The documentation for this class was generated from the following file: