\SimpleProductOption
Created by PhpStorm.
User: sanderhagenaars
Date: 07/11/2017
Time: 10.27
Synopsis
class SimpleProductOption
extends DataObject
{
- // members
- private static string $singular_name = "Simple Option";
- private static string $plural_name = "Simple Options";
- private static array $db = ;
- private static array $has_many = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- // methods
- public FieldList getCMSFields()
- protected string getOptionsString()
- public SS_List getSortedValues()
- public string getLabel()
- public DropdownField getFormField()
- public static string getFormFieldName()
- public void duplicate()
Hierarchy
Extends
- DataObject
Members
private
- $db
—
array
List of database fields. {@link DataObject::$db} - $has_many
—
array
List of one-to-many relationships. {@link DataObject::$has_many} - $has_one
—
array
List of one-to-one relationships. {@link DataObject::$has_one} - $plural_name
—
string
Human-readable plural name - $singular_name
—
string
Human-readable singular name. - $summary_fields
Methods
protected
- getOptionsString() — Only for use in summary fields
public
- duplicate()
- getCMSFields() — Returns a FieldList with which to create the main editing form. {@link DataObject::getCMSFields()}
- getFormField()
- getFormFieldName()
- getLabel()
- getSortedValues()