SilverCart\Model\Payment\HandlingCost
Class for processing transaction costs etc.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class HandlingCost
extends DataObject
{
- // members
- private static array $db = ;
- private static array $casting = ;
- private static array $has_one = ;
- private static string $table_name = 'SilvercartHandlingCost';
- protected Tax $cachedTax = NULL;
- // methods
- public array fieldLabels()
- public string singular_name()
- public string plural_name()
- public array summaryFields()
- public FieldList getCMSFields()
- public float getPriceAmount()
- public Tax Tax()
- public float getTaxRate()
- public float getTaxAmount()
- public string PriceFormatted()
- public string|null handlingcosts()
- // 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
Casting. - $db
—
array
Attributes. - $has_one
—
array
Has-one relationships. - $table_name
—
string
DB table name
protected
- $cachedTax
—
SilverCart\Model\Product\Tax
Cached Tax object. The related tax object will be stored in this property after its first call. - $defaultFieldLabels
—
array
Default field labels.
Methods
public
- PriceFormatted() — Returns the Price formatted by locale.
- Tax() — Returns the related Tax object.
- fieldLabels() — Sets the field labels.
- getCMSFields() — customizes the backends fields, mainly for ModelAdmin
- getPriceAmount() — Returns the prices amount
- getTaxAmount() — returns the tax amount included in $this
- getTaxRate() — Returns the tax rate for this fee.
- handlingcosts() — Returns the handling costs for display in tables.
- plural_name() — Returns the translated plural name of the object. If no translation exists the class name will be returned.
- singular_name() — Returns the translated singular name of the object. If no translation exists the class name will be returned.
- 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.