PHP Класс app\blocks\ConcreptImplementationBlock

Наследование: implements luya\cms\base\BlockInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
blockGroup ( ) : luya\cms\base\BlockGroup Returns a class of the blocks group.
config ( ) : array Returns the configuration array.
getCacheExpirationTime ( ) The time of cache expiration
getConfigCfgsExport ( ) : array Returns all config cfgs element of key value pairing to pass to the API and frontend.
getConfigPlaceholdersExport ( ) : array Returns all config placeholders element of key value pairing to pass to the API and frontend.
getConfigVarsExport ( ) : array Returns all config vars element of key value pairing to pass to the API and frontend.
getExtraVarValues ( ) : array Returns an array of key value pairing with additional informations to pass to the API and frontend.
getFieldHelp ( ) : array Returns an array with additional help informations for specific field (var or cfg).
getIsCacheEnabled ( ) : boolean Whether cache is enabled for this block or not.
getIsContainer ( ) Whether is an container element or not.
icon ( ) : string Returns the icon based on material icon names
name ( ) Get the name of the block in order to display in administration context.
renderAdmin ( ) : string Get the output in administration context.
renderFrontend ( ) : string Get the output in the frontend context.
setCfgValues ( array $values ) Set the values for element cfgs with an array key value binding.
setEnvOption ( string $key, mixed $value ) Set an environment option informations to the block with key value pairing.
setPlaceholderValues ( array $placeholders ) Set the value from placeholders where the array key is the name of value the content of the placeholder.
setVarValues ( array $values ) Set the values for element vars with an array key value binding.

Описание методов

blockGroup() публичный метод

Returns a class of the blocks group.
public blockGroup ( ) : luya\cms\base\BlockGroup
Результат luya\cms\base\BlockGroup

config() публичный метод

Returns the configuration array.
public config ( ) : array
Результат array

getCacheExpirationTime() публичный метод

The time of cache expiration

getConfigCfgsExport() публичный метод

Returns all config cfgs element of key value pairing to pass to the API and frontend.
public getConfigCfgsExport ( ) : array
Результат array

getConfigPlaceholdersExport() публичный метод

Returns all config placeholders element of key value pairing to pass to the API and frontend.
public getConfigPlaceholdersExport ( ) : array
Результат array

getConfigVarsExport() публичный метод

Returns all config vars element of key value pairing to pass to the API and frontend.
public getConfigVarsExport ( ) : array
Результат array

getExtraVarValues() публичный метод

Returns an array of key value pairing with additional informations to pass to the API and frontend.
public getExtraVarValues ( ) : array
Результат array

getFieldHelp() публичный метод

Returns an array with additional help informations for specific field (var or cfg).
public getFieldHelp ( ) : array
Результат array An array where the key is the cfg/var field var name and the value the helper text.

getIsCacheEnabled() публичный метод

Whether cache is enabled for this block or not.
public getIsCacheEnabled ( ) : boolean
Результат boolean

getIsContainer() публичный метод

Whether is an container element or not.
public getIsContainer ( )

icon() публичный метод

Returns the icon based on material icon names
public icon ( ) : string
Результат string

name() публичный метод

Get the name of the block in order to display in administration context.
public name ( )

renderAdmin() публичный метод

Get the output in administration context.
public renderAdmin ( ) : string
Результат string

renderFrontend() публичный метод

Get the output in the frontend context.
public renderFrontend ( ) : string
Результат string

setCfgValues() публичный метод

Set the values for element cfgs with an array key value binding.
public setCfgValues ( array $values )
$values array An array where key is the name of the cfg-element and value the content.

setEnvOption() публичный метод

Set an environment option informations to the block with key value pairing.
public setEnvOption ( string $key, mixed $value )
$key string The identifier key.
$value mixed The value for the key.

setPlaceholderValues() публичный метод

Set the value from placeholders where the array key is the name of value the content of the placeholder.
public setPlaceholderValues ( array $placeholders )
$placeholders array An array with placeholders where key is name and the value the content e.g. `['content' => 'The placheholder Content']`.

setVarValues() публичный метод

Set the values for element vars with an array key value binding.
public setVarValues ( array $values )
$values array An array where key is the name of the var-element and value the content.