diff --git a/code/UserDefinedForm.php b/code/UserDefinedForm.php
index 8903745..fd87c26 100755
--- a/code/UserDefinedForm.php
+++ b/code/UserDefinedForm.php
@@ -705,12 +705,14 @@ class UserDefinedForm_EmailRecipient extends DataObject {
return $this->Form()->canDelete();
}
}
+
/**
* Email that gets sent to the people listed in the Email Recipients
* when a submission is made
*
* @package userforms
*/
+
class UserDefinedForm_SubmittedFormEmail extends Email {
protected $ss_template = "SubmittedFormEmail";
protected $data;
@@ -718,6 +720,4 @@ class UserDefinedForm_SubmittedFormEmail extends Email {
function __construct() {
parent::__construct();
}
-}
-
-?>
+}
\ No newline at end of file
diff --git a/code/editor/EditableCheckbox.php b/code/editor/EditableCheckbox.php
index ddf9148..c201ae2 100755
--- a/code/editor/EditableCheckbox.php
+++ b/code/editor/EditableCheckbox.php
@@ -5,13 +5,13 @@
*
* @package userforms
*/
+
class EditableCheckbox extends EditableFormField {
static $singular_name = 'Checkbox Field';
static $plural_name = 'Checkboxes';
-
public function getFieldConfiguration() {
$options = parent::getFieldConfiguration();
$options->push(new CheckboxField("Fields[$this->ID][CustomSettings][Default]", _t('EditableFormField.CHECKEDBYDEFAULT', 'Checked by Default?'), $this->getSetting('Default')));
@@ -26,5 +26,4 @@ class EditableCheckbox extends EditableFormField {
$value = (isset($data[$this->Name])) ? $data[$this->Name] : false;
return ($value) ? _t('EditableFormField.YES', 'Yes') : _t('EditableFormField.NO', 'No');
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableCheckboxGroupField.php b/code/editor/EditableCheckboxGroupField.php
index d67d626..5c2b663 100755
--- a/code/editor/EditableCheckboxGroupField.php
+++ b/code/editor/EditableCheckboxGroupField.php
@@ -6,6 +6,7 @@
*
* @package userforms
*/
+
class EditableCheckboxGroupField extends EditableMultipleOptionField {
static $singular_name = "Checkbox Group";
@@ -39,6 +40,4 @@ class EditableCheckboxGroupField extends EditableMultipleOptionField {
}
return $result;
}
-}
-
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableDateField.php b/code/editor/EditableDateField.php
index a906ac4..4fd0060 100755
--- a/code/editor/EditableDateField.php
+++ b/code/editor/EditableDateField.php
@@ -6,6 +6,7 @@
*
* @package userforms
*/
+
class EditableDateField extends EditableFormField {
static $singular_name = 'Date Field';
@@ -45,5 +46,4 @@ class EditableDateField extends EditableFormField {
'date' => true
);
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableDropdown.php b/code/editor/EditableDropdown.php
index 0efc32e..33a406f 100755
--- a/code/editor/EditableDropdown.php
+++ b/code/editor/EditableDropdown.php
@@ -6,6 +6,7 @@
*
* @package userforms
*/
+
class EditableDropdown extends EditableMultipleOptionField {
static $singular_name = 'Dropdown Field';
@@ -24,5 +25,4 @@ class EditableDropdown extends EditableMultipleOptionField {
return new DropdownField( $this->Name, $this->Title, $options);
}
-}
-?>
+}
\ No newline at end of file
diff --git a/code/editor/EditableEmailField.php b/code/editor/EditableEmailField.php
index 65a447d..041e722 100755
--- a/code/editor/EditableEmailField.php
+++ b/code/editor/EditableEmailField.php
@@ -6,6 +6,7 @@
*
* @package userforms
*/
+
class EditableEmailField extends EditableFormField {
static $singular_name = 'Email Field';
@@ -29,5 +30,4 @@ class EditableEmailField extends EditableFormField {
'email' => true
);
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableFileField.php b/code/editor/EditableFileField.php
index 4788aaf..8693bac 100755
--- a/code/editor/EditableFileField.php
+++ b/code/editor/EditableFileField.php
@@ -4,6 +4,7 @@
*
* @package userforms
*/
+
class EditableFileField extends EditableFormField {
// this needs to be moved.
@@ -38,5 +39,4 @@ class EditableFileField extends EditableFormField {
return "";
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableFormField.php b/code/editor/EditableFormField.php
index b857f79..40d8e57 100755
--- a/code/editor/EditableFormField.php
+++ b/code/editor/EditableFormField.php
@@ -5,6 +5,7 @@
*
* @package userforms
*/
+
class EditableFormField extends DataObject {
static $default_sort = "Sort";
@@ -364,5 +365,4 @@ class EditableFormField extends DataObject {
public function getValidation() {
return array();
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableFormHeading.php b/code/editor/EditableFormHeading.php
index 008c1a5..0e2e14f 100755
--- a/code/editor/EditableFormHeading.php
+++ b/code/editor/EditableFormHeading.php
@@ -4,6 +4,7 @@
*
* @subpackage userforms
*/
+
class EditableFormHeading extends EditableFormField {
static $singular_name = 'Heading';
@@ -37,5 +38,4 @@ class EditableFormHeading extends EditableFormField {
function getFieldValidationOptions() {
return false;
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableLiteralField.php b/code/editor/EditableLiteralField.php
index 72f7a74..42c29a7 100644
--- a/code/editor/EditableLiteralField.php
+++ b/code/editor/EditableLiteralField.php
@@ -23,5 +23,4 @@ class EditableLiteralField extends EditableFormField {
return new LiteralField("LiteralField[$this->ID]",
"
". $this->getSetting('Content') ."
");
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableMemberListField.php b/code/editor/EditableMemberListField.php
index 0b051c0..caf1256 100644
--- a/code/editor/EditableMemberListField.php
+++ b/code/editor/EditableMemberListField.php
@@ -4,6 +4,7 @@
*
* @package userforms
*/
+
class EditableMemberListField extends EditableFormField {
static $singular_name = 'Member List Field';
@@ -31,5 +32,4 @@ class EditableMemberListField extends EditableFormField {
$member = DataObject::get_one('Member', "Member.ID = {$value}");
return ($member) ? $member->getName() : "";
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableMultipleOptionField.php b/code/editor/EditableMultipleOptionField.php
index 5febc2f..27fa7d8 100644
--- a/code/editor/EditableMultipleOptionField.php
+++ b/code/editor/EditableMultipleOptionField.php
@@ -4,10 +4,7 @@
* Base class for multiple option fields such as dropdowns and
* radio sets. Implemented as a class but you would not create
* one of these directly, rather you would instantiate a subclass
- * such as EditableDropdownField
- *
- * @todo Maybe it would make more sense to have dropdownfield and
- * checkboxset just transformations on this class
+ * such as {@link EditableDropdownField}
*
* @package userforms
*/
@@ -143,5 +140,4 @@ class EditableMultipleOptionField extends EditableFormField {
public function getFormField() {
return user_error('Please implement getFormField() on '. $this->class, E_USER_ERROR);
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableOption.php b/code/editor/EditableOption.php
index 1712494..df09d79 100644
--- a/code/editor/EditableOption.php
+++ b/code/editor/EditableOption.php
@@ -70,5 +70,4 @@ class EditableOption extends DataObject {
$this->readonly = true;
return $this->EditSegment();
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/EditableRadioField.php b/code/editor/EditableRadioField.php
index 1f14fae..43970c5 100755
--- a/code/editor/EditableRadioField.php
+++ b/code/editor/EditableRadioField.php
@@ -6,6 +6,7 @@
*
* @package userforms
*/
+
class EditableRadioField extends EditableMultipleOptionField {
static $singular_name = 'Radio field';
@@ -25,5 +26,4 @@ class EditableRadioField extends EditableMultipleOptionField {
return new OptionsetField($this->Name, $this->Title, $options);
}
-}
-?>
+}
\ No newline at end of file
diff --git a/code/editor/EditableTextField.php b/code/editor/EditableTextField.php
index 39515d4..f33b88b 100755
--- a/code/editor/EditableTextField.php
+++ b/code/editor/EditableTextField.php
@@ -6,6 +6,7 @@
*
* @package userforms
*/
+
class EditableTextField extends EditableFormField {
static $singular_name = 'Text field';
@@ -58,5 +59,4 @@ class EditableTextField extends EditableFormField {
return $options;
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/editor/FieldEditor.php b/code/editor/FieldEditor.php
index 0aa7291..77f838b 100755
--- a/code/editor/FieldEditor.php
+++ b/code/editor/FieldEditor.php
@@ -4,6 +4,7 @@
*
* @package userforms
*/
+
class FieldEditor extends FormField {
protected $hasFormOptions = true;
@@ -254,5 +255,4 @@ class FieldEditor extends FormField {
}
}
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/migration/UserFormsMigrationTask.php b/code/migration/UserFormsMigrationTask.php
index b7db795..f2e181f 100644
--- a/code/migration/UserFormsMigrationTask.php
+++ b/code/migration/UserFormsMigrationTask.php
@@ -16,6 +16,7 @@
*
* @package userforms
*/
+
class UserFormsMigrationTask extends MigrationTask {
protected $title = "UserForms Database Migration";
@@ -210,5 +211,4 @@ class UserFormsMigrationTask extends MigrationTask {
// log
echo " -- -- Created new option $editableOption->Title ";
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/submissions/SubmittedFileField.php b/code/submissions/SubmittedFileField.php
index dd288be..1e1f8c0 100755
--- a/code/submissions/SubmittedFileField.php
+++ b/code/submissions/SubmittedFileField.php
@@ -1,8 +1,10 @@
UploadedFile()) ? $this->UploadedFile()->URL : "";
- }
-
-}
-?>
\ No newline at end of file
+ }
+}
\ No newline at end of file
diff --git a/code/submissions/SubmittedForm.php b/code/submissions/SubmittedForm.php
index 460072d..069d0aa 100755
--- a/code/submissions/SubmittedForm.php
+++ b/code/submissions/SubmittedForm.php
@@ -1,8 +1,10 @@
"Member",
@@ -26,5 +28,4 @@ class SubmittedForm extends DataObject {
}
parent::onBeforeDelete();
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/code/submissions/SubmittedFormField.php b/code/submissions/SubmittedFormField.php
index 540b5bd..a567334 100755
--- a/code/submissions/SubmittedFormField.php
+++ b/code/submissions/SubmittedFormField.php
@@ -4,6 +4,7 @@
*
* @package userforms
*/
+
class SubmittedFormField extends DataObject {
static $db = array(
@@ -17,4 +18,3 @@ class SubmittedFormField extends DataObject {
);
}
-?>
\ No newline at end of file
diff --git a/code/submissions/SubmittedFormReportField.php b/code/submissions/SubmittedFormReportField.php
index 7855ba2..09f8593 100755
--- a/code/submissions/SubmittedFormReportField.php
+++ b/code/submissions/SubmittedFormReportField.php
@@ -4,6 +4,7 @@
*
* @package userforms
*/
+
class SubmittedFormReportField extends FormField {
function Field() {
@@ -181,5 +182,4 @@ class SubmittedFormReportField extends FormField {
}
return (Director::is_ajax()) ? false : Director::redirectBack();
}
-}
-?>
\ No newline at end of file
+}
\ No newline at end of file