EventWrapper
in package
implements
IQueryRow, JsonSerializable
Uses
TArrayTools
Class EventWrapper
Interfaces, Classes, Traits and Enums
- IQueryRow
- Interface IQueryRow
- JsonSerializable
Table of Contents
- STATUS_DONE = 8
- STATUS_FAILED = 1
- STATUS_INIT = 0
- STATUS_OVER = 9
- $TYPE_ARRAY : mixed
- $TYPE_BOOLEAN : mixed
- $TYPE_INTEGER : mixed
- $TYPE_NULL : mixed
- $TYPE_SERIALIZABLE : mixed
- $TYPE_STRING : mixed
- $creation : int
- $event : FederatedEvent
- $instance : string
- $interface : int
- $result : SimpleDataStore
- $retry : int
- $severity : int
- $status : int
- $token : string
- __construct() : mixed
- getCreation() : int
- getEvent() : FederatedEvent
- getInstance() : string
- getInterface() : int
- getResult() : SimpleDataStore
- getRetry() : int
- getSeverity() : int
- getStatus() : int
- getToken() : string
- hasEvent() : bool
- import() : self
- importFromDatabase() : IQueryRow
- import data to feed the model.
- jsonSerialize() : array<string|int, mixed>
- setCreation() : self
- setEvent() : self
- setInstance() : self
- setInterface() : self
- setResult() : $this
- setRetry() : EventWrapper
- setSeverity() : self
- setStatus() : self
- setToken() : self
- typeOf() : string
- validKey() : bool
- cleanArray() : mixed
- extractArray() : mixed
- get() : string
- getArray() : array<string|int, mixed>
- getBool() : bool
- getFloat() : float
- getInt() : int
- getList() : array<string|int, mixed>
- getObj() : mixed
- mustContains() : mixed
Constants
STATUS_DONE
public
mixed
STATUS_DONE
= 8
STATUS_FAILED
public
mixed
STATUS_FAILED
= 1
STATUS_INIT
public
mixed
STATUS_INIT
= 0
STATUS_OVER
public
mixed
STATUS_OVER
= 9
Properties
$TYPE_ARRAY
public
static mixed
$TYPE_ARRAY
= 'Array'
$TYPE_BOOLEAN
public
static mixed
$TYPE_BOOLEAN
= 'Boolean'
$TYPE_INTEGER
public
static mixed
$TYPE_INTEGER
= 'Integer'
$TYPE_NULL
public
static mixed
$TYPE_NULL
= 'Null'
$TYPE_SERIALIZABLE
public
static mixed
$TYPE_SERIALIZABLE
= 'Serializable'
$TYPE_STRING
public
static mixed
$TYPE_STRING
= 'String'
$creation
private
int
$creation
$event
private
FederatedEvent
$event
$instance
private
string
$instance
= ''
$interface
private
int
$interface
= 0
$result
private
SimpleDataStore
$result
$retry
private
int
$retry
= 0
$severity
private
int
$severity
= \OCA\Circles\Model\Federated\FederatedEvent::SEVERITY_LOW
$status
private
int
$status
= 0
$token
private
string
$token
= ''
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getCreation()
public
getCreation() : int
Return values
int —getEvent()
public
getEvent() : FederatedEvent
Return values
FederatedEvent —getInstance()
public
getInstance() : string
Return values
string —getInterface()
public
getInterface() : int
Return values
int —getResult()
public
getResult() : SimpleDataStore
Return values
SimpleDataStore —getRetry()
public
getRetry() : int
Return values
int —getSeverity()
public
getSeverity() : int
Return values
int —getStatus()
public
getStatus() : int
Return values
int —getToken()
public
getToken() : string
Return values
string —hasEvent()
public
hasEvent() : bool
Return values
bool —import()
public
import(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Tags
Return values
self —importFromDatabase()
import data to feed the model.
public
importFromDatabase(array<string|int, mixed> $data) : IQueryRow
Parameters
- $data : array<string|int, mixed>
Tags
Return values
IQueryRow —jsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed> —setCreation()
public
setCreation(int $creation) : self
Parameters
- $creation : int
Return values
self —setEvent()
public
setEvent(FederatedEvent $event) : self
Parameters
- $event : FederatedEvent
Return values
self —setInstance()
public
setInstance(string $instance) : self
Parameters
- $instance : string
Return values
self —setInterface()
public
setInterface(int $interface) : self
Parameters
- $interface : int
Return values
self —setResult()
public
setResult(SimpleDataStore $result) : $this
Parameters
- $result : SimpleDataStore
Return values
$this —setRetry()
public
setRetry(int $retry) : EventWrapper
Parameters
- $retry : int
Return values
EventWrapper —setSeverity()
public
setSeverity(int $severity) : self
Parameters
- $severity : int
Return values
self —setStatus()
public
setStatus(int $status) : self
Parameters
- $status : int
Return values
self —setToken()
public
setToken(string $token) : self
Parameters
- $token : string
Return values
self —typeOf()
public
typeOf(string $key, array<string|int, mixed> $arr[, bool $root = true ]) : string
Parameters
- $key : string
- $arr : array<string|int, mixed>
- $root : bool = true
Tags
Return values
string —validKey()
public
validKey(string $k, array<string|int, mixed> $arr) : bool
Parameters
- $k : string
- $arr : array<string|int, mixed>
Return values
bool —cleanArray()
protected
cleanArray(array<string|int, mixed> &$arr) : mixed
Parameters
- $arr : array<string|int, mixed>
Return values
mixed —extractArray()
protected
extractArray(string $k, string $value, array<string|int, mixed> $list) : mixed
Parameters
- $k : string
- $value : string
- $list : array<string|int, mixed>
Tags
Return values
mixed —get()
protected
get(string $k, array<string|int, mixed> $arr[, string $default = '' ]) : string
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : string = ''
Return values
string —getArray()
protected
getArray(string $k, array<string|int, mixed> $arr[, array<string|int, mixed> $default = [] ]) : array<string|int, mixed>
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getBool()
protected
getBool(string $k, array<string|int, mixed> $arr[, bool $default = false ]) : bool
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : bool = false
Return values
bool —getFloat()
protected
getFloat(string $k, array<string|int, mixed> $arr, float $default) : float
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : float
Return values
float —getInt()
protected
getInt(string $k, array<string|int, mixed> $arr, int $default) : int
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : int
Return values
int —getList()
protected
getList(string $k, array<string|int, mixed> $arr, array<string|int, mixed> $import[, array<string|int, mixed> $default = [] ]) : array<string|int, mixed>
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $import : array<string|int, mixed>
- $default : array<string|int, mixed> = []
Return values
array<string|int, mixed> —getObj()
protected
getObj(string $k, array<string|int, mixed> $arr[, JsonSerializable|null $default = null ]) : mixed
Parameters
- $k : string
- $arr : array<string|int, mixed>
- $default : JsonSerializable|null = null
Return values
mixed —mustContains()
protected
mustContains(array<string|int, mixed> $keys, array<string|int, mixed> $arr) : mixed
Parameters
- $keys : array<string|int, mixed>
- $arr : array<string|int, mixed>