MINOR: Removed closing ?> from class files. MINOR: fixed package names

This commit is contained in:
Will Rossiter 2009-12-07 02:04:20 +00:00
parent dfc2476c79
commit b4f5229f58
21 changed files with 45 additions and 52 deletions

View File

@ -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;
@ -719,5 +721,3 @@ class UserDefinedForm_SubmittedFormEmail extends Email {
parent::__construct();
}
}
?>

View File

@ -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')));
@ -27,4 +27,3 @@ class EditableCheckbox extends EditableFormField {
return ($value) ? _t('EditableFormField.YES', 'Yes') : _t('EditableFormField.NO', 'No');
}
}
?>

View File

@ -6,6 +6,7 @@
*
* @package userforms
*/
class EditableCheckboxGroupField extends EditableMultipleOptionField {
static $singular_name = "Checkbox Group";
@ -40,5 +41,3 @@ class EditableCheckboxGroupField extends EditableMultipleOptionField {
return $result;
}
}
?>

View File

@ -6,6 +6,7 @@
*
* @package userforms
*/
class EditableDateField extends EditableFormField {
static $singular_name = 'Date Field';
@ -46,4 +47,3 @@ class EditableDateField extends EditableFormField {
);
}
}
?>

View File

@ -6,6 +6,7 @@
*
* @package userforms
*/
class EditableDropdown extends EditableMultipleOptionField {
static $singular_name = 'Dropdown Field';
@ -25,4 +26,3 @@ class EditableDropdown extends EditableMultipleOptionField {
}
}
?>

View File

@ -6,6 +6,7 @@
*
* @package userforms
*/
class EditableEmailField extends EditableFormField {
static $singular_name = 'Email Field';
@ -30,4 +31,3 @@ class EditableEmailField extends EditableFormField {
);
}
}
?>

View File

@ -4,6 +4,7 @@
*
* @package userforms
*/
class EditableFileField extends EditableFormField {
// this needs to be moved.
@ -39,4 +40,3 @@ class EditableFileField extends EditableFormField {
}
}
?>

View File

@ -5,6 +5,7 @@
*
* @package userforms
*/
class EditableFormField extends DataObject {
static $default_sort = "Sort";
@ -365,4 +366,3 @@ class EditableFormField extends DataObject {
return array();
}
}
?>

View File

@ -4,6 +4,7 @@
*
* @subpackage userforms
*/
class EditableFormHeading extends EditableFormField {
static $singular_name = 'Heading';
@ -38,4 +39,3 @@ class EditableFormHeading extends EditableFormField {
return false;
}
}
?>

View File

@ -24,4 +24,3 @@ class EditableLiteralField extends EditableFormField {
"<div id='$this->Name' class='field text'><label class='left'>$this->Title</label><div class='middleColumn literalFieldArea'>". $this->getSetting('Content') ."</div></div>");
}
}
?>

View File

@ -4,6 +4,7 @@
*
* @package userforms
*/
class EditableMemberListField extends EditableFormField {
static $singular_name = 'Member List Field';
@ -32,4 +33,3 @@ class EditableMemberListField extends EditableFormField {
return ($member) ? $member->getName() : "";
}
}
?>

View File

@ -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
*/
@ -144,4 +141,3 @@ class EditableMultipleOptionField extends EditableFormField {
return user_error('Please implement getFormField() on '. $this->class, E_USER_ERROR);
}
}
?>

View File

@ -71,4 +71,3 @@ class EditableOption extends DataObject {
return $this->EditSegment();
}
}
?>

View File

@ -6,6 +6,7 @@
*
* @package userforms
*/
class EditableRadioField extends EditableMultipleOptionField {
static $singular_name = 'Radio field';
@ -26,4 +27,3 @@ class EditableRadioField extends EditableMultipleOptionField {
return new OptionsetField($this->Name, $this->Title, $options);
}
}
?>

View File

@ -6,6 +6,7 @@
*
* @package userforms
*/
class EditableTextField extends EditableFormField {
static $singular_name = 'Text field';
@ -59,4 +60,3 @@ class EditableTextField extends EditableFormField {
return $options;
}
}
?>

View File

@ -4,6 +4,7 @@
*
* @package userforms
*/
class FieldEditor extends FormField {
protected $hasFormOptions = true;
@ -255,4 +256,3 @@ class FieldEditor extends FormField {
}
}
}
?>

View File

@ -16,6 +16,7 @@
*
* @package userforms
*/
class UserFormsMigrationTask extends MigrationTask {
protected $title = "UserForms Database Migration";
@ -211,4 +212,3 @@ class UserFormsMigrationTask extends MigrationTask {
echo " -- -- Created new option $editableOption->Title<br />";
}
}
?>

View File

@ -1,8 +1,10 @@
<?php
/**
* A file uploaded on a UserDefinedForm field
* @package cms
*
* @package userforms
*/
class SubmittedFileField extends SubmittedFormField {
static $has_one = array(
@ -26,6 +28,4 @@ class SubmittedFileField extends SubmittedFormField {
function getLink() {
return ($this->UploadedFile()) ? $this->UploadedFile()->URL : "";
}
}
?>

View File

@ -1,8 +1,10 @@
<?php
/**
* Contents of an UserDefinedForm submission
* @package cms
*
* @package userforms
*/
class SubmittedForm extends DataObject {
static $has_one = array(
"SubmittedBy" => "Member",
@ -27,4 +29,3 @@ class SubmittedForm extends DataObject {
parent::onBeforeDelete();
}
}
?>

View File

@ -4,6 +4,7 @@
*
* @package userforms
*/
class SubmittedFormField extends DataObject {
static $db = array(
@ -17,4 +18,3 @@ class SubmittedFormField extends DataObject {
);
}
?>

View File

@ -4,6 +4,7 @@
*
* @package userforms
*/
class SubmittedFormReportField extends FormField {
function Field() {
@ -182,4 +183,3 @@ class SubmittedFormReportField extends FormField {
return (Director::is_ajax()) ? false : Director::redirectBack();
}
}
?>