From 7cc7bb4ce64be6ac15141517d759277f5cc665e6 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 11 Sep 2012 21:30:40 +1200 Subject: [PATCH] Add description to page type --- code/model/UserDefinedForm.php | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/code/model/UserDefinedForm.php b/code/model/UserDefinedForm.php index 77fb749..0adf88a 100755 --- a/code/model/UserDefinedForm.php +++ b/code/model/UserDefinedForm.php @@ -12,14 +12,19 @@ class UserDefinedForm extends Page { /** - * @var String Required Identifier + * @var string */ - static $required_identifier = null; + public static $description = 'Adds a customizable form.'; + + /** + * @var string Required Identifier + */ + public static $required_identifier = null; /** - * @var Array Fields on the user defined form page. + * @var array Fields on the user defined form page. */ - static $db = array( + public static $db = array( "SubmitButtonText" => "Varchar", "OnCompleteMessage" => "HTMLText", "ShowClearButton" => "Boolean", @@ -27,22 +32,22 @@ 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 */ - static $defaults = array( + public static $defaults = array( 'Content' => '$UserDefinedForm', 'DisableSaveSubmissions' => 0, 'OnCompleteMessage' => '

Thanks, we\'ve received your submission.

' ); - static $extensions = array( + public static $extensions = array( "Versioned('Stage', 'Live')" ); /** * @var Array */ - static $has_many = array( + public static $has_many = array( "Fields" => "EditableFormField", "Submissions" => "SubmittedForm", "EmailRecipients" => "UserDefinedForm_EmailRecipient"