mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
made private variables public so dev/build would run in ss 3.1
This commit is contained in:
parent
e081e9fa6e
commit
64b20b7516
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
class EditableCheckbox extends EditableFormField {
|
class EditableCheckbox extends EditableFormField {
|
||||||
|
|
||||||
private static $singular_name = 'Checkbox Field';
|
public static $singular_name = 'Checkbox Field';
|
||||||
|
|
||||||
private static $plural_name = 'Checkboxes';
|
public static $plural_name = 'Checkboxes';
|
||||||
|
|
||||||
public function getFieldConfiguration() {
|
public function getFieldConfiguration() {
|
||||||
$options = parent::getFieldConfiguration();
|
$options = parent::getFieldConfiguration();
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
class EditableCheckboxGroupField extends EditableMultipleOptionField {
|
class EditableCheckboxGroupField extends EditableMultipleOptionField {
|
||||||
|
|
||||||
private static $singular_name = "Checkbox Group";
|
public static $singular_name = "Checkbox Group";
|
||||||
|
|
||||||
private static $plural_name = "Checkbox Groups";
|
public static $plural_name = "Checkbox Groups";
|
||||||
|
|
||||||
public function getFormField() {
|
public function getFormField() {
|
||||||
$optionSet = $this->Options();
|
$optionSet = $this->Options();
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
*/
|
*/
|
||||||
class EditableCountryDropdownField extends EditableFormField {
|
class EditableCountryDropdownField extends EditableFormField {
|
||||||
|
|
||||||
private static $singular_name = 'Country Dropdown';
|
public static $singular_name = 'Country Dropdown';
|
||||||
|
|
||||||
private static $plural_name = 'Country Dropdowns';
|
public static $plural_name = 'Country Dropdowns';
|
||||||
|
|
||||||
public function getFormField() {
|
public function getFormField() {
|
||||||
return new CountryDropdownField($this->Name, $this->Title);
|
return new CountryDropdownField($this->Name, $this->Title);
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
class EditableDateField extends EditableFormField {
|
class EditableDateField extends EditableFormField {
|
||||||
|
|
||||||
private static $singular_name = 'Date Field';
|
public static $singular_name = 'Date Field';
|
||||||
|
|
||||||
private static $plural_name = 'Date Fields';
|
public static $plural_name = 'Date Fields';
|
||||||
|
|
||||||
public function getFieldConfiguration() {
|
public function getFieldConfiguration() {
|
||||||
$default = ($this->getSetting('DefaultToToday')) ? $this->getSetting('DefaultToToday') : false;
|
$default = ($this->getSetting('DefaultToToday')) ? $this->getSetting('DefaultToToday') : false;
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
class EditableDropdown extends EditableMultipleOptionField {
|
class EditableDropdown extends EditableMultipleOptionField {
|
||||||
|
|
||||||
private static $singular_name = 'Dropdown Field';
|
public static $singular_name = 'Dropdown Field';
|
||||||
|
|
||||||
private static $plural_name = 'Dropdowns';
|
public static $plural_name = 'Dropdowns';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return DropdownField
|
* @return DropdownField
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
class EditableEmailField extends EditableFormField {
|
class EditableEmailField extends EditableFormField {
|
||||||
|
|
||||||
private static $singular_name = 'Email Field';
|
public static $singular_name = 'Email Field';
|
||||||
|
|
||||||
private static $plural_name = 'Email Fields';
|
public static $plural_name = 'Email Fields';
|
||||||
|
|
||||||
public function getFormField() {
|
public function getFormField() {
|
||||||
return new EmailField($this->Name, $this->Title);
|
return new EmailField($this->Name, $this->Title);
|
||||||
|
@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
class EditableFileField extends EditableFormField {
|
class EditableFileField extends EditableFormField {
|
||||||
|
|
||||||
private static $singular_name = 'File Upload Field';
|
public static $singular_name = 'File Upload Field';
|
||||||
|
|
||||||
private static $plural_names = 'File Fields';
|
public static $plural_names = 'File Fields';
|
||||||
|
|
||||||
public function getFormField() {
|
public function getFormField() {
|
||||||
$field = new FileField($this->Name, $this->Title);
|
$field = new FileField($this->Name, $this->Title);
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
class EditableFormField extends DataObject {
|
class EditableFormField extends DataObject {
|
||||||
|
|
||||||
private static $default_sort = "Sort";
|
public static $default_sort = "Sort";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of CSS classes that can be added
|
* A list of CSS classes that can be added
|
||||||
@ -17,7 +17,7 @@ class EditableFormField extends DataObject {
|
|||||||
*/
|
*/
|
||||||
public static $allowed_css = array();
|
public static $allowed_css = array();
|
||||||
|
|
||||||
private static $db = array(
|
public static $db = array(
|
||||||
"Name" => "Varchar",
|
"Name" => "Varchar",
|
||||||
"Title" => "Varchar(255)",
|
"Title" => "Varchar(255)",
|
||||||
"Default" => "Varchar",
|
"Default" => "Varchar",
|
||||||
@ -29,11 +29,11 @@ class EditableFormField extends DataObject {
|
|||||||
"CustomParameter" => "Varchar(200)"
|
"CustomParameter" => "Varchar(200)"
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $has_one = array(
|
public static $has_one = array(
|
||||||
"Parent" => "UserDefinedForm",
|
"Parent" => "UserDefinedForm",
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $extensions = array(
|
public static $extensions = array(
|
||||||
"Versioned('Stage', 'Live')"
|
"Versioned('Stage', 'Live')"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
class EditableFormHeading extends EditableFormField {
|
class EditableFormHeading extends EditableFormField {
|
||||||
|
|
||||||
private static $singular_name = 'Heading';
|
public static $singular_name = 'Heading';
|
||||||
|
|
||||||
private static $plural_name = 'Headings';
|
public static $plural_name = 'Headings';
|
||||||
|
|
||||||
public function getFieldConfiguration() {
|
public function getFieldConfiguration() {
|
||||||
$levels = array(
|
$levels = array(
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
class EditableLiteralField extends EditableFormField {
|
class EditableLiteralField extends EditableFormField {
|
||||||
|
|
||||||
private static $singular_name = 'HTML Block';
|
public static $singular_name = 'HTML Block';
|
||||||
|
|
||||||
private static $plural_name = 'HTML Blocks';
|
public static $plural_name = 'HTML Blocks';
|
||||||
|
|
||||||
public function getFieldConfiguration() {
|
public function getFieldConfiguration() {
|
||||||
$customSettings = unserialize($this->CustomSettings);
|
$customSettings = unserialize($this->CustomSettings);
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
class EditableMemberListField extends EditableFormField {
|
class EditableMemberListField extends EditableFormField {
|
||||||
|
|
||||||
private static $singular_name = 'Member List Field';
|
public static $singular_name = 'Member List Field';
|
||||||
|
|
||||||
private static $plural_name = 'Member List Fields';
|
public static $plural_name = 'Member List Fields';
|
||||||
|
|
||||||
public function getFieldConfiguration() {
|
public function getFieldConfiguration() {
|
||||||
$groupID = ($this->getSetting('GroupID')) ? $this->getSetting('GroupID') : 0;
|
$groupID = ($this->getSetting('GroupID')) ? $this->getSetting('GroupID') : 0;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
class EditableMultipleOptionField extends EditableFormField {
|
class EditableMultipleOptionField extends EditableFormField {
|
||||||
|
|
||||||
private static $has_many = array(
|
public static $has_many = array(
|
||||||
"Options" => "EditableOption"
|
"Options" => "EditableOption"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -9,20 +9,20 @@
|
|||||||
|
|
||||||
class EditableOption extends DataObject {
|
class EditableOption extends DataObject {
|
||||||
|
|
||||||
private static $default_sort = "Sort";
|
public static $default_sort = "Sort";
|
||||||
|
|
||||||
private static $db = array(
|
public static $db = array(
|
||||||
"Name" => "Varchar(255)",
|
"Name" => "Varchar(255)",
|
||||||
"Title" => "Varchar(255)",
|
"Title" => "Varchar(255)",
|
||||||
"Default" => "Boolean",
|
"Default" => "Boolean",
|
||||||
"Sort" => "Int"
|
"Sort" => "Int"
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $has_one = array(
|
public static $has_one = array(
|
||||||
"Parent" => "EditableMultipleOptionField",
|
"Parent" => "EditableMultipleOptionField",
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $extensions = array(
|
public static $extensions = array(
|
||||||
"Versioned('Stage', 'Live')"
|
"Versioned('Stage', 'Live')"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
class EditableRadioField extends EditableMultipleOptionField {
|
class EditableRadioField extends EditableMultipleOptionField {
|
||||||
|
|
||||||
private static $singular_name = 'Radio field';
|
public static $singular_name = 'Radio field';
|
||||||
|
|
||||||
private static $plural_name = 'Radio fields';
|
public static $plural_name = 'Radio fields';
|
||||||
|
|
||||||
public function getFormField() {
|
public function getFormField() {
|
||||||
$optionSet = $this->Options();
|
$optionSet = $this->Options();
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
class EditableTextField extends EditableFormField {
|
class EditableTextField extends EditableFormField {
|
||||||
|
|
||||||
private static $singular_name = 'Text Field';
|
public static $singular_name = 'Text Field';
|
||||||
|
|
||||||
private static $plural_name = 'Text Fields';
|
public static $plural_name = 'Text Fields';
|
||||||
|
|
||||||
public function getFieldConfiguration() {
|
public function getFieldConfiguration() {
|
||||||
$fields = parent::getFieldConfiguration();
|
$fields = parent::getFieldConfiguration();
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
class SubmittedFileField extends SubmittedFormField {
|
class SubmittedFileField extends SubmittedFormField {
|
||||||
|
|
||||||
private static $has_one = array(
|
public static $has_one = array(
|
||||||
"UploadedFile" => "File"
|
"UploadedFile" => "File"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -7,16 +7,16 @@
|
|||||||
|
|
||||||
class SubmittedForm extends DataObject {
|
class SubmittedForm extends DataObject {
|
||||||
|
|
||||||
private static $has_one = array(
|
public static $has_one = array(
|
||||||
"SubmittedBy" => "Member",
|
"SubmittedBy" => "Member",
|
||||||
"Parent" => "UserDefinedForm",
|
"Parent" => "UserDefinedForm",
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $has_many = array(
|
public static $has_many = array(
|
||||||
"Values" => "SubmittedFormField"
|
"Values" => "SubmittedFormField"
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $summary_fields = array(
|
public static $summary_fields = array(
|
||||||
'ID',
|
'ID',
|
||||||
'Created'
|
'Created'
|
||||||
);
|
);
|
||||||
|
@ -7,17 +7,17 @@
|
|||||||
|
|
||||||
class SubmittedFormField extends DataObject {
|
class SubmittedFormField extends DataObject {
|
||||||
|
|
||||||
private static $db = array(
|
public static $db = array(
|
||||||
"Name" => "Varchar",
|
"Name" => "Varchar",
|
||||||
"Value" => "Text",
|
"Value" => "Text",
|
||||||
"Title" => "Varchar(255)"
|
"Title" => "Varchar(255)"
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $has_one = array(
|
public static $has_one = array(
|
||||||
"Parent" => "SubmittedForm"
|
"Parent" => "SubmittedForm"
|
||||||
);
|
);
|
||||||
|
|
||||||
private static $summary_fields = array(
|
public static $summary_fields = array(
|
||||||
'Title',
|
'Title',
|
||||||
'FormattedValue' => 'Value'
|
'FormattedValue' => 'Value'
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user