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

tx_commerce_category Class Reference

Inheritance diagram for tx_commerce_category:

tx_commerce_element_alib List of all members.

Public Member Functions

 tx_commerce_category ()
 init ($uid, $lang_uid=0)
 get_title ()
 getTitle ()
 get_subtitle ()
 get_description ()
 get_navtitle ()
 get_keywords ()
 get_subcategories ()
 get_subproducts ()
 getImages ()
 has_subcategories ()
 has_subproducts ()
 load_data ()
 get_child_categories ()
 numOfChildCategories ()
 get_child_products ()
 getProductUids ()
 getCategoryUids ()
 get_parent_category ()
 get_category_path ($separator=',')
 get_rec_child_categories_uidlist ($depth=false)
 getAllProducts ($depth=false)
 get_categorie_rootline_uidlist ()
 getTeaserImage ()
 getCategoryTSconfig ()
 get_images ()

Public Attributes

 $title = ''
 $subtitle = ''
 $description = ''
 $images = array()
 $images_array = array()
 $navtitle = ''
 $keywords = ''
 $categories_uid = array()
 $parent_category_uid = ''
 $parent_category = ''
 $products_uid = array()
 $categories = array()
 $products = array()
 $data_loaded = false

Constructor & Destructor Documentation

tx_commerce_category::tx_commerce_category  ) 
 

Constructor, basically calls init

Parameters:
integer uid of category
integer integer language_uid , default 0


Member Function Documentation

tx_commerce_category::get_categorie_rootline_uidlist  ) 
 

gets all catogores ID's above this uid

Since:
12 November 2005 added array_unique to result set
Returns:
array list of category uids

tx_commerce_category::get_category_path separator = ','  ) 
 

returns recursvly the category path as text path segments are glued with $separator

Parameters:
[optional] string $separator default '-'
Returns:
category path segment
Since:
2005 November 18th

tx_commerce_category::get_child_categories  ) 
 

Loads the child categories in the categories array

Returns:
array of categories as array of category objects

tx_commerce_category::get_child_products  ) 
 

Loads the child products in the products array

Returns:
array of products asarray of products objects

tx_commerce_category::get_description  ) 
 

Returns the category description

Returns:
string; public

tx_commerce_category::get_images  ) 
 

Returns an Array of Images

Returns:
array; public

tx_commerce_category::get_keywords  ) 
 

Returns the category keywords

Returns:
string; public

tx_commerce_category::get_navtitle  ) 
 

Returns the category navtitle

Returns:
string; public

tx_commerce_category::get_parent_category  ) 
 

Loads the parent categoriy in the parenT-category variable

Returns:
cateory object or false if this category is already the topmost category

tx_commerce_category::get_rec_child_categories_uidlist depth = false  ) 
 

Returns a list of all child categories from thos categorie

Parameters:
deepth maximum deepth for going recursive
Returns:
array list of category uids

tx_commerce_category::get_subcategories  ) 
 

Returns Subcategories from the existiong categories

Returns:
array public

tx_commerce_category::get_subproducts  ) 
 

Returns subproducts from the existing categories

Returns:
array public

tx_commerce_category::get_subtitle  ) 
 

Returns the category subtitle

Returns:
string; public

tx_commerce_category::get_title  ) 
 

Returns the category title

Returns:
string; public
See also:
getTitle()

tx_commerce_category::getAllProducts depth = false  ) 
 

Since:
2005 11 02 Returns a list of all Products unter this categores

12 November 2005 added array_unique to result set

Parameters:
deepth maximum deepth for going recursive
Returns:
array list of product uids
Since:
18th November 2005 Check if deepth is gerater than 0

tx_commerce_category::getCategoryTSconfig  ) 
 

Returns the category TSconfig array based on the currect ->rootLine

Returns:
array

tx_commerce_category::getCategoryUids  ) 
 

Since:
2005 11 03
Returns:
array of child category as uid list array

tx_commerce_category::getImages  ) 
 

Returns an Array of Images

Returns:
array; public

tx_commerce_category::getProductUids  ) 
 

Since:
2005 11 03
Returns:
array of child products as uid list array

tx_commerce_category::getTeaserImage  ) 
 

getTeaserImage returns the first image, if not availiabe, walk recusrive up, to get the image If no IMage found, return false

Returns:
string image

tx_commerce_category::getTitle  ) 
 

Returns the category title

Returns:
string; public

tx_commerce_category::has_subcategories  ) 
 

true if the actual categorie has subcategories

Returns:
boolean public

tx_commerce_category::has_subproducts  ) 
 

true if the actual categorie has subcategories

Returns:
boolean public

tx_commerce_category::init uid,
lang_uid = 0
 

Constructor

Parameters:
integer uid of category
integer integer language_uid , default 0

tx_commerce_category::load_data  ) 
 

Load the data

Reimplemented from tx_commerce_element_alib.

tx_commerce_category::numOfChildCategories  ) 
 

returns the number of child categories

Author:
Ingo Schmitt <is@marketing-factory.de>
Returns:
integer Number of child categories


Member Data Documentation

tx_commerce_category::$categories = array()
 

tx_commerce_category::$categories_uid = array()
 

tx_commerce_category::$data_loaded = false
 

tx_commerce_category::$description = ''
 

tx_commerce_category::$images = array()
 

tx_commerce_category::$images_array = array()
 

tx_commerce_category::$keywords = ''
 

tx_commerce_category::$navtitle = ''
 

tx_commerce_category::$parent_category = ''
 

tx_commerce_category::$parent_category_uid = ''
 

tx_commerce_category::$products = array()
 

tx_commerce_category::$products_uid = array()
 

tx_commerce_category::$subtitle = ''
 

tx_commerce_category::$title = ''
 


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