\GSPPanel\EventLog
This class allows interaction with the eventlogs
Methods
Add(array $params) : void
Add an event to the eventlog
$params requires the following:
- message: The message(REQUIRED)
- userid: The affected user's id(optional)
- runby: The user's id that ran the logged event(optional)
- type: The type of event, this allows filtering(optional, values: login, gamectrl, usermgmt, gamemgmt, sysmgmt)
- ugid: The affected user's gameserver id(optional)
- subuser: If the runby userid is a subuser(optional, true/false)
Name | Type | Description |
---|---|---|
$params | array |
ViewLog(array $params = array()) : array
Displays the eventlog
$params requires the following:
- limit: Limit of how many records to return
- orderby: The column to order the records by
- userid: User's id to retrieve records for
- type: The type of records to retrieve
- runby: The runby user's id
- ugid: The users gameserver id
- runbyor: The runby user's id, this one is used for looking for a subuser event
Name | Type | Description |
---|---|---|
$params | array |
Type | Description |
---|---|
array |