Class \Prado\Data\ActiveRecord\Scaffold\TScaffoldListView
The \Prado\Data\ActiveRecord\Scaffold\getHeader property is a TRepeater displaying the Active Record property/field names. The \Prado\Data\ActiveRecord\Scaffold\getSort property is a drop down list displaying the combination of properties and its possible ordering. The \Prado\Data\ActiveRecord\Scaffold\getPager property is a TPager control displaying the links and/or buttons that navigate to different pages in the Active Record data. The \Prado\Data\ActiveRecord\Scaffold\getList 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 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 \Prado\Data\ActiveRecord\Scaffold\setEditViewID.
Additional \Prado\Data\ActiveRecord\Scaffold\setSearchCondition and \Prado\Data\ActiveRecord\Scaffold\setSearchParameters (takes array values) can be specified to customize the records to be shown. The \Prado\Data\ActiveRecord\Scaffold\setSearchCondition will be used as the Condition property of TActiveRecordCriteria, and similarly the \Prado\Data\ActiveRecord\Scaffold\setSearchParameters will be the corresponding Parameters property of TActiveRecordCriteria.
Class hierarchy
- \Prado\Data\ActiveRecord\Scaffold\TScaffoldListView
- \Prado\Data\ActiveRecord\Scaffold\TScaffoldBase
- \Prado\Web\UI\TTemplateControl
- \Prado\Web\UI\TCompositeControl implements INamingContainer
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.1
public
|
bubbleEvent(mixed $sender, mixed $param) : mixed
Continue bubbling the "edit" command, "delete" command is handled in this class.
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
initializeEdit(mixed $sender, mixed $param) : mixed
Initialize the edit view control form when EditViewID is set.
|
protected
|
|
protected
|
listItemCreated(mixed $sender, mixed $param) : mixed
Initialize the default display for each Active Record item.
|
protected
|
|
protected
|
pageChanged(mixed $sender, mixed $param) : mixed
Updates repeater page index with the pager new index value.
|
protected
|
populateField(mixed $sender, mixed $param) : mixed
Sets the Record primary key to the current repeater item's CustomData.
Binds the inner repeater with properties of the current Active Record. |