KeyParser
Key Parser trait
trait Winter\Storm\Support\Traits\KeyParser
Resolves key strings into namespace, group and item. Example: namespace::group.item
Properties
protected
$keyParserCache
:
array
= []
A cache of the parsed items.
Methods
public parseKey (string $key) : array
Parse a key into namespace, group, and item.
Parameters
Property | Type | Description |
---|---|---|
$key | string |
string
|
Returns
array
public setParsedKey (string $key, array $parsed) : void
Set the parsed value of a key.
Parameters
Property | Type | Description |
---|---|---|
$key | string |
string
|
$parsed | array |
array
|
Returns
void
protected keyParserParseBasicSegments (array $segments) : array
Parse an array of basic segments.
Parameters
Property | Type | Description |
---|---|---|
$segments | array |
array
|
Returns
array
protected keyParserParseSegments (string $key) : array
Parse an array of namespaced segments.
Parameters
Property | Type | Description |
---|---|---|
$key | string |
string
|
Returns
array
Used by
Class | Description |
---|---|
Parameter
|
Parameters model Used for storing internal application parameters. |
UserPreference
|
All preferences for the backend user |
Preferences
|
User Preferences model |
Repository
|
Winter config repository class. |
← Previous page
Winter\Storm\Support\Traits\Emitter
Next page →
Winter\Storm\Support\Traits\Singleton
Copyright © 2024 Winter CMS