PHP 인터페이스 eZ\Publish\Core\MVC\Symfony\View\View

..).
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 0 사용 예제들

공개 메소드들

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

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 )