Logger uses ContextCustomer
Table of Contents
Constants
- DEFAULT_EXPIRY_INTERVAL = '+4 weeks'
- FAST_EXPIRY_INTERVAL = '+1 days'
Methods
- add() : void
- clean() : void
- cleanAgent() : string
- getContext() : Context
- Returns the local or global context for the action.
- getInstance() : self
- setContext() : self
- Sets new context for operations.
- setContextUser() : self
- updateDateDelete() : void
- withContext() : static
- Provides local context for the action.
- withContextUser() : static
- Provides local context for the action.
Constants
DEFAULT_EXPIRY_INTERVAL
public
mixed
DEFAULT_EXPIRY_INTERVAL
= '+4 weeks'
FAST_EXPIRY_INTERVAL
public
mixed
FAST_EXPIRY_INTERVAL
= '+1 days'
Methods
add()
public
add(Event $event, mixed $userId[, string|null $chatType = null ]) : void
Parameters
- $event : Event
- $userId : mixed
- $chatType : string|null = null
clean()
public
clean() : void
cleanAgent()
public
static cleanAgent() : string
Return values
stringgetContext()
Returns the local or global context for the action.
public
getContext() : Context
Return values
ContextgetInstance()
public
static getInstance() : self
Return values
selfsetContext()
Sets new context for operations.
public
setContext(Context|null $context) : self
Parameters
- $context : Context|null
Return values
selfsetContextUser()
public
setContextUser(mixed $user) : self
Parameters
- $user : mixed
Return values
selfupdateDateDelete()
public
updateDateDelete(EO_Log_Collection $logs[, DateTime|null $dateDelete = null ]) : void
Parameters
- $logs : EO_Log_Collection
- $dateDelete : DateTime|null = null
withContext()
Provides local context for the action.
public
withContext(Context|null $context) : static
Parameters
- $context : Context|null
Return values
staticwithContextUser()
Provides local context for the action.
public
withContextUser(int|User|User $user) : static
Parameters
- $user : int|User|User