PHP Интерфейс eZ\Publish\Core\MVC\Symfony\View\View

..).
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
addParameters ( array $parameters ) Adds a hash of parameters to the existing parameters.
getConfigHash ( ) : array | null Returns the config hash.
getControllerReference ( ) : Symfony\Component\HttpKernel\Controller\ControllerReference
getParameter ( string $parameterName ) : mixed Returns parameter value by $parameterName.
getParameters ( ) : array Returns registered parameters.
getResponse ( ) : Response | null Returns the pre-configured Response.
getTemplateIdentifier ( ) : string | Closure Returns the registered template identifier.
getViewType ( )
hasParameter ( string $parameterName ) : boolean Checks if $parameterName exists.
setConfigHash ( array $config ) Injects the config hash that was used to match and generate the current view.
setControllerReference ( Symfony\Component\HttpKernel\Controller\ControllerReference $controllerReference )
setParameters ( array $parameters ) Sets $parameters that will later be injected to the template/closure.
setResponse ( Response $response ) Sets a pre-configured Response that will be used to render the View.
setTemplateIdentifier ( string | Closure $templateIdentifier ) Sets $templateIdentifier to the content view.
setViewType ( $viewType )

Описание методов

addParameters() публичный Метод

Adds a hash of parameters to the existing parameters.
public addParameters ( array $parameters )
$parameters array

getConfigHash() публичный Метод

Returns the config hash.
public getConfigHash ( ) : array | null
Результат array | null

getControllerReference() публичный Метод

public getControllerReference ( ) : Symfony\Component\HttpKernel\Controller\ControllerReference
Результат Symfony\Component\HttpKernel\Controller\ControllerReference

getParameter() публичный Метод

Throws an \InvalidArgumentException if $parameterName is not set.
public getParameter ( string $parameterName ) : mixed
$parameterName string
Результат mixed

getParameters() публичный Метод

Returns registered parameters.
public getParameters ( ) : array
Результат array

getResponse() публичный Метод

Returns the pre-configured Response.
public getResponse ( ) : Response | null
Результат Symfony\Component\HttpFoundation\Response | null

getTemplateIdentifier() публичный Метод

Returns the registered template identifier.
public getTemplateIdentifier ( ) : string | Closure
Результат string | Closure

getViewType() публичный Метод

public getViewType ( )

hasParameter() публичный Метод

Checks if $parameterName exists.
public hasParameter ( string $parameterName ) : boolean
$parameterName string
Результат boolean

setConfigHash() публичный Метод

Typically, the hash would have as keys: - template : The template that has been matched - match : The matching configuration, including the matcher "identifier" and what has been passed to it. - matcher : The matcher object.
public setConfigHash ( array $config )
$config array

setControllerReference() публичный Метод

public setControllerReference ( Symfony\Component\HttpKernel\Controller\ControllerReference $controllerReference )
$controllerReference Symfony\Component\HttpKernel\Controller\ControllerReference

setParameters() публичный Метод

If some parameters were already present, $parameters will replace them.
public setParameters ( array $parameters )
$parameters array Hash of parameters

setResponse() публичный Метод

Sets a pre-configured Response that will be used to render the View.
public setResponse ( Response $response )
$response Symfony\Component\HttpFoundation\Response

setTemplateIdentifier() публичный Метод

Can be either a valid template identifier such as "MyBundle:subfolder:my_template.html.twig" or a closure. In the case of a closure, it will receive an array of parameters as an argument and must return the result to display. The prototype of the closure must be : function (array $params = []) { Do something to render Must return a string to display } Must throw a \eZ\Publish\Core\Base\Exceptions\InvalidArgumentType exception if $templateIdentifier is invalid.
public setTemplateIdentifier ( string | Closure $templateIdentifier )
$templateIdentifier string | Closure

setViewType() публичный Метод

public setViewType ( $viewType )