SilverCart\Model\Customer\DeletedCustomerReason
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2021 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class DeletedCustomerReason
extends DataObject
{
- // constants
- const DEFAULT_NOT_USING_ANYMORE = 'NotUsingAnymore';
- const DEFAULT_MULTI_ACCOUNT = 'MultiAccount';
- const DEFAULT_NEW_ACCOUNT = 'NewAccount';
- const DEFAULT_SECURITY_MISTRUST = 'SecurityMistrust';
- const DEFAULT_NO_REASON = 'NoReason';
- // members
- private static string $table_name = 'SilverCart_DeletedCustomerReason';
- private static array $db = ;
- private static array $casting = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- private static string $default_sort = 'Sort';
- private static array $extensions = ;
- private static bool $insert_translation_cms_fields = true;
- private static array $default_reasons = ;
- // methods
- public string singular_name()
- public string plural_name()
- public array fieldLabels()
- public void requireDefaultRecords()
- public string getTitle()
- public string getReason()
- // 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
Constants
Name | Value |
---|---|
DEFAULT_NOT_USING_ANYMORE | 'NotUsingAnymore' |
DEFAULT_MULTI_ACCOUNT | 'MultiAccount' |
DEFAULT_NEW_ACCOUNT | 'NewAccount' |
DEFAULT_SECURITY_MISTRUST | 'SecurityMistrust' |
DEFAULT_NO_REASON | 'NoReason' |
Members
private
- $casting
—
array
Casted attributes. - $db
—
array
DB attributes. - $default_reasons
—
array
Default reasons. - $default_sort
—
string
DB default sort. - $extensions
—
array
Extensions. - $has_many
—
array
Has many relations. - $insert_translation_cms_fields
—
SilverCart\Model\Customer\bool
Insert translation fields. - $summary_fields
—
array
Summary fields. - $table_name
—
string
DB table name.
protected
- $defaultFieldLabels
—
array
Default field labels.
Methods
public
- fieldLabels() — i18n for field labels
- getReason() — Returns the Reason
- getTitle() — Returns the title.
- plural_name() — Returns the translated plural name of the object. If no translation exists the class name will be returned.
- requireDefaultRecords() — Requires the default records.
- singular_name() — Returns the translated singular name of the object. If no translation exists the class name will be returned.
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.