The item must be uniquely identified by $guid. Any other details about
the event are passed in $attributes. Standard suggested attributes are:
- who: The id of the user that performed the action (will be added
automatically if not present).
- ts: Timestamp of the action (this will be added automatically if it
is not present).
public log ( string $guid, array $attributes = [], boolean $replaceAction = false ) | ||
$guid | string | The unique identifier of the entry to add to. |
$attributes | array | The hash of name => value entries that describe this event. |
$replaceAction | boolean | If $attributes['action'] is already present in the item's history log, update that entry instead of creating a new one. |