class vB5_Template_Cache

Constants

PLACEHOLDER_PREFIX

PLACEHOLDER_SUFIX

Properties

static protected $instance
protected $cache
protected $renderTemplatesInReverseOrder
protected $preloadHashKey
protected $preloadTemplates
protected $textOnlyReplace
protected array $pending

Methods

static 
instance()

No description

isTemplateText()

No description

string
register(string $templateName, array $args)

Stores template info for deferred fetching & rendering, and returns a placeholder

registerTemplateVariables(vB5_Template $templater, array $templateArgs)

Register variables in template

setRenderTemplatesInReverseOrder(bool $value)

Instructs the class to render the templates in reverse order or not

replacePlaceholders(string $content)

Replaces all template placeholders in $content with the rendered templates

getTemplate($templateId)

No description

getPlaceholder($templateName, $pos)

No description

fetchTemplate(mixed $templateName)

Receives either a template name or an array of template names to be fetched from the API

replaceTextOnly($finalRendered)

No description

Details

at line 32
static instance()

at line 48
isTemplateText()

at line 59
string register(string $templateName, array $args)

Stores template info for deferred fetching & rendering, and returns a placeholder

Parameters

string $templateName
array $args

Return Value

string

at line 74
protected registerTemplateVariables(vB5_Template $templater, array $templateArgs)

Register variables in template

Parameters

vB5_Template $templater
array $templateArgs

at line 94
setRenderTemplatesInReverseOrder(bool $value)

Instructs the class to render the templates in reverse order or not

Parameters

bool $value

at line 103
replacePlaceholders(string $content)

Replaces all template placeholders in $content with the rendered templates

Parameters

string $content

at line 174
getTemplate($templateId)

Parameters

$templateId

at line 195
protected getPlaceholder($templateName, $pos)

Parameters

$templateName
$pos

at line 204
protected fetchTemplate(mixed $templateName)

Receives either a template name or an array of template names to be fetched from the API

Parameters

mixed $templateName

at line 259
replaceTextOnly($finalRendered)

Parameters

$finalRendered