swipestripe
[ class tree: swipestripe ] [ index: swipestripe ] [ all elements ]

Class: ProductCategory

Source Location: /code/product/ProductCategory.php

Class Overview

Page
   |
   --ProductCategory

Represents a Product category, Products can be added to many categories and they can have a ProductCategory as a parent in the site tree.


Author(s):

Version:

  • 1.0

Copyright:

  • Copyright (c) 2011, Frank Mullenger

Variables

Methods



Class Details

[line 12]
Represents a Product category, Products can be added to many categories and they can have a ProductCategory as a parent in the site tree.



Tags:

author:  Frank Mullenger <frankmullenger@gmail.com>
version:  1.0
copyright:  Copyright (c) 2011, Frank Mullenger


[ Top ]


Class Variables

static $many_many = array(
    'Products' => 'Product'
  )

[line 19]

Many many relations for a ProductCategory



Tags:

access:  public

Type:   Array


[ Top ]

static $summary_fields = array(
     'Title' => 'Name',
    'MenuTitle' => 'Menu Title'
   )

[line 28]

Summary fields for viewing categories in the CMS



Tags:

access:  public

Type:   Array


[ Top ]



Class Methods


method getCMSFields [line 40]

FieldSet getCMSFields( )

Can add products to the category straight from the ProductCategory page TODO remove this, its not useful. And change the direction of the many_many relation so that patched version of CTF not needed



[ Top ]


Documentation generated on Thu, 08 Mar 2012 16:47:28 +1300 by phpDocumentor 1.4.4