PHP Class Prado\Data\ActiveRecord\Scaffold\TScaffoldView

The {@link getListView ListView} property gives a TScaffoldListView for display the record data. The {@link getEditView EditView} is the TScaffoldEditView that renders the inputs for editing and adding records. The {@link getSearchControl SearchControl} is a TScaffoldSearch responsible to the search user interface. Set the {@link setRecordClass RecordClass} property to the name of the Active Record class to be displayed/edited/added.
Since: 3.0
Inheritance: extends TScaffoldBase
Show file Open project: pradosoft/prado

Public Methods

Method Description
bubbleEvent ( $sender, $param ) Handle the "edit" and "new" commands by displaying the edit view.
getAddButton ( ) : TButton
getEditView ( ) : TScaffoldEditView
getListView ( ) : TScaffoldListView
getSearchControl ( ) : TScaffoldSearch
onPreRender ( $param ) Copy basic record details to the list/edit/search controls.

Protected Methods

Method Description
showAddView ( $sender, $param ) Shows the add record view.
showEditView ( $sender, $param ) Shows the edit record view.
showListView ( $sender, $param ) Shows the view for listing the records.

Method Details

bubbleEvent() public method

Default command shows the list view.
public bubbleEvent ( $sender, $param )

getAddButton() public method

public getAddButton ( ) : TButton
return TButton "Add new record" button.

getEditView() public method

public getEditView ( ) : TScaffoldEditView
return TScaffoldEditView scaffold edit view.

getListView() public method

public getListView ( ) : TScaffoldListView
return TScaffoldListView scaffold list view.

getSearchControl() public method

public getSearchControl ( ) : TScaffoldSearch
return TScaffoldSearch scaffold search textbox and button.

onPreRender() public method

Copy basic record details to the list/edit/search controls.
public onPreRender ( $param )

showAddView() protected method

Shows the add record view.
protected showAddView ( $sender, $param )

showEditView() protected method

Shows the edit record view.
protected showEditView ( $sender, $param )

showListView() protected method

Shows the view for listing the records.
protected showListView ( $sender, $param )