SilverCart\Model\Product\Product
abstract for a product.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class Product
extends DataObject
implements
PermissionProvider
{
- // constants
- const DEFAULT_IMAGE_FOLDER = 'product-images';
- const DEFAULT_FILES_FOLDER = 'product-files';
- const PERMISSION_CREATE = 'SILVERCART_PRODUCT_CREATE';
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $many_many = ;
- private static array $belongs_many_many = ;
- private static array $indexes = ;
- private static array $casting = ;
- private static string $default_sort = 'ProductNumberShop';
- private static string $table_name = 'SilvercartProduct';
- private static bool $api_access = true;
- private static integer $stock_quantity_is_low_max = 2;
- private static string $new_product_default_unit = 'month';
- private static string $new_product_default_unit_quantity = '2';
- private static array $keyword_map = ;
- protected static array $requiredAttributes = ;
- protected static array $blacklistedRequiredAttributes = ;
- protected static array $extendedSortableFrontendFields = ;
- protected array $cacheHashes = ;
- protected Money $price = NULL;
- protected ArrayList $pluggedInTabs = NULL;
- protected ArrayList $pluggedInProductListAdditionalData = NULL;
- protected ArrayList $pluggedInAfterImageContent = NULL;
- protected ArrayList $pluggedInProductMetaData = NULL;
- protected bool $getCMSFieldsIsCalled = false;
- protected static $scDefaultSort = NULL;
- protected static $sortableFrontendFields = NULL;
- protected bool $isStockQuantityOverbookable = NULL;
- protected Tax $cachedTax = NULL;
- protected AvailabilityStatus $cachedAvailabilityStatus = NULL;
- protected array $positionInCart = ;
- protected array $quantityInCart = ;
- protected array $quantityInCartString = ;
- protected SS_List $images = NULL;
- protected bool $ignoreTaxExemption = false;
- protected Image $listImage = NULL;
- protected array $i18nLinks = ;
- protected $deliveryTime = NULL;
- protected $earliestDeliveryDate = NULL;
- protected $latestDeliveryDate = NULL;
- protected $fullDeliveryDate = NULL;
- protected bool $updateStockQuantity = false;
- protected int $updateStockQuantityOrigin = StockItemEntry::ORIGIN_CODE_UNDEFINED;
- protected string $updateStockQuantityReason = '';
- // methods
- public string singular_name()
- public string plural_name()
- public string getTitle()
- public string getListTitle()
- public string getShortDescription()
- public string getLongDescription()
- public string getMetaDescription()
- public string getMetaTitle()
- public DBHTMLText getOrderEmailText()
- public float getStockQuantity()
- public Country|null getDefaultShippingCountry()
- public ShippingFee getDefaultShippingFee()
- public Money getMSRPrice()
- public string getMSRPriceNice()
- public string getBeforeProductHtmlInjections()
- public string getAfterProductHtmlInjections()
- public bool hasMSRPrice()
- public boolean hasPortraitOrientationImage()
- public bool hasLandscapeOrientationImage()
- public array providePermissions()
- public bool canCreate()
- public bool canEdit()
- public bool canView()
- public array summaryFields()
- public array searchableFields()
- public static void addExtendedSortableFrontendFields()
- public array sortableFrontendFields()
- public array fieldLabels()
- public string getisActiveString()
- public string getCondition()
- public string getDefaultSort()
- public static string defaultSort()
- public static void setDefaultSort()
- public static DataList get()
- public static Product get_by_product_number()
- public static string buildRequiredAttributesFilter()
- public static string get_frontend_sql_filter()
- public static DataList getProductsList()
- public static SS_List getProducts()
- public static PaginatedList getPaginatedProducts()
- public FieldList scaffoldFormFields()
- public void getFieldsForProductGroups()
- public void getFieldsForWidgets()
- public void getFieldsForMain()
- public void getFieldsForStock()
- public void getFieldsForPrices()
- public void getFieldsForSeo()
- public void getFieldsForImages()
- public void getFieldsForFiles()
- public FieldList getCMSFields()
- public DBHTMLText getHtmlEncodedLongDescription()
- public array excludeFromScaffolding()
- public DBHTMLText getHtmlEncodedShortDescription()
- public Product clearPriceCache()
- public DBMoney getPrice()
- public DBHTMLText getPriceNice()
- public SearchContext getCustomSearchContext()
- public static Folder getImageUploadFolder()
- public static Folder getFileUploadFolder()
- public static PaginatedList getRandomProducts()
- public static array getRequiredAttributes()
- public static void setRequiredAttributes()
- public static void addRequiredAttribute()
- public static void blacklistRequiredAttribute()
- public static void removeRequiredAttribute()
- public static void resetRequiredAttributes()
- private string title2urlSegment()
- public array getAddToCartPositionFilter()
- public ShoppingCartPosition addToCart()
- public float getValidShoppingCartQuantity()
- public bool isInCart()
- public bool hasCartNotice()
- public DBHTMLText getCartNotices()
- public ShoppingCartPosition getPositionInCart()
- public float getMinQuantityForCart()
- public float getMaxQuantityForCart()
- public float getQuantityInCart()
- public string getQuantityInCartString()
- public ProductGroupPage ProductGroup()
- public bool isInGroup()
- public bool isPublished()
- public string buildLinkWithGroup()
- public string buildLink()
- public string getLink()
- public string Link()
- public string CanonicalLink()
- public string getAbsoluteLink()
- public string AbsoluteLink()
- public string ProductQuestionLink()
- public string AddToCartLink()
- public bool IsMirroredView()
- public float getTaxAmount()
- public string getTaxAmountNice()
- public DBHTMLText getMicrodata()
- public int getPurchaseMinDurationDays()
- public int getPurchaseMaxDurationDays()
- public int getPurchaseTimeUnitBusinessDays()
- public DBHTMLText getAvailability()
- public DBHTMLText Availability()
- public AvailabilityStatus AvailabilityStatus()
- public bool showAvailability()
- public bool showPricesGross()
- public float getTaxRate()
- public Tax Tax()
- public WidgetArea WidgetArea()
- public void onBeforeDelete()
- public void onBeforeWrite()
- public bool assignKeywords()
- public void extendMarkForCacheRefresh()
- public void onAfterWrite()
- public WidgetArea addWidgetAreaIfNotExists()
- public array getCacheRelevantFields()
- public SS_List getImages()
- public DataList|ArrayList getThumbnails()
- public DBHTMLText getListImageThumbnail()
- public Image getListImage()
- public ArrayList getImagesForSitemap()
- public ArrayList ImagesForSitemap()
- public $this changeStockQuantityBy()
- public $this decrementStockQuantity()
- public $this incrementStockQuantity()
- public int getStockQuantityByItemEntries()
- public bool isStockQuantityOverbookable()
- public boolean isBuyableDueToStockManagementSettings()
- public static string getIsNewProductDefaultTimeDifference()
- public bool isNewProduct()
- public bool StockQuantityIsLow()
- public bool HasReleaseDate()
- public string FullReleaseDate()
- public bool HasDeliveryTime()
- public string getDeliveryTime()
- public string EarliestDeliveryDate()
- public string LatestDeliveryDate()
- public string FullDeliveryDate()
- public bool DeliveryForFreeIsPossible()
- public string DeliveryForFreeIsPossibleInfo()
- protected void checkForAvailabilityStatusChange()
- public string getProductMirrorGroupIDs()
- public bool getPriceIsLowerThanMsr()
- public ArrayList getPluggedInTabs()
- public ArrayList getPluggedInProductMetaData()
- public ArrayList getPluggedInProductListAdditionalData()
- public ArrayList getPluggedInAfterImageContent()
- public AddToCartForm AddToCartForm()
- public DBHTMLText AfterOutOfStockNotificationContent()
- public DBHTMLText AfterPriceNiceContent()
- public DBHTMLText AfterShoppingCartAjaxResponseContent()
- public DBHTMLText BeforePriceNiceContent()
- public DBHTMLText BeforeShoppingCartAjaxResponseContent()
- public DBHTMLText OverwriteShoppingCartAjaxResponseContent()
- public $this setUpdateStockQuantity()
- public bool getUpdateStockQuantity()
- public $this setUpdateStockQuantityOrigin()
- public string getUpdateStockQuantityOrigin()
- public $this setUpdateStockQuantityReason()
- public string getUpdateStockQuantityReason()
- public DBHTMLText forTemplate()
- // 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
Extends
- SilverStripe\ORM\DataObject
Uses
Implements
- SilverStripe\Security\PermissionProvider
Constants
Name | Value |
---|---|
DEFAULT_IMAGE_FOLDER | 'product-images' |
DEFAULT_FILES_FOLDER | 'product-files' |
PERMISSION_CREATE | 'SILVERCART_PRODUCT_CREATE' |
Members
private
- $api_access
—
SilverCart\Model\Product\bool
Grant API access on this item. - $belongs_many_many
—
array
m:n relations - $casting
—
array
Casting. - $db
—
array
attributes - $default_sort
—
string
The default sorting. - $has_many
—
array
n:m relations - $has_one
—
array
1:n relations - $indexes
—
array
Adds database indexes - $keyword_map
—
array
Map of keywords to automatically add to a product. - $many_many
—
array
Belongs-many-many relations. - $new_product_default_unit
—
string
Default time unit for new products. - $new_product_default_unit_quantity
—
string
Default time unit quantity for new products. - $stock_quantity_is_low_max
—
int
If a products stock quantity is below this value, it's shown as low. - $table_name
—
string
DB table name
protected
- $blacklistedRequiredAttributes
—
array
Blacklist of attributes that may not be set as required attributes. - $cacheHashes
—
array
Contains hashes for caching. - $cachedAvailabilityStatus
—
SilverCart\Model\Product\AvailabilityStatus
Cached AvailabilityStatus object. The related status object will be stored in this property after its first call. - $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. - $deliveryTime
—
string
Delivery time. - $earliestDeliveryDate
—
string
Earliest delivery date. - $extendedSortableFrontendFields
—
array
Temporary extended sortable frontend fields - $fullDeliveryDate
—
string
Full delivery date. - $getCMSFieldsIsCalled
—
SilverCart\Model\Product\bool
Marker to check whether the CMS fields are called or not - $i18nLinks
—
array
List of already requested and localized i18n links. - $ignoreTaxExemption
—
SilverCart\Model\Product\bool
Determines whether to ignore tax exemption or not. - $images
—
SilverStripe\ORM\SS_List
Images to show - $isStockQuantityOverbookable
—
SilverCart\Model\Product\bool
Determines whether the stock quantity is overbookable or not - $latestDeliveryDate
—
string
Latest delivery date. - $listImage
—
SilverCart\Model\Product\Image
The first image out of the related Images. - $pluggedInAfterImageContent
—
SilverStripe\ORM\ArrayList
All added product additional information to display between Images and Content. - $pluggedInProductListAdditionalData
—
SilverStripe\ORM\ArrayList
All added product additional information via module - $pluggedInProductMetaData
—
SilverStripe\ORM\ArrayList
All added product information via module - $pluggedInTabs
—
SilverStripe\ORM\ArrayList
All added product tabs via module - $positionInCart
—
array
The position of the product in cart. - $price
—
SilverCart\Model\Product\Money
The final price object (dependent on customer class and custom extensions like rebates @see $this->getPrice()) - $quantityInCart
—
array
The quantity of the product in cart. - $quantityInCartString
—
string
The quantity of the product in cart as a human readable string. - $requiredAttributes
—
array
Array of all attributes that must be set to show an product in the frontend and enter it via backend. - $scDefaultSort
—
string
Default sort string to use for products - $sortableFrontendFields
—
array
The sortable fields that can be used in frontend - $updateStockQuantity
—
SilverCart\Model\Product\bool
Set to true to prevent the creation of a stock item entry when changing the product's stock quantity directly. - $updateStockQuantityOrigin
—
int
The origin for a stock quantity update. - $updateStockQuantityReason
—
string
The reason for a stock quantity update.
Methods
private
- title2urlSegment() — Remove chars from the title that are not appropriate for an url
protected
- checkForAvailabilityStatusChange() — Checks whether there is a status change needed and executes the change if needed.
public
- AbsoluteLink() — Returns the link to this product with protocol and domain
- AddToCartForm() — Returns the AddToCartForm.
- AddToCartLink() — Returns the link to add this product to cart.
- AfterOutOfStockNotificationContent() — Returns some additional content to insert right after the out of stock notification is rendered.
- AfterPriceNiceContent() — Returns some additional content to insert right after the nice price is rendered.
- AfterShoppingCartAjaxResponseContent() — Returns some additional content to insert right after the add to cart AJAX response default product content.
- Availability() — Returns a HTML snippet to display the availability of the product.
- AvailabilityStatus() — Returns the related AvailabilityStatus object.
- BeforePriceNiceContent() — Returns some additional content to insert right before the nice price is rendered.
- BeforeShoppingCartAjaxResponseContent() — Returns some additional content to insert right before the add to cart AJAX response default product content.
- CanonicalLink() — Canonical link to the controller, that shows this product.
- DeliveryForFreeIsPossible() — Returns whether a delivery for free is possible for this product.
- DeliveryForFreeIsPossibleInfo() — Returns an information text for possible free delivery.
- EarliestDeliveryDate() — Returns the products earliest delivery date string.
- FullDeliveryDate() — Returns the products full delivery date string.
- FullReleaseDate() — Returns the products full release date string.
- HasDeliveryTime() — Returns whether this product has a delivery time.
- HasReleaseDate() — Returns whether this product has a release date.
- ImagesForSitemap() — Returns the images for the Google XML sitemap.
- IsMirroredView() — Returns whether the current view is a mirrored product detail view
- LatestDeliveryDate() — Returns the products latest delivery date string.
- Link() — Link to this product.
- OverwriteShoppingCartAjaxResponseContent() — Returns optional content to insert instead of the original the add to cart AJAX response default product content.
- ProductGroup() — Returns the product group of this product dependent on the current locale
- ProductQuestionLink() — Returns the link to send a product question to the shop manager
- StockQuantityIsLow() — Returns whether the stock quantity is low.
- Tax() — Returns the related Tax object.
- WidgetArea() — Returns the related WidgetArea object.
- addExtendedSortableFrontendFields() — Adds temporary extended sortable frontend fields
- addRequiredAttribute() — Adds an attribute to the required attributes
- addToCart() — adds an product to the cart or increases its amount If stock managament is activated: -If the product's stock quantity is overbookable there are noc hanges in behaviour.
- addWidgetAreaIfNotExists() — Adds a new WidgetArea to the product if not existing yet.
- assignKeywords() — Assigns matching keywords from $this->config()->get('keyword_map').
- blacklistRequiredAttribute() — Blacklists a required attribute.
- buildLink() — Builds the product link with the given parameters.
- buildLinkWithGroup() — Builds the product link with the given parameters.
- buildRequiredAttributesFilter() — Uses the required attributes stored in self::$requiredAttributes to build the filter to use to get a product list.
- canCreate() — Checks whether the given member can create a product.
- canEdit() — Checks whether the given member can edit this product.
- canView() — Is this product viewable in the frontend?
- changeStockQuantityBy() — Increments or decrements the products stock quantity.
- clearPriceCache() — Clears the price cache.
- decrementStockQuantity() — decrements the products stock quantity of this product
- defaultSort() — Returns the default sort order and direction.
- 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.
- extendMarkForCacheRefresh() — Extension to add (mirrored) product groups to the cache refesh marker.
- fieldLabels() — Field labels for display in tables.
- forTemplate() — Returns the rendered position.
- get() — Returns a list of products using the given filter parameters.
- getAbsoluteLink() — Alias for AbsoluteLink()
- getAddToCartPositionFilter() — Returns the DataList filter for shopping cart positions related to this product.
- getAfterProductHtmlInjections() — Returns some injected markup to display after the products detail data.
- getAvailability() — Returns a HTML snippet to display the availability of the product.
- getBeforeProductHtmlInjections() — Returns some injected markup to display before the products detail data.
- getCMSFields() — CMS fields of a product
- getCacheRelevantFields() — Sets the cache relevant fields.
- getCartNotices() — returns a string with notices. Notices are seperated by <br />
- getCondition() — Returns the product condition. If none is defined at the product we try to get the standard product condition as defined in the Config.
- getCustomSearchContext() — define the searchable fields and search methods for the frontend
- getDefaultShippingCountry() — Returns a fallback default country.
- getDefaultShippingFee() — Returns the default shipping fee for this product
- getDefaultSort() — Returns the default sort order and direction.
- getDeliveryTime() — Returns the products delivery time string.
- getFieldsForFiles() — Adds or modifies the fields for the Files tab
- getFieldsForImages() — Adds or modifies the fields for the Images tab
- getFieldsForMain() — Adds or modifies the fields for the Main tab
- getFieldsForPrices() — Adds or modifies the fields for the Prices tab
- getFieldsForProductGroups() — Adds the fields for the MirrorProductGroups tab
- getFieldsForSeo() — Adds or modifies the fields for the SEO tab
- getFieldsForStock() — Adds or modifies the fields for the stock item entries tab
- getFieldsForWidgets() — Adds the fields for the Widgets tab
- getFileUploadFolder() — Creates the upload folder for Product files if it doesn't exist.
- getHtmlEncodedLongDescription() — Returns an HTML encoded long description, preserving HTML tags.
- getHtmlEncodedShortDescription() — Returns an HTML encoded short description, preserving HTML tags.
- getImageUploadFolder() — Creates the upload folder for Product images if it doesn't exist.
- getImages() — Returns a ArrayList of attributed images. If there are no images attributed the method checks if there's a standard no-image visualitation defined in Config and returns the defined image as ArrayList. As last resort boolean false is returned.
- getImagesForSitemap() — Alias for $this->ImagesForSitemap().
- getIsNewProductDefaultTimeDifference() — Returns the default time difference for new products.
- getLink() — Alias for Link()
- getListImage() — Returns the first image out of the related Images.
- getListImageThumbnail() — Returns the list image as a thumbnail Image.
- getListTitle() — Returns the list title
- getLongDescription() — getter for the LongDescription, looks for set translation
- getMSRPrice() — Returns the MSR price.
- getMSRPriceNice() — Returns the MSR price in a nice format
- getMaxQuantityForCart() — Returns the minimum quantity of the product to add to cart.
- getMetaDescription() — Returns the meta description. If not set, it will be generated by it's related products.
- getMetaTitle() — Returns the meta title. If not set, it will be generated by it's title.
- getMicrodata() — Creates the product micro data as a JSON string to use for SEO.
- getMinQuantityForCart() — Returns the minimum quantity of the product to add to cart.
- getOrderEmailText() — Returns the OrderEmailText (multilingual).
- getPaginatedProducts() — Getter similar to DataObject::get(); returns a SS_List of products filtered by the requirements in self::getRequiredAttributes(); If an product is free of charge, it can have no price. This is for giveaways and gifts.
- getPluggedInAfterImageContent() — Returns all additional information to display between Images and Content.
- getPluggedInProductListAdditionalData() — returns all additional list information about a product
- getPluggedInProductMetaData() — returns all additional information about a product
- getPluggedInTabs() — returns all additional product tabs
- getPositionInCart() — Returns the position of the product in cart
- getPrice() — Getter for product price May be decorated by the module silvercart_graduatedprices
- getPriceIsLowerThanMsr() — Checks whether price is lower than MSR
- getPriceNice() — Returns the formatted (Nice) price.
- getProductMirrorGroupIDs() — Returns a string of comma separated IDs of the attributed ProductGroupMirror objects.
- getProducts() — Getter similar to DataObject::get(); returns a SS_List of products filtered by the requirements in self::getRequiredAttributes(); If an product is free of charge, it can have no price. This is for giveaways and gifts.
- getProductsList() — Getter similar to DataObject::get(); returns a SS_List of products filtered by the requirements in self::getRequiredAttributes(); If an product is free of charge, it can have no price. This is for giveaways and gifts.
- getPurchaseMaxDurationDays() — Returns the purchase min duration in business days.
- getPurchaseMinDurationDays() — Returns the purchase min duration in business days.
- getPurchaseTimeUnitBusinessDays() — Returns the count of business days for the related purchase time unit.
- getQuantityInCart() — Returns the quantity of the product in cart
- getQuantityInCartString() — Returns the quantity of the product in cart as a human readable string.
- getRandomProducts() — get some random products to fill a controller every now and then
- getRequiredAttributes() — get all required attributes as an array.
- getShortDescription() — getter for the ShortDescription, looks for set translation
- getStockQuantity() — getter for the Title, looks for set translation
- getStockQuantityByItemEntries() — Calculates and returns the stock quantity by related item entries.
- getTaxAmount() — returns the tax amount included in $this
- getTaxAmountNice() — return the tax amount nice with only 2 decimal places and replaced . in , includes currency symbol from current locale
- getTaxRate() — Returns the tax rate in percent. The attribute 'Rate' of the relation 'Tax' is not used to handle with complex tax systems without clearly defined product taxes.
- getThumbnails() — Returns $this->getImages() without the first image.
- getTitle() — getter for the Title, looks for set translation
- getUpdateStockQuantity() — Returns whether to update the stock quantity without creating a new stock item entry.
- getUpdateStockQuantityOrigin() — Returns the origin for a stock qunatity update.
- getUpdateStockQuantityReason() — Returns the reason for a stock qunatity update.
- getValidShoppingCartQuantity() — Returns a corrected shopping cart quantity dependend on extenal modules.
- get_by_product_number() — Returns the product with the given product number.
- get_frontend_sql_filter() — Returns the SQL filter to prevent to display products which don't match the required attributes.
- getisActiveString() — Returns YES when isActive is true, else it will return NO (dependent on chosen language)
- hasCartNotice() — Returns whether there is a cart notice for this product.
- hasLandscapeOrientationImage() — Returns whether the first image of this product has a landscape orientation.
- hasMSRPrice() — Returns if the MSR price is greater than 0
- hasPortraitOrientationImage() — Returns whether the first image of this product has a portrait orientation.
- incrementStockQuantity() — increments the products stock quantity of this product
- isBuyableDueToStockManagementSettings() — Is this product buyable with the given stock management settings? If Stock management is deactivated true is returned.
- isInCart() — Checks whether the product is inside the cart with the given ID
- isInGroup() — Returns whether this product is in the given group.
- isNewProduct() — Returns if a product is new dependent on its creation date (Created) and the given time difference ($timeDifference).
- isPublished() — Returns whether this product is published.
- isStockQuantityOverbookable() — Is this products stock quantity overbookable? If this product does not have overbookablility set the general setting of the config object is choosen.
- onAfterWrite() — Adds a widget area if not done yet.
- onBeforeDelete() — Deletes all related WidgetAreas and Widgets before deletion.
- onBeforeWrite() — - Adds some extended i18n handling for mirrored product groups.
- plural_name() — Returns the translated plural name of the object. If no translation exists the class name will be returned.
- providePermissions() — Return a map of permission codes to add to the dropdown shown in the Security section of the CMS.
- removeRequiredAttribute() — Removes an attribute from the required attributes list.
- resetRequiredAttributes() — Resets the required attributes list.
- scaffoldFormFields() — Creates a whitelist with restricted fields for the FormScaffolder.
- searchableFields() — Searchable fields
- setDefaultSort() — Sets the default sort order and direction.
- setRequiredAttributes() — define all attributes that must be filled out to show products in the frontend.
- setUpdateStockQuantity() — Sets whether to update the stock quantity without creating a new stock item entry.
- setUpdateStockQuantityOrigin() — Sets the origin for a stock qunatity update.
- setUpdateStockQuantityReason() — Sets the reason for a stock qunatity update.
- showAvailability() — Indicates wether the availability information should be shown. If there's no status attributed we don't want to show it.
- showPricesGross() — used to determine weather something should be shown on a template or not
- singular_name() — Returns the translated singular name of the object. If no translation exists the class name will be returned.
- sortableFrontendFields() — Returns the fields to sort a product by in frontend
- 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.