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

tx_commerce_product Class Reference

Inheritance diagram for tx_commerce_product:

tx_commerce_element_alib List of all members.

Public Member Functions

 tx_commerce_product ()
 init ($uid, $lang_uid=0)
 get_title ()
 getRelatedPage ()
 get_subtitle ()
 get_description ()
 get_teaser ()
 getImages ()
 getTeaserImages ()
 getArticleUids ()
 getArticles ()
 getArticleObjects ()
 getNumberOfArticles ()
 load_articles ()
 load_data ()
 getMasterparentCategorie ()
 get_parent_categories ()
 get_Articles_by_AttributeArray ($attribute_Array, $proofUid=1)
 get_Articles_by_Attribute ($attributeUid, $attributeValue)
 get_attribute_matrix ($articleList=false, $attribute_include=false, $showHiddenValues=true, $sortingTable= 'tx_commerce_articles_article_attributes_mm')
 get_selectattribute_matrix ($articleList=false, $attribute_include=false, $showHiddenValues=true, $sortingTable= 'tx_commerce_articles_article_attributes_mm')
 get_product_attribute_matrix ($attribute_include=false, $showHiddenValues=true, $sortingTable= 'tx_commerce_products_attributes_mm')
 getArticlesByPrice ($priceMin=0, $priceMax=0, $usePriceGrossInstead=0, $proofUid=1)
 getCheapestArticle ($usePriceNet=0)
 getManufacturerUid ()
 getManufacturerTitle ()
 hasStock ()
 get_images ()
 get_masterparent_categorie ()
 set_leng_description ($leng=150)
 get_atrribute_matrix ($articleList=false, $attribute_include=false, $showHiddenValues=true, $sortingTable= 'tx_commerce_articles_article_attributes_mm')
 get_product_atrribute_matrix ($attribute_include=false, $showHiddenValues=true, $sortingTable= 'tx_commerce_products_attributes_mm')

Public Attributes

 $title = ''
 $subtitle = ''
 $description = ''
 $teaser = ''
 $images = ''
 $images_array = array()
 $teaserImages = ''
 $teaserImagesArray = array()
 $articles = array()
 $articles_uids = array()
 $attributes = array()
 $attributes_uids = array()
 $articles_loaded = false

Constructor & Destructor Documentation

tx_commerce_product::tx_commerce_product  ) 
 

basically calls init

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


Member Function Documentation

tx_commerce_product::get_Articles_by_Attribute attributeUid,
attributeValue
 

returns the list or articles from this product filtered by given AttributeUID and Attribute Value

Parameters:
attribute_UID 
attribute_value 
Returns:
array of article uids handling of valuelists

tx_commerce_product::get_Articles_by_AttributeArray attribute_Array,
proofUid = 1
 

Returns list of articles from this product filtered by given attribute UID and Attribute Value

Parameters:
param_array array (array('AttributeUid'=>$attributreUID, 'AttributeValue'=>$attributeValue), array('AttributeUid'=>$attributreUID, 'AttributeValue'=>$attributeValue),...)
proof if script is running without instance and so without a single product
Returns:
array of article uids
Todo:
Move DB connector to db_product

tx_commerce_product::get_atrribute_matrix articleList = false,
attribute_include = false,
showHiddenValues = true,
sortingTable = 'tx_commerce_articles_article_attributes_mm'
 

returns the attribut matrix

See also:
: get_attribute_matrix()

tx_commerce_product::get_attribute_matrix articleList = false,
attribute_include = false,
showHiddenValues = true,
sortingTable = 'tx_commerce_articles_article_attributes_mm'
 

Generates a Matrix fro these concerning artciles for all Attributes and the values therfor Realy complex array, so have a lokk at the source

Parameters:
$articleList [optional]
$attribute Exclude List array (list auf attriubute uids to exclkude)
$showHiddenValues default true (if hidden values should be shown)
Returns:
array of arrays
Todo:
split DB connects to db_class
Since:
2005 11 02 $showHiddenValues

2005 11 02 Array of arrays also contains valueformat

2005 11 02 Array of arrays also contains internal_title

if no list is given, take complate arctile-list from product

Do the language overlay

No Translation possible, so next interation

get the different possible values form value_char an value

Since:
13.12.2005 Get the lokalized values from tx_commerce_articles_article_attributes_mm
Author:
Ingo Schmitt <is@marketing-factory.de>
Do the lokalization

Do the lokalization

tx_commerce_product::get_description  ) 
 

Returns the product description

Returns:
string; public

tx_commerce_product::get_images  ) 
 

Returns an Array of Images

Returns:
array; public

tx_commerce_product::get_masterparent_categorie  ) 
 

gets the category master parent

Returns:
uid of category

tx_commerce_product::get_parent_categories  ) 
 

gets all parent categories

Returns:
array of uid of category

tx_commerce_product::get_product_atrribute_matrix attribute_include = false,
showHiddenValues = true,
sortingTable = 'tx_commerce_products_attributes_mm'
 

Generates a Matrix fro these concerning products for all Attributes and the values therfor Realy complex array, so have a lokk at the source

Parameters:
$attribute Exclude List array (list auf attriubute uids to exclkude)
$showHiddenValues default true (if hidden values should be shown)
Returns:
array of arrays
Todo:
split DB connects to db_class
Since:
2005 11 02 $showHiddenValues

2005 11 02 Array of arrays also contains valueformat

2005 11 02 Array of arrays also contains internal_title

tx_commerce_product::get_product_attribute_matrix attribute_include = false,
showHiddenValues = true,
sortingTable = 'tx_commerce_products_attributes_mm'
 

Generates a Matrix fro these concerning products for all Attributes and the values therfor Realy complex array, so have a lokk at the source

Parameters:
$attribute Exclude List array (list auf attriubute uids to exclkude)
$showHiddenValues default true (if hidden values should be shown)
Returns:
array of arrays
Todo:
split DB connects to db_class
Since:
2005 11 02 $showHiddenValues

2005 11 02 Array of arrays also contains valueformat

2005 11 02 Array of arrays also contains internal_title

if no list is given, take complate arctile-list from product

Do the language overlay

No Translation possible, so next interation

get the different possible values form value_char an value

Since:
13.12.2005 Get the lokalized values from tx_commerce_products_attributes_mm
Author:
Ingo Schmitt <is@marketing-factory.de>
Do the lokalization

tx_commerce_product::get_selectattribute_matrix articleList = false,
attribute_include = false,
showHiddenValues = true,
sortingTable = 'tx_commerce_articles_article_attributes_mm'
 

Generates a Matrix fro these concerning artciles for all Attributes and the values therfor Realy complex array, so have a lokk at the source

Parameters:
$articleList [optional]
$attribute Exclude List array (list auf attriubute uids to exclkude)
$showHiddenValues default true (if hidden values should be shown)
Returns:
array of arrays
Todo:
split DB connects to db_class
Since:
2005 11 02 $showHiddenValues

2005 11 02 Array of arrays also contains valueformat

2005 11 02 Array of arrays also contains internal_title

if no list is given, take complate arctile-list from product

Do the language overlay

No Translation possible, so next interation

only get select attributs, since we don't need any other in selectattribut Matrix and we need the arrayKeys in this case

Since:
13.12.2005 Get the lokalized values from tx_commerce_articles_article_attributes_mm
Author:
Ingo Schmitt <is@marketing-factory.de>

tx_commerce_product::get_subtitle  ) 
 

Returns the product subtitle

Returns:
string; public

tx_commerce_product::get_teaser  ) 
 

Returns the product teaser

Returns:
string; public

tx_commerce_product::get_title  ) 
 

Returns the product title

Returns:
string; public

tx_commerce_product::getArticleObjects  ) 
 

Returns the list of articles

Returns:
array of article Objects

tx_commerce_product::getArticles  ) 
 

Depricated, please use getArticleUids()

See also:
tx_comemrce_product::getARticleUids();

tx_commerce_product::getArticlesByPrice priceMin = 0,
priceMax = 0,
usePriceGrossInstead = 0,
proofUid = 1
 

Returns list of articles (from this product) filtered by price

Author:
Franz Ripfel
Parameters:
priceMin long in smallest unit (e.g. cents)
priceMax long in smallest unit (e.g. cents)
usePriceNetInstead boolean normally we check for net price, switch to gross price
proof if script is running without instance and so without a single product
Returns:
array of article uids
Todo:
Move DB connector to db_product

tx_commerce_product::getArticleUids  ) 
 

Returns the list of articles

Returns:
array of article UIDS

tx_commerce_product::getCheapestArticle usePriceNet = 0  ) 
 

evaluates the cheapest article for current product by gross price

Author:
Franz Ripfel
Parameters:
$usePriceNet compare prices by net instead of gross
Returns:
article id, false if no article

tx_commerce_product::getImages  ) 
 

Returns an Array of Images

Returns:
array; public

tx_commerce_product::getManufacturerTitle  ) 
 

Returns the manufacturere Title

Returns:
string Title of manufacturer

tx_commerce_product::getManufacturerUid  ) 
 

Returns the Manufacturer UID of the Product if set

Author:
Joerg Sprung <jsp@marketing-factory.de>
Returns:
integer UID of Manufacturer

tx_commerce_product::getMasterparentCategorie  ) 
 

gets the category master parent

Returns:
uid of category

tx_commerce_product::getNumberOfArticles  ) 
 

Returns the number of artiles for this Product

Returns:
integer Number of articles

tx_commerce_product::getRelatedPage  ) 
 

Returns the related page for the product

Returns:
int; public

tx_commerce_product::getTeaserImages  ) 
 

Returns an Array of Images

Returns:
array; public

tx_commerce_product::hasStock  ) 
 

Returns true if one Article of Product have more than null articles on stock

Returns:
boolean result of check

tx_commerce_product::init uid,
lang_uid = 0
 

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

tx_commerce_product::load_articles  ) 
 

Gets the article_list of this product and stores in private variable

Since:
28.08.2005 Check Class valiable article_loaded for more performace
Returns:
array of uid's

tx_commerce_product::load_data  ) 
 

Loads the data and divides comma sparated images in array inherited from parent

Reimplemented from tx_commerce_element_alib.

tx_commerce_product::set_leng_description leng = 150  ) 
 

sets a short description

Parameters:
$leng 


Member Data Documentation

tx_commerce_product::$articles = array()
 

tx_commerce_product::$articles_loaded = false
 

tx_commerce_product::$articles_uids = array()
 

tx_commerce_product::$attributes = array()
 

tx_commerce_product::$attributes_uids = array()
 

Reimplemented from tx_commerce_element_alib.

tx_commerce_product::$description = ''
 

tx_commerce_product::$images = ''
 

tx_commerce_product::$images_array = array()
 

tx_commerce_product::$subtitle = ''
 

tx_commerce_product::$teaser = ''
 

tx_commerce_product::$teaserImages = ''
 

tx_commerce_product::$teaserImagesArray = array()
 

tx_commerce_product::$title = ''
 


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