SyncService uses ContextCustomer
Table of Contents
Methods
- getChangesFromDate() : array<string|int, mixed>
- getChangesFromId() : array<string|int, mixed>
- getContext() : Context
- Returns the local or global context for the action.
- isEnable() : bool
- setContext() : self
- Sets new context for operations.
- setContextUser() : self
- withContext() : static
- Provides local context for the action.
- withContextUser() : static
- Provides local context for the action.
Methods
getChangesFromDate()
public
getChangesFromDate(DateTime $date, int $limit) : array<string|int, mixed>
Parameters
- $date : DateTime
- $limit : int
Return values
array<string|int, mixed>getChangesFromId()
public
getChangesFromId(int|null $id, int $limit) : array<string|int, mixed>
Parameters
- $id : int|null
- $limit : int
Return values
array<string|int, mixed>getContext()
Returns the local or global context for the action.
public
getContext() : Context
Return values
ContextisEnable()
public
static isEnable() : bool
Return values
boolsetContext()
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
selfwithContext()
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