PHP Class Themosis\View\Extensions\ThemosisTwigExtension

Inheritance: extends Twig_Extensio\Twig_Extension
ファイルを表示 Open project: themosis/framework

Protected Properties

Property Type Description
$container Themosis\Foundation\Application

Public Methods

Method Description
__call ( string $name, array $arguments ) : mixed Allow developers to call core php and WordPress functions using the fn namespace inside their templates.
__construct ( Application $container )
getFunctions ( ) : array | Twig_SimpleFunction[] Register a list of functions available into Twig templates.
getGlobals ( ) : array Register a global "fn" which can be used to call any WordPress or core PHP functions.
getName ( ) : string Define the extension name.

Method Details

__call() public method

Linked to the global call only...
public __call ( string $name, array $arguments ) : mixed
$name string
$arguments array
return mixed

__construct() public method

public __construct ( Application $container )
$container Themosis\Foundation\Application

getFunctions() public method

Register a list of functions available into Twig templates.
public getFunctions ( ) : array | Twig_SimpleFunction[]
return array | Twig_SimpleFunction[]

getGlobals() public method

Register a global "fn" which can be used to call any WordPress or core PHP functions.
public getGlobals ( ) : array
return array

getName() public method

Define the extension name.
public getName ( ) : string
return string

Property Details

$container protected_oe property

protected Application,Themosis\Foundation $container
return Themosis\Foundation\Application