PHP 인터페이스 Neos\Flow\Mvc\View\ViewInterface

파일 보기 프로젝트 열기: neos/flow-development-collection 0 사용 예제들

공개 메소드들

메소드 설명
assign ( string $key, mixed $value ) : Neos\Flow\Mvc\View\ViewInterface Add a variable to the view data collection.
assignMultiple ( array $values ) : Neos\Flow\Mvc\View\ViewInterface Add multiple variables to the view data collection
canRender ( ControllerContext $controllerContext ) : boolean Tells if the view implementation can render the view for the given context.
createWithOptions ( array $options ) : Neos\Flow\Mvc\View\ViewInterface Factory method to create an instance with given options.
render ( ) : string Renders the view
setControllerContext ( ControllerContext $controllerContext ) : void Sets the current controller context

메소드 상세

assign() 공개 메소드

Can be chained, so $this->view->assign(..., ...)->assign(..., ...); is possible
public assign ( string $key, mixed $value ) : Neos\Flow\Mvc\View\ViewInterface
$key string Key of variable
$value mixed Value of object
리턴 Neos\Flow\Mvc\View\ViewInterface an instance of $this, to enable chaining

assignMultiple() 공개 메소드

Add multiple variables to the view data collection
public assignMultiple ( array $values ) : Neos\Flow\Mvc\View\ViewInterface
$values array array in the format array(key1 => value1, key2 => value2)
리턴 Neos\Flow\Mvc\View\ViewInterface an instance of $this, to enable chaining

canRender() 공개 메소드

Tells if the view implementation can render the view for the given context.
public canRender ( ControllerContext $controllerContext ) : boolean
$controllerContext Neos\Flow\Mvc\Controller\ControllerContext
리턴 boolean TRUE if the view has something useful to display, otherwise FALSE

createWithOptions() 공개 정적인 메소드

Factory method to create an instance with given options.
public static createWithOptions ( array $options ) : Neos\Flow\Mvc\View\ViewInterface
$options array
리턴 Neos\Flow\Mvc\View\ViewInterface

render() 공개 메소드

Renders the view
public render ( ) : string
리턴 string The rendered view

setControllerContext() 공개 메소드

Sets the current controller context
public setControllerContext ( ControllerContext $controllerContext ) : void
$controllerContext Neos\Flow\Mvc\Controller\ControllerContext Context of the controller associated with this view
리턴 void