From 220b78454ce273b077a8d8fed913e6f0c00e1c5e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 6 Apr 2008 03:33:55 +0000 Subject: [PATCH] API CHANGE added Form->getForm() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52181 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/FormField.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/forms/FormField.php b/forms/FormField.php index 7a5920129..6f10c5df7 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -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