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

TRepeatInfo represents repeat information for controls like {@link TCheckBoxList}. The layout of the repeated items is specified via {@link setRepeatLayout RepeatLayout}, which can be either Table (default), Flow or Raw. A table layout uses HTML table cells to organize the items while a flow layout uses line breaks to organize the items. The number of columns used to display the items is specified via {@link setRepeatColumns RepeatColumns} property, while the {@link setRepeatDirection RepeatDirection} governs the order of the items being rendered. Note, the Raw layout does not contain any formatting tags and thus ignores the column and repeat direction settings.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends Prado\TComponent
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
getCaption ( ) : string
getCaptionAlign ( ) : TTableCaptionAlign
getRepeatColumns ( ) : integer
getRepeatDirection ( ) : TRepeatDirection
getRepeatLayout ( ) : TRepeatLayout
renderRepeater ( $writer, IRepeatInfoUser $user ) Renders the repeated items.
setCaption ( $value )
setCaptionAlign ( $value ) : TTableCaptionAlign
setRepeatColumns ( $value )
setRepeatDirection ( $value )
setRepeatLayout ( $value )

보호된 메소드들

메소드 설명
renderFooter ( $writer, $user, $tableLayout, $columns ) Renders footer.
renderHeader ( $writer, $user, $tableLayout, $columns, $needBreak ) Renders header.
renderHorizontalContents ( $writer, $user ) Renders contents in horizontal repeat direction.
renderRawContents ( $writer, $user ) Renders contents in raw format.
renderVerticalContents ( $writer, $user ) Renders contents in veritcal repeat direction.

메소드 상세

getCaption() 공개 메소드

public getCaption ( ) : string
리턴 string caption of the table layout

getCaptionAlign() 공개 메소드

public getCaptionAlign ( ) : TTableCaptionAlign
리턴 TTableCaptionAlign alignment of the caption of the table layout. Defaults to TTableCaptionAlign::NotSet.

getRepeatColumns() 공개 메소드

public getRepeatColumns ( ) : integer
리턴 integer the number of columns that the repeated items should be displayed in. Defaults to 0, meaning not set.

getRepeatDirection() 공개 메소드

public getRepeatDirection ( ) : TRepeatDirection
리턴 TRepeatDirection the direction of traversing the repeated items, defaults to TRepeatDirection::Vertical

getRepeatLayout() 공개 메소드

public getRepeatLayout ( ) : TRepeatLayout
리턴 TRepeatLayout how the repeated items should be displayed, using table or using line breaks. Defaults to TRepeatLayout::Table.

renderFooter() 보호된 메소드

Renders footer.
protected renderFooter ( $writer, $user, $tableLayout, $columns )

renderHeader() 보호된 메소드

Renders header.
protected renderHeader ( $writer, $user, $tableLayout, $columns, $needBreak )

renderHorizontalContents() 보호된 메소드

Renders contents in horizontal repeat direction.
protected renderHorizontalContents ( $writer, $user )

renderRawContents() 보호된 메소드

Renders contents in raw format.
protected renderRawContents ( $writer, $user )

renderRepeater() 공개 메소드

Renders the repeated items.
public renderRepeater ( $writer, IRepeatInfoUser $user )
$user IRepeatInfoUser

renderVerticalContents() 보호된 메소드

Renders contents in veritcal repeat direction.
protected renderVerticalContents ( $writer, $user )

setCaption() 공개 메소드

public setCaption ( $value )

setCaptionAlign() 공개 메소드

public setCaptionAlign ( $value ) : TTableCaptionAlign
리턴 TTableCaptionAlign alignment of the caption of the table layout.

setRepeatColumns() 공개 메소드

public setRepeatColumns ( $value )

setRepeatDirection() 공개 메소드

public setRepeatDirection ( $value )

setRepeatLayout() 공개 메소드

public setRepeatLayout ( $value )