PHP 클래스 Prado\Data\ActiveRecord\Scaffold\TScaffoldListView

The {@link getHeader Header} property is a TRepeater displaying the Active Record property/field names. The {@link getSort Sort} property is a drop down list displaying the combination of properties and its possible ordering. The {@link getPager Pager} property is a TPager control displaying the links and/or buttons that navigate to different pages in the Active Record data. The {@link getList List} property is a TRepeater that renders a row of Active Record data. Custom rendering of the each Active Record can be achieved by specifying the ItemTemplate or AlternatingItemTemplate property of the main {@linnk getList List} repeater. The TScaffoldListView will listen for two command events named "delete" and "edit". A "delete" command will delete a the record for the row where the "delete" command is originates. An "edit" command will push the record data to be edited by a TScaffoldEditView with ID specified by the {@link setEditViewID EditViewID}. Additional {@link setSearchCondition SearchCondition} and {@link setSearchParameters SearchParameters} (takes array values) can be specified to customize the records to be shown. The {@link setSearchCondition SearchCondition} will be used as the Condition property of TActiveRecordCriteria, and similarly the {@link setSearchParameters SearchParameters} will be the corresponding Parameters property of TActiveRecordCriteria.
부터: 3.1
상속: extends TScaffoldBase
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
bubbleEvent ( $sender, $param ) Continue bubbling the "edit" command, "delete" command is handled in this class.
getEditViewID ( ) : string
getHeader ( ) : TRepeater
getList ( ) : TRepeater
getPager ( ) : TPager
getSearchCondition ( )
getSearchParameters ( ) : array
getSort ( ) : TDropDownList
onPreRender ( $param ) Loads and display the data.
setEditViewID ( $value )
setSearchCondition ( $value )
setSearchParameters ( $value )

보호된 메소드들

메소드 설명
deleteRecord ( $sender, $param ) Deletes an Active Record.
getEditViewControl ( ) : TScaffoldEditView
getRecordCriteria ( ) : Prado\Data\ActiveRecord\TActiveRecordCriteria
initializeEdit ( $sender, $param ) Initialize the edit view control form when EditViewID is set.
initializeSort ( ) Initialize the sort drop down list and the column names repeater.
listItemCreated ( $sender, $param ) Initialize the default display for each Active Record item.
loadRecordData ( ) Fetch the records and data bind it to the list.
pageChanged ( $sender, $param ) Updates repeater page index with the pager new index value.
populateField ( $sender, $param ) Sets the Record primary key to the current repeater item's CustomData.

메소드 상세

bubbleEvent() 공개 메소드

Continue bubbling the "edit" command, "delete" command is handled in this class.
public bubbleEvent ( $sender, $param )

deleteRecord() 보호된 메소드

Deletes an Active Record.
protected deleteRecord ( $sender, $param )

getEditViewControl() 보호된 메소드

protected getEditViewControl ( ) : TScaffoldEditView
리턴 TScaffoldEditView control for editing selected Active Record, null if EditViewID is not set.

getEditViewID() 공개 메소드

public getEditViewID ( ) : string
리턴 string TScaffoldEditView control ID for editing selected Active Record.

getHeader() 공개 메소드

public getHeader ( ) : TRepeater
리턴 TRepeater Repeater control for record property names.

getList() 공개 메소드

public getList ( ) : TRepeater
리턴 TRepeater Repeater control for Active Record instances.

getPager() 공개 메소드

public getPager ( ) : TPager
리턴 TPager List pager control.

getRecordCriteria() 보호된 메소드

protected getRecordCriteria ( ) : Prado\Data\ActiveRecord\TActiveRecordCriteria
리턴 Prado\Data\ActiveRecord\TActiveRecordCriteria sort/search/paging criteria

getSearchCondition() 공개 메소드

public getSearchCondition ( )

getSearchParameters() 공개 메소드

public getSearchParameters ( ) : array
리턴 array search parameters

getSort() 공개 메소드

public getSort ( ) : TDropDownList
리턴 TDropDownList Control that displays and controls the record ordering.

initializeEdit() 보호된 메소드

Initialize the edit view control form when EditViewID is set.
protected initializeEdit ( $sender, $param )

initializeSort() 보호된 메소드

Initialize the sort drop down list and the column names repeater.
protected initializeSort ( )

listItemCreated() 보호된 메소드

Initialize the default display for each Active Record item.
protected listItemCreated ( $sender, $param )

loadRecordData() 보호된 메소드

Fetch the records and data bind it to the list.
protected loadRecordData ( )

onPreRender() 공개 메소드

Loads and display the data.
public onPreRender ( $param )

pageChanged() 보호된 메소드

Updates repeater page index with the pager new index value.
protected pageChanged ( $sender, $param )

populateField() 보호된 메소드

Binds the inner repeater with properties of the current Active Record.
protected populateField ( $sender, $param )

setEditViewID() 공개 메소드

public setEditViewID ( $value )

setSearchCondition() 공개 메소드

public setSearchCondition ( $value )

setSearchParameters() 공개 메소드

public setSearchParameters ( $value )