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 {
|
||||
|
||||
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() {
|
||||
$options = parent::getFieldConfiguration();
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
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() {
|
||||
$optionSet = $this->Options();
|
||||
|
@ -7,9 +7,9 @@
|
||||
*/
|
||||
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() {
|
||||
return new CountryDropdownField($this->Name, $this->Title);
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
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() {
|
||||
$default = ($this->getSetting('DefaultToToday')) ? $this->getSetting('DefaultToToday') : false;
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
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
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
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() {
|
||||
return new EmailField($this->Name, $this->Title);
|
||||
|
@ -8,9 +8,9 @@
|
||||
|
||||
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() {
|
||||
$field = new FileField($this->Name, $this->Title);
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
class EditableFormField extends DataObject {
|
||||
|
||||
private static $default_sort = "Sort";
|
||||
public static $default_sort = "Sort";
|
||||
|
||||
/**
|
||||
* A list of CSS classes that can be added
|
||||
@ -17,7 +17,7 @@ class EditableFormField extends DataObject {
|
||||
*/
|
||||
public static $allowed_css = array();
|
||||
|
||||
private static $db = array(
|
||||
public static $db = array(
|
||||
"Name" => "Varchar",
|
||||
"Title" => "Varchar(255)",
|
||||
"Default" => "Varchar",
|
||||
@ -29,11 +29,11 @@ class EditableFormField extends DataObject {
|
||||
"CustomParameter" => "Varchar(200)"
|
||||
);
|
||||
|
||||
private static $has_one = array(
|
||||
public static $has_one = array(
|
||||
"Parent" => "UserDefinedForm",
|
||||
);
|
||||
|
||||
private static $extensions = array(
|
||||
public static $extensions = array(
|
||||
"Versioned('Stage', 'Live')"
|
||||
);
|
||||
|
||||
|
@ -7,9 +7,9 @@
|
||||
|
||||
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() {
|
||||
$levels = array(
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
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() {
|
||||
$customSettings = unserialize($this->CustomSettings);
|
||||
|
@ -7,9 +7,9 @@
|
||||
|
||||
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() {
|
||||
$groupID = ($this->getSetting('GroupID')) ? $this->getSetting('GroupID') : 0;
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
class EditableMultipleOptionField extends EditableFormField {
|
||||
|
||||
private static $has_many = array(
|
||||
public static $has_many = array(
|
||||
"Options" => "EditableOption"
|
||||
);
|
||||
|
||||
|
@ -9,20 +9,20 @@
|
||||
|
||||
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)",
|
||||
"Title" => "Varchar(255)",
|
||||
"Default" => "Boolean",
|
||||
"Sort" => "Int"
|
||||
);
|
||||
|
||||
private static $has_one = array(
|
||||
public static $has_one = array(
|
||||
"Parent" => "EditableMultipleOptionField",
|
||||
);
|
||||
|
||||
private static $extensions = array(
|
||||
public static $extensions = array(
|
||||
"Versioned('Stage', 'Live')"
|
||||
);
|
||||
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
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() {
|
||||
$optionSet = $this->Options();
|
||||
|
@ -9,9 +9,9 @@
|
||||
|
||||
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() {
|
||||
$fields = parent::getFieldConfiguration();
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
class SubmittedFileField extends SubmittedFormField {
|
||||
|
||||
private static $has_one = array(
|
||||
public static $has_one = array(
|
||||
"UploadedFile" => "File"
|
||||
);
|
||||
|
||||
|
@ -7,16 +7,16 @@
|
||||
|
||||
class SubmittedForm extends DataObject {
|
||||
|
||||
private static $has_one = array(
|
||||
public static $has_one = array(
|
||||
"SubmittedBy" => "Member",
|
||||
"Parent" => "UserDefinedForm",
|
||||
);
|
||||
|
||||
private static $has_many = array(
|
||||
public static $has_many = array(
|
||||
"Values" => "SubmittedFormField"
|
||||
);
|
||||
|
||||
private static $summary_fields = array(
|
||||
public static $summary_fields = array(
|
||||
'ID',
|
||||
'Created'
|
||||
);
|
||||
|
@ -7,17 +7,17 @@
|
||||
|
||||
class SubmittedFormField extends DataObject {
|
||||
|
||||
private static $db = array(
|
||||
public static $db = array(
|
||||
"Name" => "Varchar",
|
||||
"Value" => "Text",
|
||||
"Title" => "Varchar(255)"
|
||||
);
|
||||
|
||||
private static $has_one = array(
|
||||
public static $has_one = array(
|
||||
"Parent" => "SubmittedForm"
|
||||
);
|
||||
|
||||
private static $summary_fields = array(
|
||||
public static $summary_fields = array(
|
||||
'Title',
|
||||
'FormattedValue' => 'Value'
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user