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;
@ -718,6 +720,4 @@ class UserDefinedForm_SubmittedFormEmail extends Email {
function __construct() {
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')));
@ -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');
}
}
?>
}

View File

@ -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;
}
}
?>
}

View File

@ -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
);
}
}
?>
}

View File

@ -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);
}
}
?>
}

View File

@ -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
);
}
}
?>
}

View File

@ -4,6 +4,7 @@
*
* @package userforms
*/
class EditableFileField extends EditableFormField {
// this needs to be moved.
@ -38,5 +39,4 @@ class EditableFileField extends EditableFormField {
return "";
}
}
?>
}

View File

@ -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();
}
}
?>
}

View File

@ -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;
}
}
?>
}

View File

@ -23,5 +23,4 @@ class EditableLiteralField extends EditableFormField {
return new LiteralField("LiteralField[$this->ID]",
"<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';
@ -31,5 +32,4 @@ class EditableMemberListField extends EditableFormField {
$member = DataObject::get_one('Member', "Member.ID = {$value}");
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
*/
@ -143,5 +140,4 @@ class EditableMultipleOptionField extends EditableFormField {
public function getFormField() {
return user_error('Please implement getFormField() on '. $this->class, E_USER_ERROR);
}
}
?>
}

View File

@ -70,5 +70,4 @@ class EditableOption extends DataObject {
$this->readonly = true;
return $this->EditSegment();
}
}
?>
}

View File

@ -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);
}
}
?>
}

View File

@ -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;
}
}
?>
}

View File

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

View File

@ -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<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(
@ -25,7 +27,5 @@ 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",
@ -26,5 +28,4 @@ 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() {
@ -181,5 +182,4 @@ class SubmittedFormReportField extends FormField {
}
return (Director::is_ajax()) ? false : Director::redirectBack();
}
}
?>
}