MINOR Re-added LeftAndMain->EditForm() as a complement to getEditForm() - it is necessary for form submissions as well as for template getters

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92712 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-21 03:15:18 +00:00
parent 9e88dbb8c5
commit eef51ed50b

View File

@ -820,6 +820,18 @@ JS;
return FormResponse::respond();
}
/**
* Uses {@link getEditForm()} to retrieve an edit form
* based on the submitted data. Used for form submissions,
* not for template rendering.
*
* @param HTTPRequest $request
* @return Form
*/
function EditForm($request = null) {
return $this->getEditForm($request ? $request->requestVar('ID') : null);
}
/**
* Gets the edit form of a specific record. Will usually construct itself
* from {@link DataObject->getCMSFields()} for the specific managed subclass