setModelId() setModelId(integer $modelId) : self Set the model ID Parameters integer $modelId Returns self
setUsername() setUsername(string $username) : self Set the username Parameters string $username Returns self
setUserId() setUserId(integer $userId) : self Set the user ID Parameters integer $userId Returns self
setMetadata() setMetadata(array $metadata) : self Set the metadata Parameters array $metadata Returns self
addMetadata() addMetadata(string $name, mixed $value) : self Add to the metadata Parameters string $name mixed $value Returns self
hasMetadata() hasMetadata(string $name = null) : boolean Determine if there is metadata Parameters string $name Returns boolean
getMetadata() getMetadata(string $name = null) : mixed Get the metadata Parameters string $name Returns mixed
setDiff() setDiff(array $old = array(), array $new = array()) : self Set the differences in values between the model states (that have already been processed) Parameters array $old array $new Returns self
resolveDiff() resolveDiff(array $old = array(), array $new = array()) : self Resolve the differences in values between the model states Parameters array $old array $new Returns self
prepareData() prepareData(boolean $jsonEncode = true) : array Prepare data Parameters boolean $jsonEncode Returns array
send() send() : \Pop\Db\Record Send the results of the audit Throws \Pop\Audit\Adapter\Exception Returns \Pop\Db\Record
getStates() getStates(array $columns = null, array $options = null) : array Get model states Parameters array $columns array $options Returns array
getStateById() getStateById(integer $id) : array Get model state by ID Parameters integer $id Returns array
getStateByModel() getStateByModel(string $model, integer $modelId = null, array $columns = array()) : array Get model state by model Parameters string $model integer $modelId array $columns Returns array
getStateByTimestamp() getStateByTimestamp(string $from, string $backTo = null, array $columns = array()) : array Get model state by timestamp Parameters string $from string $backTo array $columns Returns array
getStateByDate() getStateByDate(string $from, string $backTo = null, array $columns = array()) : array Get model state by date Parameters string $from string $backTo array $columns Returns array
getSnapshot() getSnapshot(integer $id, boolean $post = false) : array Get model snapshot by ID Parameters integer $id boolean $post Returns array
__construct() __construct(string $table) Constructor Instantiate the table adapter object Parameters string $table
setTable() setTable(string $table) : \Pop\Audit\Adapter\Table Set the table Parameters string $table Returns \Pop\Audit\Adapter\Table
createTable() createTable(string $tableName) : void Create table in database Parameters string $tableName