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
Показать файл Открыть проект

Открытые методы

Метод Описание
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 )