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

tx_commerce_db_article Class Reference

Inheritance diagram for tx_commerce_db_article:

tx_commerce_db_alib List of all members.

Public Member Functions

 tx_commerce_db_article ()
 get_parent_product_uid ($uid)
 get_prices ($uid, $count=1, $orderField= 'price_net')
 getPriceScales ($uid, $count=1)
 getPrices ($uid)
 get_attributes ($uid)
 getAttributeValue ($uid, $attribute_uid, $valueListAsUid=false)
 getSupplierName ($supplieruid)

Public Attributes

 $database_attribute_rel_table = 'tx_commerce_articles_article_attributes_mm'

Constructor & Destructor Documentation

tx_commerce_db_article::tx_commerce_db_article  ) 
 

Setting the Class Datebase Table private


Member Function Documentation

tx_commerce_db_article::get_attributes uid  ) 
 

gets all attributes from this product

Parameters:
uid= Product uid
See also:
tx_commerce_db_alib.php
Returns:
array of attribute UID

tx_commerce_db_article::get_parent_product_uid uid  ) 
 

returns the paren Product uid

Parameters:
uid Article uid
Returns:
product uid
Backwards Compatibility

tx_commerce_db_article::get_prices uid,
count = 1,
orderField = 'price_net'
 

gets all prices form database related to this product

Parameters:
uid= Article uid
count = Number of Articles for price_scale_amount, default 1
Returns:
array of Price UID

tx_commerce_db_article::getAttributeValue uid,
attribute_uid,
valueListAsUid = false
 

Returns the attribute Value from the given Article attribute pair

Parameters:
uid Article UID
attribute_uid Attribute UID
valueListAsUid if true, returns not the value from the valuelist, instaed the uid
Returns:
value

tx_commerce_db_article::getPrices uid  ) 
 

Returns an array of all prices

Parameters:
uid= Article uid
Returns:
array of Price UID

tx_commerce_db_article::getPriceScales uid,
count = 1
 

Returns an array of all scale price amounts

Parameters:
uid= Article uid
Returns:
array of Price UID

tx_commerce_db_article::getSupplierName supplieruid  ) 
 

returns the supplier name to a given UID, selected from tx_commerce_supplier

Author:
ingo Schmitt <is@marketing-factory.de>
Parameters:
integer supplierUid
Returns:
string Supplier name


Member Data Documentation

tx_commerce_db_article::$database_attribute_rel_table = 'tx_commerce_articles_article_attributes_mm'
 

Reimplemented from tx_commerce_db_alib.


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