\Box\Brainy\TemplatesTemplateSource

Summary

Methods
Properties
Constants
__construct()
getCompiled()
getContent()
__get()
$uid
$type
$name
$unique_resource
$filepath
$recompiled
$handler
$smarty
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$compiledCache
$contentCache
N/A

Properties

$uid

$uid : string

Unique Template ID

Type

string

$type

$type : string

Resource Type

Type

string

$name

$name : string

Resource Name

Type

string

$unique_resource

$unique_resource : string

Unique Resource Name

Type

string

$filepath

$filepath : string

Source Filepath

Type

string

$recompiled

$recompiled : boolean

Source must be recompiled on every occasion

Type

boolean

$handler

$handler : Resource

Resource Handler

Type

Resource

$contentCache

$contentCache : string|null

Cache of the template's content

Type

string|null

Methods

__construct()

__construct(Resource  $handler, \Box\Brainy\Brainy  $smarty, string  $type, string  $name, string  $unique_resource) 

Parameters

Resource $handler

Resource Handler this source object communicates with

\Box\Brainy\Brainy $smarty

Smarty instance this source object belongs to

string $type

type of resource

string $name

resource name

string $unique_resource

unqiue resource name

getContent()

getContent() : string

Returns the raw content of the template

Returns

string

__get()

__get(string  $property_name) : mixed

Parameters

string $property_name

valid: timestamp, exists, content

Throws

\Box\Brainy\Exceptions\SmartyException

if $property_name is not valid

Returns

mixed