Compare Class Reference

Inheritance diagram for Compare:
[legend]
Collaboration diagram for Compare:
[legend]

List of all members.


Detailed Description

Comparing Products. Takes a few products and show attribute values to compare them.

Definition at line 7 of file compare.php.


Public Member Functions

 render ()
 moveLeft ()
 moveRight ()
 inPopup ()
 getCompareItemsCnt ()
 getCompareItems ()
 setCompareItems ($aItems)
 getCompArtList ()
 getAttributeList ()
 getSimilarRecommLists ()
 getPageNavigation ()
 getOrderCnt ()

Protected Member Functions

 _removeArticlesFromPage ($aItems, $oList)
 _changeArtListOrder ($aItems, $oList)

Protected Attributes

 $_iCntPages = null
 $_iOrderCnt = null
 $_iArticlesPerPage = 3
 $_iCompItemsCnt = null
 $_aCompItems = null
 $_oArtList = null
 $_oAttributeList = null
 $_oRecommList = null
 $_oPageNavigation = null
 $_sThisTemplate = 'compare.tpl'

Member Function Documentation

Compare.render (  ) 

Executes parent.render(). If filtering module is available loads comparable product list. Returns name of template to render compare._sThisTemplate

Template variables: articlelist, allartattr, pageNavigation, pgNr

Returns:
string $this->_sThisTemplate current template file name

Reimplemented from oxUBase.

Definition at line 79 of file compare.php.

Compare.moveLeft (  ) 

moves current article to the left in compare items array

Returns:
null

Definition at line 115 of file compare.php.

Compare.moveRight (  ) 

moves current article to the right in compare items array

Returns:
null

Definition at line 154 of file compare.php.

Compare.inPopup (  ) 

changes default template for compare in popup

Returns:
null

Definition at line 193 of file compare.php.

Compare.getCompareItemsCnt (  ) 

Template variable getter. Returns article list count in comparison

Returns:
integer

Reimplemented from oxView.

Definition at line 204 of file compare.php.

Compare.getCompareItems (  ) 

Compare item $_aCompItems getter

Returns:
null

Definition at line 220 of file compare.php.

Compare.setCompareItems ( aItems  ) 

Compare item $_aCompItems setter

Parameters:
$aItems array compare items i new order
Returns:
null

Definition at line 238 of file compare.php.

Compare.getCompArtList (  ) 

Template variable getter. Returns comparison's article list in order per page

Returns:
object

Definition at line 250 of file compare.php.

Compare.getAttributeList (  ) 

Template variable getter. Returns attribute list

Returns:
object

Definition at line 274 of file compare.php.

Compare.getSimilarRecommLists (  ) 

Template variable getter. Returns recommendation list

Returns:
object

Reimplemented from oxView.

Definition at line 291 of file compare.php.

Compare.getPageNavigation (  ) 

Template variable getter. Returns page navigation

Returns:
object

Definition at line 308 of file compare.php.

Compare._removeArticlesFromPage ( aItems,
oList 
) [protected]

Cuts page articles

Parameters:
array $aItems article array
object $oList article list array
Returns:
array $aNewItems

Definition at line 325 of file compare.php.

Compare._changeArtListOrder ( aItems,
oList 
) [protected]

Changes order of list elements

Parameters:
array $aItems article array
object $oList article list array
Returns:
array $oNewList

Definition at line 351 of file compare.php.

Compare.getOrderCnt (  ) 

changes default template for compare in popup

Returns:
null

Definition at line 383 of file compare.php.


Member Data Documentation

Compare.$_iCntPages = null [protected]

Definition at line 13 of file compare.php.

Compare.$_iOrderCnt = null [protected]

Definition at line 19 of file compare.php.

Compare.$_iArticlesPerPage = 3 [protected]

Definition at line 25 of file compare.php.

Compare.$_iCompItemsCnt = null [protected]

Reimplemented from oxView.

Definition at line 31 of file compare.php.

Compare.$_aCompItems = null [protected]

Definition at line 37 of file compare.php.

Compare.$_oArtList = null [protected]

Definition at line 43 of file compare.php.

Compare.$_oAttributeList = null [protected]

Definition at line 49 of file compare.php.

Compare.$_oRecommList = null [protected]

Definition at line 55 of file compare.php.

Compare.$_oPageNavigation = null [protected]

Definition at line 61 of file compare.php.

Compare.$_sThisTemplate = 'compare.tpl' [protected]

Reimplemented from oxView.

Definition at line 67 of file compare.php.


The documentation for this class was generated from the following file:

Generated on Fri Dec 19 14:20:40 2008 for OXID eShop CE by  doxygen 1.5.5