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

TBaseDataList is the base class for data listing controls, including {@link TDataList} and {@link TDataGrid}. The key field in the data source is specified by {@link setKeyField KeyField}, while {@link getKeyValues KeyValues} stores the key values of each record in a data listing control. You may use the list item index to obtain the corresponding database key value. TBaseDataList also implements a few properties used for presentation based on tabular layout. The {@link setCaption Caption}, whose alignment is specified via {@link setCaptionAlign CaptionAlign}, is rendered as the table caption. The table cellpadding and cellspacing are specified by {@link setCellPadding CellPadding} and {@link setCellSpacing CellSpacing} properties, respectively. The {@link setGridLines GridLines} specifies how the table should display its borders, and the horizontal alignment of the table content can be specified via {@link setHorizontalAlign HorizontalAlign}.
부터: 3.0
저자: Qiang Xue ([email protected])
상속: extends TDataBoundControl
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
getCellPadding ( ) : integer
getCellSpacing ( ) : integer
getDataKeyField ( ) : string
getDataKeys ( ) : Prado\Collections\TList
getGridLines ( ) : TTableGridLines
getHorizontalAlign ( ) : THorizontalAlign
onSelectedIndexChanged ( $param ) Raises OnSelectedIndexChanged event.
setCellPadding ( $value )
setCellSpacing ( $value )
setDataKeyField ( $value )
setGridLines ( $value ) Sets the grid line style of the table layout.
setHorizontalAlign ( $value )

보호된 메소드들

메소드 설명
createStyle ( ) : TTableStyle Creates a style object for the control.
getDataFieldValue ( $data, $field ) : mixed Returns the value of the data at the specified field.

메소드 상세

createStyle() 보호된 메소드

This method creates a {@link TTableStyle} to be used by the data list control.
protected createStyle ( ) : TTableStyle
리턴 TTableStyle control style to be used

getCellPadding() 공개 메소드

public getCellPadding ( ) : integer
리턴 integer the cellpadding for the table layout. Defaults to -1, meaning not set.

getCellSpacing() 공개 메소드

public getCellSpacing ( ) : integer
리턴 integer the cellspacing for the table layout. Defaults to -1, meaning not set.

getDataFieldValue() 보호된 메소드

If data is an array, TMap or TList, the value will be returned at the index of the specified field. If the data is a component with a property named as the field name, the property value will be returned. Otherwise, an exception will be raised.
protected getDataFieldValue ( $data, $field ) : mixed
리턴 mixed data value at the specified field

getDataKeyField() 공개 메소드

public getDataKeyField ( ) : string
리턴 string the field of the data source that provides the keys of the list items.

getDataKeys() 공개 메소드

public getDataKeys ( ) : Prado\Collections\TList
리턴 Prado\Collections\TList the keys used in the data listing control.

getGridLines() 공개 메소드

public getGridLines ( ) : TTableGridLines
리턴 TTableGridLines the grid line setting of the table layout. Defaults to TTableGridLines::None.

getHorizontalAlign() 공개 메소드

public getHorizontalAlign ( ) : THorizontalAlign
리턴 THorizontalAlign the horizontal alignment of the table content. Defaults to THorizontalAlign::NotSet.

onSelectedIndexChanged() 공개 메소드

This method is invoked when a different item is selected in a data listing control between posts to the server.
public onSelectedIndexChanged ( $param )

setCellPadding() 공개 메소드

public setCellPadding ( $value )

setCellSpacing() 공개 메소드

public setCellSpacing ( $value )

setDataKeyField() 공개 메소드

public setDataKeyField ( $value )

setGridLines() 공개 메소드

Sets the grid line style of the table layout.
public setGridLines ( $value )

setHorizontalAlign() 공개 메소드

public setHorizontalAlign ( $value )