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

tx_commerce_pi2 Class Reference

Inheritance diagram for tx_commerce_pi2:

tx_commerce_pibase List of all members.

Public Member Functions

 init ($conf)
 main ($content, $conf)
 handleBasket ()
 getQuickView ()
 generateBasket ()
 makeDelivery ($basketArray)
 makePayment ($basketArray)
 makeCheckOutLink ()
 makeProductListOld ()
 makeArticleView (&$art, $prod='')
 makeProductList ()

Public Attributes

 $prefixId = "tx_commerce_pi1"
 $scriptRelPath = "pi2/class.tx_commerce_pi2.php"
 $extKey = "commerce"
 $imgFolder = "uploads/tx_commerce/"
 $currency = ''
 $noStock = ''

Detailed Description

tx_commerce includes


Member Function Documentation

tx_commerce_pi2::generateBasket  ) 
 

Genarates the HTML-Code for the Basket and stores the content to $this->content

Returns:
void
Render Locked information

Todo:
Create hook

tx_commerce_pi2::getQuickView  ) 
 

Returns a list or Marker for genearting a quick-view of the basket

Returns:
array Marker Array for Rendering Complete Coding
##ITEMS### is depricated

tx_commerce_pi2::handleBasket  ) 
 

Main method for handeling the Basket, is called when data in the basket is changed Changes the basket object and stores the data in the frontend user session

Hooks um $this erweitern

Add per defaul the article

Hook for processing the basker, after adding an article to the basket

Hook for processing the basker,after adding the payment

Hook for processing the basker,after adding the delivery Article

tx_commerce_pi2::init conf  ) 
 

Standard Init Method for all pi plugins fro tx_commerce

Parameters:
array $conf
Use of curency is depricated as it was only a typo :-)

Reimplemented from tx_commerce_pibase.

tx_commerce_pi2::main content,
conf
 

Main function called by insert plugin

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

tx_commerce_pi2::makeArticleView &$  art,
prod = ''
 

Genrates the Basket Forms per line

Parameters:
object $art: Article Object
object $prod: Product Object
Returns:
string HTML-Content
Since:
added $prod for gettingSelectAttributes for Article
Bild Link to delete of this article in basket

tx_commerce_pi2::makeCheckOutLink  ) 
 

returns a Link to the checkoutPage

Returns:
string Link to Checkoutpage

tx_commerce_pi2::makeDelivery basketArray  ) 
 

Generates the Markers for the delivery-selector

Parameters:
Array $basketArray Arrayof Marker
Returns:
Array Marker of Array

tx_commerce_pi2::makePayment basketArray  ) 
 

Genares the payment drop down list for this shop

Parameters:
Array $basketArray: Array of Template marker
Returns:
Array Array of Template Marker
Check if a Payment is selected if not, add standard payment

tx_commerce_pi2::makeProductList  ) 
 

Renders the product list for the baske

Returns:
string HTML Content

tx_commerce_pi2::makeProductListOld  ) 
 

Generates a ProductList for the basket

Returns:
string HTML-Content
Todo:
move to foreach Replaced with new function down

Todo:
diese Ersetzung ist verknüpft mit oben (marek ARtcileview) Name ist zweimal definiertr, sollte schöner werden


Member Data Documentation

tx_commerce_pi2::$currency = ''
 

Reimplemented from tx_commerce_pibase.

tx_commerce_pi2::$extKey = "commerce"
 

Reimplemented from tx_commerce_pibase.

tx_commerce_pi2::$imgFolder = "uploads/tx_commerce/"
 

Reimplemented from tx_commerce_pibase.

tx_commerce_pi2::$noStock = ''
 

tx_commerce_pi2::$prefixId = "tx_commerce_pi1"
 

tx_commerce_pi2::$scriptRelPath = "pi2/class.tx_commerce_pi2.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