Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

tx_commerce_db_category Class Reference

Inheritance diagram for tx_commerce_db_category:

tx_commerce_db_alib List of all members.

Public Member Functions

 get_parent_category ($uid)
 get_parent_categories ($uid)
 get_child_categories ($uid)
 get_child_products ($uid, $lang_uid=-1)

Public Attributes

 $database_table = 'tx_commerce_categories'
 $mm_database_table = 'tx_commerce_categories_parent_category_mm'
 $database_attribute_rel_table = 'tx_commerce_categories_attributes_mm'
 $CategoryOrderField = 'tx_commerce_categories.sorting'
 $ProductOrderField = 'tx_commerce_products.sorting'

Member Function Documentation

tx_commerce_db_category::get_child_categories uid  ) 
 

Gets the child categories from this category

Parameters:
uid = Product UID
Returns:
array of child categories uid
: Sorting should be by database 'tx_commerce_categories_parent_category_mm.sorting' As TYPO3 issnt Curretly ablte to sort by MM tables (or we haven't found a way to use it) We are using $this->database_table.sorting

Todo:
access_check for datasets

tx_commerce_db_category::get_child_products uid,
lang_uid = -1
 

Gets child products categories from this category

Parameters:
uid = Product UID
lang_uid integer defauil -1 language uid
Returns:
array child products uid
Since:
20060712 Performance IMprovemnt top get rid the like queries

tx_commerce_db_category::get_parent_categories uid  ) 
 

Gets the parent categories from this category

Parameters:
uid = Product UID
Returns:
array of parent categories uid
Todo:
access_check for datasets

tx_commerce_db_category::get_parent_category uid  ) 
 

Gets the "master" category from this category

Parameters:
uid = Category UID
Returns:
integer Category UID


Member Data Documentation

tx_commerce_db_category::$CategoryOrderField = 'tx_commerce_categories.sorting'
 

tx_commerce_db_category::$database_attribute_rel_table = 'tx_commerce_categories_attributes_mm'
 

Reimplemented from tx_commerce_db_alib.

tx_commerce_db_category::$database_table = 'tx_commerce_categories'
 

Reimplemented from tx_commerce_db_alib.

tx_commerce_db_category::$mm_database_table = 'tx_commerce_categories_parent_category_mm'
 

tx_commerce_db_category::$ProductOrderField = 'tx_commerce_products.sorting'
 


The documentation for this class was generated from the following file:
Generated on Sun Jan 13 23:12:20 2008 for tx_commerce by  doxygen 1.4.4