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

tx_commerce_pi1 Class Reference

Inheritance diagram for tx_commerce_pi1:

tx_commerce_pibase List of all members.

Public Member Functions

 init ($conf)
 main ($content, $conf)
 initSingleView ($prodID)
 renderSingleView ($prodObj, $catObj, $subpartName, $subpartNameNostock)
 makeArticleView ($viewKind, $conf=array(), $prod, $templateMarkerArray= '', $template= '')

Public Attributes

 $prefixId = "tx_commerce_pi1"
 $scriptRelPath = "pi1/class.tx_commerce_pi1.php"
 $extKey = "commerce"
 $currency = 'EUR'
 $pi_checkCHash = TRUE

Detailed Description

tx_commerce includes


Member Function Documentation

tx_commerce_pi1::init conf  ) 
 

Inits the main params for using in the script

Parameters:
string $conf:Configuration
: Auf TS endern

define the currency Use of curency is depricated as it was only a typo :-)

Validate given showUid, it it's below cat

Validate given CAT UID, if is below master_cat

Wrong UID, so start with default UID

Only, if the category has been changed

Reimplemented from tx_commerce_pibase.

tx_commerce_pi1::initSingleView prodID  ) 
 

Init the singleView for one product

Parameters:
integer ProductID for single view
Returns:
void

tx_commerce_pi1::main content,
conf
 

Main function called by insert plugin

Parameters:
string content
string Configuration
Returns:
string HTML-Content

tx_commerce_pi1::makeArticleView viewKind,
conf = array(),
prod,
templateMarkerArray = '',
template = ''
 

Makes the rendering for all articles for an given product renders different view, based on viewKind and number of articless

clean up, make it more flexible

Parameters:
string $viewKind: Kind of view for choosing the right template
array $conf: TSconfig for handling the articles
object $prod: The parent product for returning articless
Returns:
string the content for a single product
Volker: Remove no_cache

tx_commerce_pi1::renderSingleView prodObj,
catObj,
subpartName,
subpartNameNostock
 

Renders the single view for the current products

Parameters:
object $prodObject: Product Object
object $catObject: CategoryObject
string $subpartrName: A name of a subpart
string $subpartNameNostock A name of a subpart dor showing id product with no stock
Returns:
string the content for a single product
Build the link to the category TODO make it possible to have more than one link, to each of the productCategories


Member Data Documentation

tx_commerce_pi1::$currency = 'EUR'
 

Reimplemented from tx_commerce_pibase.

tx_commerce_pi1::$extKey = "commerce"
 

Reimplemented from tx_commerce_pibase.

tx_commerce_pi1::$pi_checkCHash = TRUE
 

tx_commerce_pi1::$prefixId = "tx_commerce_pi1"
 

tx_commerce_pi1::$scriptRelPath = "pi1/class.tx_commerce_pi1.php"
 


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