Documentation

AuditlogHelper
in package

Table of Contents

Properties

$base64_field_threshold  : mixed
$disabled  : mixed
$hashcluster  : mixed
$log_struct  : array<string|int, mixed>

Methods

__construct()  : mixed
appendAdditionalData()  : mixed
commitLogEntry()  : mixed
disableAuditlog()  : mixed
enableAuditlog()  : mixed
getHashCluster()  : mixed
isAuditlogDisabled()  : mixed
prepareLogEntry()  : mixed
buildAuditlogEntry()  : mixed
getCrunzTaskAuditlogConfig()  : bool
getExcludeFields()  : mixed
getObfuscateFields()  : mixed
getObjectRelField()  : mixed
If the entity::auditlog array doesn't have 'object_rel' key, the 'object_rel' column will be filled with the 'primary key' from the current page if the 'entity' has this field, or using the 'primary key' from 'entity' (in this case, 'object_id' and 'object_rel' will be the same)
getPageId()  : mixed
getPageName()  : mixed
obfuscateValue()  : mixed
prepareChanges()  : mixed
prepareModel()  : mixed

Properties

$base64_field_threshold

private static mixed $base64_field_threshold = 3000

Methods

appendAdditionalData()

public appendAdditionalData(mixed $log_obj, mixed $data_array) : mixed
Parameters
$log_obj : mixed
$data_array : mixed

commitLogEntry()

public commitLogEntry([mixed $insert_id = null ]) : mixed
Parameters
$insert_id : mixed = null

disableAuditlog()

public static disableAuditlog([mixed $print_caller = true ]) : mixed
Parameters
$print_caller : mixed = true

enableAuditlog()

public static enableAuditlog([mixed $print_caller = true ]) : mixed
Parameters
$print_caller : mixed = true

isAuditlogDisabled()

public static isAuditlogDisabled() : mixed

prepareLogEntry()

public prepareLogEntry(mixed $model, mixed $sql) : mixed
Parameters
$model : mixed
$sql : mixed

buildAuditlogEntry()

private buildAuditlogEntry(mixed $log) : mixed
Parameters
$log : mixed

getCrunzTaskAuditlogConfig()

private getCrunzTaskAuditlogConfig() : bool
Return values
bool

getExcludeFields()

private getExcludeFields(mixed $entity) : mixed
Parameters
$entity : mixed

getObfuscateFields()

private getObfuscateFields(mixed $entity) : mixed
Parameters
$entity : mixed

getObjectRelField()

If the entity::auditlog array doesn't have 'object_rel' key, the 'object_rel' column will be filled with the 'primary key' from the current page if the 'entity' has this field, or using the 'primary key' from 'entity' (in this case, 'object_id' and 'object_rel' will be the same)

private getObjectRelField(mixed $entity, mixed $page_id) : mixed

@return string Return the field name that will be used to get the 'object_rel' (object related) content

Parameters
$entity : mixed
$page_id : mixed

getPageId()

private getPageId(mixed $entity) : mixed
Parameters
$entity : mixed

getPageName()

private getPageName(mixed $page_id) : mixed
Parameters
$page_id : mixed

obfuscateValue()

private obfuscateValue(mixed $value) : mixed
Parameters
$value : mixed

prepareChanges()

private prepareChanges(mixed $array_old, mixed $array_new[, mixed $exclude_fields = [] ][, mixed $obfuscate_fields = [] ]) : mixed
Parameters
$array_old : mixed
$array_new : mixed
$exclude_fields : mixed = []
$obfuscate_fields : mixed = []

prepareModel()

private prepareModel(mixed $entity, mixed $model, mixed $relation_field) : mixed
Parameters
$entity : mixed
$model : mixed
$relation_field : mixed

        
On this page

Search results