Don't clear statics as public for 3.1 compatibility

This commit is contained in:
Sean Harvey 2013-04-10 11:29:32 +12:00
parent fc83164b46
commit 73b4909c5c

View File

@ -9,17 +9,17 @@ class UserDefinedForm extends Page {
/** /**
* @var string * @var string
*/ */
public static $description = 'Adds a customizable form.'; static $description = 'Adds a customizable form.';
/** /**
* @var string Required Identifier * @var string Required Identifier
*/ */
public static $required_identifier = null; static $required_identifier = null;
/** /**
* @var array Fields on the user defined form page. * @var array Fields on the user defined form page.
*/ */
public static $db = array( static $db = array(
"SubmitButtonText" => "Varchar", "SubmitButtonText" => "Varchar",
"OnCompleteMessage" => "HTMLText", "OnCompleteMessage" => "HTMLText",
"ShowClearButton" => "Boolean", "ShowClearButton" => "Boolean",
@ -31,7 +31,7 @@ class UserDefinedForm extends Page {
/** /**
* @var array Default values of variables when this page is created * @var array Default values of variables when this page is created
*/ */
public static $defaults = array( static $defaults = array(
'Content' => '$UserDefinedForm', 'Content' => '$UserDefinedForm',
'DisableSaveSubmissions' => 0, 'DisableSaveSubmissions' => 0,
'OnCompleteMessage' => '<p>Thanks, we\'ve received your submission.</p>' 'OnCompleteMessage' => '<p>Thanks, we\'ve received your submission.</p>'
@ -40,7 +40,7 @@ class UserDefinedForm extends Page {
/** /**
* @var array * @var array
*/ */
public static $has_many = array( static $has_many = array(
"Fields" => "EditableFormField", "Fields" => "EditableFormField",
"Submissions" => "SubmittedForm", "Submissions" => "SubmittedForm",
"EmailRecipients" => "UserDefinedForm_EmailRecipient" "EmailRecipients" => "UserDefinedForm_EmailRecipient"