Keys
class Keys (View source)
The Keys class provides all methods to search all kind of content variables (keys of the data array) used in templates.
Properties
static | $reserved | Array with reserved variable keys. |
Methods
Get color variable keys from an array of keys.
Get settings variable keys from an array of keys.
Get text variable keys from an array of keys.
Find all variable keys in the currently used template and all included snippets (and ignore those keys in $this->reserved).
Find all variable keys in a template and all included snippets (and ignore those keys in $this->reserved).
Cleans up an array of keys. All reserved and duplicate keys get removed and the optional UI mask is applied.
Details
at line 73
static array
filterColorKeys(array $keys)
Get color variable keys from an array of keys.
at line 85
static array
filterSettingKeys(array $keys)
Get settings variable keys from an array of keys.
at line 99
static array
filterTextKeys(array $keys)
Get text variable keys from an array of keys.
at line 112
static array
inCurrentTemplate(Page $Page, Theme|null $Theme = null)
Find all variable keys in the currently used template and all included snippets (and ignore those keys in $this->reserved).
at line 130
static array
inTemplate(string $file)
Find all variable keys in a template and all included snippets (and ignore those keys in $this->reserved).
at line 171
static array
inTheme(Theme $Theme)
Find all variable keys in templates of a given theme.
at line 189
static private array
cleanUp(array $keys, array $mask = array())
Cleans up an array of keys. All reserved and duplicate keys get removed and the optional UI mask is applied.