\ProductCategory
Synopsis
class ProductCategory
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $many_many_extraFields = ;
- private static array $extensions = ;
- private static array $summary_fields = ;
- private static array $casting = ;
- private static string $default_sort = "\"Sort\" ASC";
- // methods
- public string Link()
- public void AbsoluteLink()
- public void getMenuTitle()
- public bool isCurrent()
- public bool isSection()
- public string LinkingMode()
- public string LinkOrSection()
- public string Breadcrumbs()
- public void Level()
- public ArrayList SortedProducts()
- public ArrayList AllProducts()
- public void getCMSFields()
- public void onBeforeWrite()
- public void onBeforeDelete()
- public void canView()
- public void canCreate()
- public void canEdit()
- public void canDelete()
Hierarchy
Extends
- DataObject
Members
private
- $casting
- $db
- $default_sort
- $extensions
- $has_one
- $many_many
- $many_many_extraFields
- $summary_fields
Methods
public
- AbsoluteLink() — Return the absolute link to this category
- AllProducts() — Get a list of all products from this category and it's children categories.
- Breadcrumbs() — Return a breadcrumb trail for this product (which accounts for parent categories)
- Level() — Returns the category in the current stack of the given level.
- Link() — Return a URL to link to this catagory (via Catalog_Controller)
- LinkOrSection() — Return "link" or "section" depending on if this is the current section.
- LinkingMode() — Return "link", "current" or section depending on if this page is the current page, or not on the current page but in the current section.
- SortedProducts() — Return sorted images, if no images exist, create a new opbject set with a blank product image in it.
- canCreate()
- canDelete()
- canEdit()
- canView()
- getCMSFields()
- getMenuTitle()
- isCurrent() — Returns TRUE if this is the currently active category that is being used to handle a request.
- isSection() — Check if this category is in the currently active section (e.g. it is either current or one of it's children or products is currently being viewed).
- onBeforeDelete()
- onBeforeWrite()