API CHANGE added Form->getForm()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52181 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-04-06 03:33:55 +00:00
parent 770f55e9a5
commit 220b78454c

View File

@ -211,6 +211,15 @@ class FormField extends ViewableData {
$this->form = $form;
}
/**
* Get the currently used form.
*
* @return Form
*/
function getForm() {
return $this->form;
}
/**
* Sets the error message to be displayed on the form field
* Set by php validation of the form