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

TAccordionView represents a single view in a {@link TAccordion}. TAccordionView is represented inside the {@link TAccordion} with an header label whose text is defined by the {@link setCaption Caption} property; optionally the label can be an hyperlink: use the {@link setNavigateUrl NavigateUrl} property to define the destination url.
부터: 3.2
저자: Gabor Berczi, DevWorx Hungary ([email protected])
상속: extends TWebControl
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getActive ( ) : boolean
getCaption ( ) : string
getNavigateUrl ( ) : string
getText ( ) : string
renderContents ( $writer ) Renders body contents of the accordion view.
renderHeader ( $writer ) Renders the header associated with the accordion view.
setActive ( $value )
setCaption ( $value )
setNavigateUrl ( $value ) Sets the URL of the target page.
setText ( $value ) Sets the text content to be displayed on this view.

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attributes to renderer.
getTagName ( ) : the
renderHeaderContent ( $writer ) Renders the content in the header.

메소드 상세

addAttributesToRender() 보호된 메소드

Adds attributes to renderer.
protected addAttributesToRender ( $writer )

getActive() 공개 메소드

public getActive ( ) : boolean
리턴 boolean whether this accordion view is active. Defaults to false.

getCaption() 공개 메소드

public getCaption ( ) : string
리턴 string the caption displayed on this header. Defaults to ''.

getNavigateUrl() 공개 메소드

public getNavigateUrl ( ) : string
리턴 string the URL of the target page. Defaults to ''.

getTagName() 보호된 메소드

protected getTagName ( ) : the
리턴 the tag name for the view element

getText() 공개 메소드

public getText ( ) : string
리턴 string the text content displayed on this view. Defaults to ''.

renderContents() 공개 메소드

Renders body contents of the accordion view.
public renderContents ( $writer )

renderHeader() 공개 메소드

Renders the header associated with the accordion view.
public renderHeader ( $writer )

renderHeaderContent() 보호된 메소드

By default, a hyperlink is displayed.
protected renderHeaderContent ( $writer )

setActive() 공개 메소드

public setActive ( $value )

setCaption() 공개 메소드

public setCaption ( $value )

setNavigateUrl() 공개 메소드

If not empty, clicking on this header will redirect the browser to the specified URL.
public setNavigateUrl ( $value )

setText() 공개 메소드

If this is not empty, the child content of the view will be ignored.
public setText ( $value )