\Fuman_Template_Processor_Global

Global processor ({global:.

..})

Gets value which has been registered on this processor By default (root, currentUri, fuman_request_unique_id,lang) are defined

Summary

Methods
Properties
Constants
__construct()
getName()
getParseLevel()
processValue()
getUsages()
addVar()
hasVar()
No public properties found
No constants found
_getValue()
$_name
$_parseLevel
$_vars
N/A
No private methods found
No private properties found
N/A

Properties

$_name

$_name : 

Type

$_parseLevel

$_parseLevel : 

Type

$_vars

$_vars : 

Type

Methods

__construct()

__construct(string  $name, integer  $parseLevel) 

Constructor

Parameters

string $name
integer $parseLevel

getName()

getName() : null

Gets name of processor

Returns

null

getParseLevel()

getParseLevel() : integer

Gets parse level (0-n)

Returns

integer

processValue()

processValue(array  $arguments, object  $parentData) : string

Default parse value implementation

Parameters

array $arguments
object $parentData

Returns

string

getUsages()

getUsages() : \array(Fuman_Template_Usage)

Gets possible usages

Returns

\array(Fuman_Template_Usage)

addVar()

addVar(string  $key, string  $value) : void

Adds global value

Parameters

string $key
string $value

hasVar()

hasVar(string  $key) : boolean

Has var

Parameters

string $key

Returns

boolean

_getValue()

_getValue(array  $arguments, object|null  $data = null) : string

Gets value

Parameters

array $arguments
object|null $data

Returns

string