Factory
Class Base
Table of Contents
Methods
- create() : Base
- Create channel instance.
- createCollection() : Collection
- Create collection by trace ID.
- createSiteChannelByHost() : Base|Site|Site24|SiteDomain
- Create site channel instance by host.
- getClass() : null|string
- Get class.
- getCodes() : array<string|int, mixed>
- Get list of codes.
- getNames() : array<string|int, mixed>
- Get list of names.
- isKnown() : null|string
- Get Return true if channel is known by code.
Methods
create()
Create channel instance.
public
static create(string $code[, string|null $value = null ]) : Base
Parameters
- $code : string
-
Code.
- $value : string|null = null
-
Value.
Tags
Return values
BasecreateCollection()
Create collection by trace ID.
public
static createCollection(int $traceId) : Collection
Parameters
- $traceId : int
-
Trace ID.
Return values
CollectioncreateSiteChannelByHost()
Create site channel instance by host.
public
static createSiteChannelByHost(string $host) : Base|Site|Site24|SiteDomain
Parameters
- $host : string
-
Host.
Return values
Base|Site|Site24|SiteDomaingetClass()
Get class.
public
static getClass(string $code) : null|string
Parameters
- $code : string
-
Code.
Return values
null|stringgetCodes()
Get list of codes.
public
static getCodes() : array<string|int, mixed>
Return values
array<string|int, mixed>getNames()
Get list of names.
public
static getNames() : array<string|int, mixed>
Return values
array<string|int, mixed>isKnown()
Get Return true if channel is known by code.
public
static isKnown(string $code) : null|string
Parameters
- $code : string
-
Code.