Property | Type | Description | |
---|---|---|---|
$table | string |
Property | Type | Description | |
---|---|---|---|
$revisionFormattedFields | array |
Method | Description | |
---|---|---|
__construct ( array $attributes = [] ) | ||
fieldName ( ) : string | Field Name | |
format ( $key, $value ) : string | Format the value according to the $revisionFormattedFields array. | |
historyOf ( ) : Object | false | Returns the object we have the history of | |
newValue ( ) : string | New Value. | |
oldValue ( ) : string | Old Value. | |
revisionable ( ) : array | Revisionable. | |
userResponsible ( ) : User | User Responsible. |
Method | Description | |
---|---|---|
formatFieldName ( $key ) : boolean | Format field name. | |
getRelatedModel ( ) : string | Return the name of the related model. | |
getValue ( string $which = 'new' ) : string | Responsible for actually doing the grunt work for getting the old or new value for the revision. | |
isRelated ( ) : boolean | Return true if the key is for a related model. |
public historyOf ( ) : Object | false | ||
return | Object | false |
public revisionable ( ) : array | ||
return | array | revision history |
public userResponsible ( ) : User | ||
return | User | user responsible for the change |