PHP Class Themosis\View\Extensions\ThemosisTwigExtension

Inheritance: extends Twig_Extensio\Twig_Extension
Afficher le fichier Open project: themosis/framework

Protected Properties

Свойство Type Description
$container Themosis\Foundation\Application

Méthodes publiques

Méthode 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 méthode

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

__construct() public méthode

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

getFunctions() public méthode

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

getGlobals() public méthode

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

getName() public méthode

Define the extension name.
public getName ( ) : string
Résultat string

Property Details

$container protected_oe property

protected Application,Themosis\Foundation $container
Résultat Themosis\Foundation\Application