class GlobalContainer (View source)

The GlobalContainer class.

Methods

static void
addExtension(EdgeExtensionInterface $extension, string $name = null)

addExtension

static Twig_ExtensionInterface
getExtension(string $name)

getExtension

static void
removeExtension(string $name)

removeExtension

getExtensions()

Method to get property Extensions

static void
setExtensions(array $extensions)

Method to set property extensions

static void
addGlobal(string $name, mixed $value)

setGlobal

static mixed
getGlobal(string $name)

getGlobal

static void
removeGlobal(string $name)

removeGlobal

static array
getGlobals()

Method to get property Globals

static void
setGlobals(array $globals)

Method to set property globals

static array
getRawTags()

Method to get property RawTags

static 
setRawTags(string $start, string $end)

Method to set property rawTags

static array
getContentTags()

Method to get property ContentTags

static 
setContentTags(string $start, string $end)

Method to set property contentTags

static array
getEscapedTags()

Method to get property EscapedTags

static 
setEscapedTags(string $start, string $end)

Method to set property escapedTags

Details

at line line 63
static void addExtension(EdgeExtensionInterface $extension, string $name = null)

addExtension

Parameters

EdgeExtensionInterface $extension
string $name

Return Value

void

at line line 75
static Twig_ExtensionInterface getExtension(string $name)

getExtension

Parameters

string $name

Return Value

Twig_ExtensionInterface

at line line 92
static void removeExtension(string $name)

removeExtension

Parameters

string $name

Return Value

void

at line line 105
static EdgeExtensionInterface[] getExtensions()

Method to get property Extensions

Return Value

EdgeExtensionInterface[]

at line line 117
static void setExtensions(array $extensions)

Method to set property extensions

Parameters

array $extensions

Return Value

void

at line line 130
static void addGlobal(string $name, mixed $value)

setGlobal

Parameters

string $name
mixed $value

Return Value

void

at line line 142
static mixed getGlobal(string $name)

getGlobal

Parameters

string $name

Return Value

mixed

at line line 159
static void removeGlobal(string $name)

removeGlobal

Parameters

string $name

Return Value

void

at line line 172
static array getGlobals()

Method to get property Globals

Return Value

array

at line line 184
static void setGlobals(array $globals)

Method to set property globals

Parameters

array $globals

Return Value

void

at line line 194
static array getRawTags()

Method to get property RawTags

Return Value

array

at line line 205
static setRawTags(string $start, string $end)

Method to set property rawTags

Parameters

string $start
string $end

at line line 215
static array getContentTags()

Method to get property ContentTags

Return Value

array

at line line 226
static setContentTags(string $start, string $end)

Method to set property contentTags

Parameters

string $start
string $end

at line line 236
static array getEscapedTags()

Method to get property EscapedTags

Return Value

array

at line line 247
static setEscapedTags(string $start, string $end)

Method to set property escapedTags

Parameters

string $start
string $end