PHP 클래스 Themosis\View\Extensions\ThemosisTwigExtension

상속: extends Twig_Extensio\Twig_Extension
파일 보기 프로젝트 열기: themosis/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$container Themosis\Foundation\Application

공개 메소드들

메소드 설명
__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.

메소드 상세

__call() 공개 메소드

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

__construct() 공개 메소드

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

getFunctions() 공개 메소드

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

getGlobals() 공개 메소드

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

getName() 공개 메소드

Define the extension name.
public getName ( ) : string
리턴 string

프로퍼티 상세

$container 보호되어 있는 프로퍼티

protected Application,Themosis\Foundation $container
리턴 Themosis\Foundation\Application