ContentSelector
in package
Content selector
Table of Contents
Constants
- CONTENT_PROVIDER_TYPE = 'content'
- DB_MODEL_TYPE = 'model'
- SELECTOR_TYPES = [Self::CONTENT_PROVIDER_TYPE, Self::DB_MODEL_TYPE]
Methods
- create() : string
- Create content selector
- isValid() : bool
- Return true if content selector is valid
- parse() : array<string|int, mixed>|null
- Parse content selector
Constants
CONTENT_PROVIDER_TYPE
public
mixed
CONTENT_PROVIDER_TYPE
= 'content'
DB_MODEL_TYPE
public
mixed
DB_MODEL_TYPE
= 'model'
SELECTOR_TYPES
public
mixed
SELECTOR_TYPES
= [Self::CONTENT_PROVIDER_TYPE, Self::DB_MODEL_TYPE]
Methods
create()
Create content selector
public
static create(string $provider, string $contentType, string $keyFields, string $key[, string $type = 'content' ]) : string
Parameters
- $provider : string
- $contentType : string
- $keyFields : string
- $key : string
- $type : string = 'content'
Return values
stringisValid()
Return true if content selector is valid
public
static isValid(string $selector) : bool
Parameters
- $selector : string
Return values
boolparse()
Parse content selector
public
static parse(string $selector) : array<string|int, mixed>|null
{type} > {provider name|model name,type name|extension name} : {key_fields...} : {key_values...}
result array keys - type, provider, content_type, key_fields, key_values
Parameters
- $selector : string