\PricelistItem
Class PricelistItem
Synopsis
class PricelistItem
extends DataObject
{
- // members
- private static boolean $hide_zero_prices = false;
- private static array $db = ;
- private static array $belongs_many_many = ;
- private static string $default_sort = 'SortOrder';
- private static array $summary_fields = ;
- private static array $xml_escape_fields = ;
- // methods
- public void fieldLabels()
- public void getCMSFields()
- public void TableRow()
- public void Columns()
- public void DisplayPrice()
- public void StartingPriceAbbreviation()
- public string LeftCurrencySign()
- public string RightCurrencySign()
- private mixed getFieldValue()
- public void canCreate()
- public void canEdit()
- public void canDelete()
- public void canView()
- public string SummaryTitle()
- public string SummaryDescription()
Hierarchy
Extends
- DataObject
Members
private
- $belongs_many_many
- $db
- $default_sort
- $hide_zero_prices
- $summary_fields
- $xml_escape_fields
—
array
A list of fields whose values should be escaped when rendered to a template in frontend. Basically all database fields, excluding HTML fields. May also contain dynamic fields (= values retrieved from methods) if those should not return HTML values.
Methods
private
public
- Columns()
- DisplayPrice()
- LeftCurrencySign() — Returns the currency sign IF currency sign is configured to be displayed on the left side. Otherwise returns an empty string.
- RightCurrencySign() — Returns the currency sign IF currency sign is configured to be displayed on the right side. Otherwise returns an empty string.
- StartingPriceAbbreviation()
- SummaryDescription() — Removes HTML tags from the Description field so that it can be used in the $summary_fields.
- SummaryTitle() — Used in the backend to display the PricelistItem Title - or, if it's empty, a generic item word just to make the item row to be notable in the GridField editor.
- TableRow()
- canCreate()
- canDelete()
- canEdit()
- canView()
- fieldLabels()
- getCMSFields()