\ModelAdmin_RecordController
Handles operations on a single record from a managed model.
Synopsis
class ModelAdmin_RecordController
extends Controller
{
- // members
- protected $parentController;
- protected $currentRecord;
- public static array $allowed_actions = ;
- // methods
- public void __construct()
- public void Link()
- public void edit()
- public void EditForm()
- public mixed doSave()
- public void doDelete()
- public mixed view()
- public Form ViewForm()
- public void index()
- public void getCurrentRecord()
Hierarchy
Extends
- Controller
Tasks
Line | Task |
---|---|
889+ | change the parent controller varname to indicate the model scaffolding functionality in ModelAdmin |
Members
protected
- $currentRecord
- $parentController
public
- $allowed_actions
Methods
public
- __construct()
- EditForm() — Returns a form for editing the attached model
- Link() — Link fragment - appends the current record ID to the URL.
- ViewForm() — Returns a form for viewing the attached model
- doDelete() — Delete the current record
- doSave() — Postback action to save a record
- edit() — Edit action - shows a form for editing this record
- getCurrentRecord()
- index()
- view() — Renders the record view template.