\Product
Synopsis
class Product
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $many_many = ;
- private static array $many_many_extraFields = ;
- private static array $belongs_many_many = ;
- private static array $casting = ;
- private static array $summary_fields = ;
- private static array $export_fields = ;
- private static array $searchable_fields = ;
- private static string $default_sort = "\"Sort\" ASC, \"Title\" ASC";
- // methods
- public string Link()
- public void AbsoluteLink()
- public void getMenuTitle()
- public Decimal getTax()
- public Decimal getPriceWithTax()
- public Decimal getFrontPrice()
- public ArrayList SortedImages()
- public string Breadcrumbs()
- public void getCMSThumbnail()
- public void HasMultipleImages()
- public void getCategoriesList()
- public void getImagesList()
- public void getCMSFields()
- public void getCMSValidator()
- public bool validURLSegment()
- public string generateURLSegment()
- public void onBeforeWrite()
- public void onBeforeDelete()
- public void canView()
- public void canCreate()
- public void canEdit()
- public void canDelete()
Hierarchy
Extends
- DataObject
Members
private
- $belongs_many_many
- $casting
- $db
- $default_sort
-
$export_fields
Fields used for CSV Export - $has_many
- $many_many
- $many_many_extraFields
- $searchable_fields
- $summary_fields
Methods
public
- AbsoluteLink() — Return the absolute link to this product
- Breadcrumbs() — Return a breadcrumb trail for this product (which accounts for parent categories)
- HasMultipleImages() — Determin if the product has more than one image
- Link() — Return a URL to link to this product (via Catalog_Controller)
- SortedImages() — Return sorted images, if no images exist, create a new opbject set with a blank product image in it.
- canCreate()
- canDelete()
- canEdit()
- canView()
- generateURLSegment() — Generate a URL segment based on the title provided.
- getCMSFields()
- getCMSThumbnail()
- getCMSValidator()
- getCategoriesList()
- getFrontPrice() — Determine if we need to show the product price with or without tax, based on siteconfig
- getImagesList()
- getMenuTitle()
- getPriceWithTax() — The price for this product including the percentage cost of the tax (set in global config).
- getTax() — Get the amount of tax that the base price of this product produces as a decimal.
- onBeforeDelete()
- onBeforeWrite()
- validURLSegment() — Returns TRUE if this object has a URLSegment value that does not conflict with any other objects. This methods checks for: - A page with the same URLSegment that has a conflict.