class View implements ResponseInterface (View source)

Methods

__construct(Loader $config)

View constructor.

static 
configure(Loader $config)

Permet de configurer la classe

static 
getInstance()

Permet de créer et retourner une instance de View

static View
parse(string $viewname, array $data = [])

Permet de faire le rendu d'une vue

getTemplate()

Permet de récuperer l'instance du template

setEngine(string $engine)

Set Engine

cachable(bool $cachabled)

Set the availability of caching system

setExtension(string $extension)

No description

static bool
pushEngine(mixed $name, mixed $engine)

Ajouter un moteur de template

string
getContent()

Get rendering content

string
sendContent()

Send Response

string
__toString()

__toString

static mixed
__callStatic(mixed $name, mixed $arguments)

No description

mixed
__call(string $method, array $arguments)

__call

Details

__construct(Loader $config)

View constructor.

Parameters

Loader $config

Exceptions

ViewException

static configure(Loader $config)

Permet de configurer la classe

Parameters

Loader $config

static getInstance()

Permet de créer et retourner une instance de View

static View parse(string $viewname, array $data = [])

Permet de faire le rendu d'une vue

Parameters

string $viewname
array $data

Return Value

View

EngineAbstract getTemplate()

Permet de récuperer l'instance du template

Return Value

EngineAbstract

View setEngine(string $engine)

Set Engine

Parameters

string $engine

Return Value

View

cachable(bool $cachabled)

Set the availability of caching system

Parameters

bool $cachabled

View setExtension(string $extension)

No description

Parameters

string $extension

Return Value

View

static bool pushEngine(mixed $name, mixed $engine)

Ajouter un moteur de template

Parameters

mixed $name
mixed $engine

Return Value

bool

Exceptions

ViewException

string getContent()

Get rendering content

Return Value

string

string sendContent()

Send Response

Return Value

string

string __toString()

__toString

Return Value

string

static mixed __callStatic(mixed $name, mixed $arguments)

No description

Parameters

mixed $name
mixed $arguments

Return Value

mixed

mixed __call(string $method, array $arguments)

__call

Parameters

string $method
array $arguments

Return Value

mixed