SilverCart\Model\Product\ProductCondition
Definition for the condition of a product.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class ProductCondition
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $casting = ;
- private static string $table_name = 'SilvercartProductCondition';
- private static array $default_microdata_codes = ;
- // methods
- public string singular_name()
- public string plural_name()
- public string getTitle()
- public array excludeFromScaffolding()
- public FieldList getCMSFields()
- public static string getDropdownFieldOptionSet()
- public array fieldLabels()
- public array searchableFields()
- public array summaryFields()
- public void requireDefaultRecords()
- public string getMicrodataCode()
- // Inherited methods from ExtensibleDataObject
- protected void beforeRequireDefaultRecords()
- protected void beforeUpdateCMSActions()
- protected void beforeUpdateFieldLabels()
- protected void beforeUpdateProvidePermissions()
- public array defaultFieldLabels()
- public static void reset_field_labels()
- protected array scaffoldFieldLabels()
Hierarchy
Members
private
- $casting
—
array
cast attribute class types to other SS types - $db
—
array
attributes - $default_microdata_codes
—
array
List of default microdata codes. - $has_many
—
array
n:m relations - $table_name
—
string
DB table name
protected
- $defaultFieldLabels
—
array
Default field labels.
Methods
public
- excludeFromScaffolding() — Returns an array of field/relation names (db, has_one, has_many, many_many, belongs_many_many) to exclude from form scaffolding in backend.
- fieldLabels() — Field labels for display in tables.
- getCMSFields() — define the CMS fields
- getDropdownFieldOptionSet() — Returns a string with HTML Code for a selector box that lets the user choose a product condition.
- getMicrodataCode() — Returns the title for SEO microdata
- getTitle() — retirieves title from related language class depending on the set locale
- plural_name() — Returns the translated plural name.
- requireDefaultRecords() — Default records for product conditions.
- searchableFields() — Defines the form fields for the search in ModelAdmin
- singular_name() — Returns the translated singular name.
- summaryFields() — Summaryfields for display in tables.
Inherited from SilverCart\ORM\ExtensibleDataObject
protected
- beforeRequireDefaultRecords() — Allows user code to hook into DataObject::requireDefaultRecords() prior to requireDefaultRecords being called on extensions.
- beforeUpdateCMSActions() — Allows user code to hook into DataObject::getCMSActions prior to updateCMSActions being called on extensions.
- beforeUpdateFieldLabels() — Allows user code to hook into DataObject::fieldLabels() prior to updateFieldLabels being called on extensions.
- beforeUpdateProvidePermissions() — Allows user code to hook into DataObject::updateProvidePermissions() prior to providePermissions being called on extensions.
- scaffoldFieldLabels() — Returns the default field labels for this DataObject.
public
- defaultFieldLabels() — Returns the default field labels.
- reset_field_labels() — Resets the field label cache.