Add description to page type

This commit is contained in:
Will Rossiter 2012-09-11 21:30:40 +12:00
parent ee8ca5caf1
commit 7cc7bb4ce6

View File

@ -12,14 +12,19 @@
class UserDefinedForm extends Page { class UserDefinedForm extends Page {
/** /**
* @var String Required Identifier * @var string
*/ */
static $required_identifier = null; public static $description = 'Adds a customizable form.';
/** /**
* @var Array Fields on the user defined form page. * @var string Required Identifier
*/ */
static $db = array( public static $required_identifier = null;
/**
* @var array Fields on the user defined form page.
*/
public static $db = array(
"SubmitButtonText" => "Varchar", "SubmitButtonText" => "Varchar",
"OnCompleteMessage" => "HTMLText", "OnCompleteMessage" => "HTMLText",
"ShowClearButton" => "Boolean", "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', 'Content' => '$UserDefinedForm',
'DisableSaveSubmissions' => 0, 'DisableSaveSubmissions' => 0,
'OnCompleteMessage' => '<p>Thanks, we\'ve received your submission.</p>' 'OnCompleteMessage' => '<p>Thanks, we\'ve received your submission.</p>'
); );
static $extensions = array( public static $extensions = array(
"Versioned('Stage', 'Live')" "Versioned('Stage', 'Live')"
); );
/** /**
* @var Array * @var Array
*/ */
static $has_many = array( public static $has_many = array(
"Fields" => "EditableFormField", "Fields" => "EditableFormField",
"Submissions" => "SubmittedForm", "Submissions" => "SubmittedForm",
"EmailRecipients" => "UserDefinedForm_EmailRecipient" "EmailRecipients" => "UserDefinedForm_EmailRecipient"