ContentZoneLoader
in package
Class ContentZoneLoader
Table of Contents
- SMARTY_FUNCTION_PATTERN = '/\{([\w]+)((?:\s[\w]+[\s]*=[\s]*(?:(?:[\w\s]+)|(\{?(.*)\}?)|(?:['"%][\w\s,-]*['"])))+)\}/'
- Does string contain smarty function call?
- $contentZoneFilename : null|string
- $id : string
- $publishedThemePath : string
- $template : Smarty_Internal_Template
- __construct() : mixed
- ContentZoneLoader constructor.
- __toString() : string
- findContentZoneFile() : void
- Detecting and saving the content zone html
Constants
SMARTY_FUNCTION_PATTERN
Does string contain smarty function call?
protected
mixed
SMARTY_FUNCTION_PATTERN
= '/\{([\w]+)((?:\s[\w]+[\s]*=[\s]*(?:(?:[\w\s]+)|(\{?(.*)\}?)|(?:['"%][\w\s,-]*['"])))+)\}/'
Properties
$contentZoneFilename
protected
null|string
$contentZoneFilename
$id
protected
string
$id
$publishedThemePath
protected
string
$publishedThemePath
$template
protected
Smarty_Internal_Template
$template
Methods
__construct()
ContentZoneLoader constructor.
public
__construct(array<string|int, mixed> $params, Smarty_Internal_Template $template) : mixed
Parameters
- $params : array<string|int, mixed>
- $template : Smarty_Internal_Template
Return values
mixed —__toString()
public
__toString() : string
Return values
string —html of the content zone
findContentZoneFile()
Detecting and saving the content zone html
protected
findContentZoneFile() : void