PHP 클래스 Webiny\Component\Bootstrap\ApplicationClasses\View

파일 보기 프로젝트 열기: Webiny/Framework 1 사용 예제들

공개 메소드들

메소드 설명
appendScript ( string $path, string $type = 'text/javascript' ) Append a script to the script array.
appendStyleSheet ( string $path ) Appends a stylesheet to the stylesheet array.
assign ( array $data, string $root = 'Ctrl' ) Assign variables to the view.
getAssignedData ( ) : array Get a list of assigned view data.
getAutoload ( ) : boolean Get the state of view template auto load.
getMeta ( ) : array Get the meta list.
getMetaHtml ( ) : string Get the meta list as html tags.
getScripts ( ) : array Get the script list.
getScriptsHtml ( ) : string Get the script list as html tags.
getStyleSheets ( ) : array Get the stylesheet list.
getStyleSheetsHtml ( ) : string Get the stylesheet list as html tags.
getTemplate ( ) : string Get the assigned view template.
getTitle ( ) : string Get the current page title.
getTitleHtml ( ) : string Get the current page title as html tag.
prependScript ( string $path, string $type = 'text/javascript' ) Prepends a script to the script array.
prependStyleSheet ( string $path ) Prepends a stylesheet to the stylesheet array.
setAutoload ( boolean $autoload ) Set the view template auto load.
setMeta ( string $name, string $content ) Set a html meta tag.
setTemplate ( string $template ) Set the view template file.
setTitle ( string $title ) Set the page title.

메소드 상세

appendScript() 공개 메소드

Append a script to the script array.
public appendScript ( string $path, string $type = 'text/javascript' )
$path string Path to the script. It can be relative path to the Public/static folder or a full http path.
$type string Script type, default is 'text/javascript'.

appendStyleSheet() 공개 메소드

Appends a stylesheet to the stylesheet array.
public appendStyleSheet ( string $path )
$path string Path to the stylesheet. It can be relative path to the Public/static folder or a full http path.

assign() 공개 메소드

Assign variables to the view.
public assign ( array $data, string $root = 'Ctrl' )
$data array List of variables that should be assigned.
$root string Variable root. Default root is Ctrl.

getAssignedData() 공개 메소드

Get a list of assigned view data.
public getAssignedData ( ) : array
리턴 array

getAutoload() 공개 메소드

Get the state of view template auto load.
public getAutoload ( ) : boolean
리턴 boolean

getMeta() 공개 메소드

Get the meta list.
public getMeta ( ) : array
리턴 array

getMetaHtml() 공개 메소드

Get the meta list as html tags.
public getMetaHtml ( ) : string
리턴 string

getScripts() 공개 메소드

Get the script list.
public getScripts ( ) : array
리턴 array

getScriptsHtml() 공개 메소드

Get the script list as html tags.
public getScriptsHtml ( ) : string
리턴 string

getStyleSheets() 공개 메소드

Get the stylesheet list.
public getStyleSheets ( ) : array
리턴 array

getStyleSheetsHtml() 공개 메소드

Get the stylesheet list as html tags.
public getStyleSheetsHtml ( ) : string
리턴 string

getTemplate() 공개 메소드

Get the assigned view template.
public getTemplate ( ) : string
리턴 string Path to the view template.

getTitle() 공개 메소드

Get the current page title.
public getTitle ( ) : string
리턴 string

getTitleHtml() 공개 메소드

Get the current page title as html tag.
public getTitleHtml ( ) : string
리턴 string

prependScript() 공개 메소드

Prepends a script to the script array.
public prependScript ( string $path, string $type = 'text/javascript' )
$path string Path to the script. It can be relative path to the Public/static folder or a full http path.
$type string Script type, default is 'text/javascript'.

prependStyleSheet() 공개 메소드

Prepends a stylesheet to the stylesheet array.
public prependStyleSheet ( string $path )
$path string Path to the stylesheet. It can be relative path to the Public/static folder or a full http path.

setAutoload() 공개 메소드

Set the view template auto load.
public setAutoload ( boolean $autoload )
$autoload boolean Should the view template file be auto loaded or not.

setMeta() 공개 메소드

Set a html meta tag.
public setMeta ( string $name, string $content )
$name string Meta name.
$content string Meta value.

setTemplate() 공개 메소드

Set the view template file.
public setTemplate ( string $template )
$template string Path to template file.

setTitle() 공개 메소드

Set the page title.
public setTitle ( string $title )
$title string Page title.