PHP 클래스 Prado\Web\UI\WebControls\THead

THead displays a head element on a page. It displays the content enclosed in its body and the page title set by the {@link setTitle Title} property. In addition, stylesheets and JavaScripts registered via {@link TClientScriptManager::registerStyleSheet}, {@link TClientScriptManager::registerStyleSheetFile} {@link TClientScriptManager::registerHeadJavaScript}, and {@link TClientScriptManager::registerHeadJavaScriptFile} will also be displayed in the head. THead also manages and displays meta tags through its {@link getMetaTags MetaTags} property. You can add a meta object to the collection in code dynamically, or add it in template using the following syntax, Note, {@link TPage} has a property {@link TPage::getHead Head} that refers to the THead control currently on the page. A page can have at most one THead control. Although not required, it is recommended to place a THead on your page. Without a THead on the page, stylesheets and javascripts in the current page theme will not be rendered.
부터: 3.0
상속: extends Prado\Web\UI\TControl
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
addParsedObject ( $object ) Processes an object that is created during parsing template.
getBaseUrl ( ) : string
getMetaTags ( ) : TMetaTagCollection
getShortcutIcon ( ) : string
getTitle ( ) : string
onInit ( $param ) Registers the head control with the current page.
render ( $writer ) Renders the head control.
setBaseUrl ( $url )
setShortcutIcon ( $url )
setTitle ( $value ) Sets the page title.

메소드 상세

addParsedObject() 공개 메소드

This method adds TMetaTag components into the {@link getMetaTags MetaTags} collection of the head control.
또한 보기: createdOnTemplate
public addParsedObject ( $object )

getBaseUrl() 공개 메소드

public getBaseUrl ( ) : string
리턴 string base URL of the page. This URL is rendered as the 'href' attribute of tag. Defaults to ''.

getMetaTags() 공개 메소드

public getMetaTags ( ) : TMetaTagCollection
리턴 TMetaTagCollection meta tag collection

getShortcutIcon() 공개 메소드

public getShortcutIcon ( ) : string
리턴 string the URL for the shortcut icon of the page. Defaults to ''.

getTitle() 공개 메소드

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

onInit() 공개 메소드

This method is invoked when the control enters 'Init' stage. The method raises 'Init' event. If you override this method, be sure to call the parent implementation so that the event handlers can be invoked.
public onInit ( $param )

render() 공개 메소드

Renders the head control.
public render ( $writer )

setBaseUrl() 공개 메소드

public setBaseUrl ( $url )

setShortcutIcon() 공개 메소드

public setShortcutIcon ( $url )

setTitle() 공개 메소드

This title will be rendered only if the {@link TPage::getTitle Title} property of the page is empty.
public setTitle ( $value )