All Data Structures Functions Variables Pages
Static Public Member Functions | Static Protected Member Functions
AuditUtil Class Reference

Static Public Member Functions

static throwNotSupportedExceptionIfNotCalledFromAnItem ()
 
static saveOriginalAttributeValue ($auditableModel, $attributeName, $value)
 
static logAuditEventsListForChangedAttributeValues (Item $item, array $attributeNames=array(), RedBeanModel $ownedModel=null)
 
static stringifyValue ($attributeModel, $attributeName, $value, $format= 'long')
 
static clearRelatedModelsOriginalAttributeValues (Item $item)
 

Static Protected Member Functions

static getNoAuditAttributeNames ($auditableModel)
 

Detailed Description

Provides functionality needed by Item, OwnedAuditableModel, and OwnedAuditableCustomField, (which do not have a common inheritance hierarchy), for saving old values on __set and writing audit entries.

Definition at line 42 of file AuditUtil.php.

Member Function Documentation

static saveOriginalAttributeValue (   $auditableModel,
  $attributeName,
  $value 
)
static
Parameters
object$auditableModel
$attributeName
$value

Definition at line 66 of file AuditUtil.php.

static logAuditEventsListForChangedAttributeValues ( Item  $item,
array  $attributeNames = array(),
RedBeanModel  $ownedModel = null 
)
static
Parameters
Item$item
array$attributeNames
RedBeanModel$ownedModel

Definition at line 102 of file AuditUtil.php.

static stringifyValue (   $attributeModel,
  $attributeName,
  $value,
  $format = 'long' 
)
static
Parameters
$attributeModel
$attributeName
$value
string$format
Returns
string

Definition at line 195 of file AuditUtil.php.

static clearRelatedModelsOriginalAttributeValues ( Item  $item)
static
Parameters
Item$item

Definition at line 250 of file AuditUtil.php.


The documentation for this class was generated from the following file:
Generated on Sun Feb 16 2020 07:10:32