SCHLIX\cmsMacro
Inherited from cmsTemplateViewer
Implements interface_cmsMacro
Inherits BannedIP, DisplayArticleMeta, FrontendEditControl, Gallery, InsertBlockByName, insertblockbyposition, InsertContactForm
Implements interface_cmsMacro
Inherits BannedIP, DisplayArticleMeta, FrontendEditControl, Gallery, InsertBlockByName, insertblockbyposition, InsertContactForm
Protected Attributes
protected | $config | |
protected | $macro_name |
Protected Methods
protected array | getGenericAttributesFromText(string $html_string, string $prefix, string $open_tag='{', string $close_tag='}') Given HTML string, returns all attributes of macro text e.g. {contact id="1" header="Test"} where "{" is $open_tag and "}" is $close_tag. There can be more than 1 macro in the $html_string.
It will return an array where for each array, it will contain 2 main keys: 'attributes' and 'macro', where 'macro' is the original text and 'attributes' contain another array of all the parsed attributes
|
Public Methods
public | __construct(array $config) Constructor
|
public | recordLog(string $message, string $type='info') Record System Log. Type can be info, error, warning, or debug $SystemLog
|
public | appendBeforeArticleOuput(array $data, string $text) Append before output
|
public | appendAfterArticleOuput(array $data, string $text) Append before output
|
public | appendAtTheTopOfArticleOuput(array $data, string $text) Append before output
|
public | appendAtTheBottomOfArticleOuput(array $data, string $text) Append before output
|
public array | getConfiguration() Get macro config
|
public bool | Run(string $data, object $caller_object, string $caller_function, array $extra_info=false) Run the macro
|