MessageParam extends DataBroker
Class data store.
Table of Contents
Methods
- create() : EntityObject|null
- Returns empty entity object.
- get() : EO_MessageParam
- Returns entity object by it's primary id.
- getInstance() : self
- has() : bool
- Checks whether the broker with code exists.
- query() : Query
- Returns broker by code.
- register() : void
- Adds config of broker to locator.
- save() : Result
Methods
create()
Returns empty entity object.
public
create([string $type = 'default' ]) : EntityObject|null
Parameters
- $type : string = 'default'
-
return ORM\Query\Result
Return values
EntityObject|nullget()
Returns entity object by it's primary id.
public
get(mixed $primaryId[, string $type = = '\'default\'' ]) : EO_MessageParam
Parameters
- $primaryId : mixed
- $type : string = = '\'default\''
-
return ORM\Query\Result
Return values
EO_MessageParamgetInstance()
public
static getInstance() : self
Return values
selfhas()
Checks whether the broker with code exists.
public
has([string $type = 'default' ]) : bool
Parameters
- $type : string = 'default'
Return values
boolquery()
Returns broker by code.
public
query([string $type = 'default' ]) : Query
Parameters
- $type : string = 'default'
Tags
Return values
Queryregister()
Adds config of broker to locator.
public
register(string|Closure $config[, string $type = 'default' ]) : void
Parameters
- $config : string|Closure
- $type : string = 'default'
save()
public
save(EO_MessageParam $object[, string $type = = '\'default\'' ]) : Result
Parameters
- $object : EO_MessageParam
- $type : string = = '\'default\''