oxcmp_utils Class Reference

Inheritance diagram for oxcmp_utils:

Inheritance graph
[legend]
Collaboration diagram for oxcmp_utils:

Collaboration graph
[legend]

List of all members.


Detailed Description

Transparent shop utilities class. Some specific utilities, such as fetching article info, etc. (Class may be used for overriding). oxcmp

Public Member Functions

 getArticle ()
 toCompareList ($sProductId=null, $dAmount=null, $aSel=null, $blOverride=false, $blBundle=false)
 toNoticeList ($sProductId=null, $dAmount=null, $aSel=null)
 toWishList ($sProductId=null, $dAmount=null, $aSel=null)
 render ()

Protected Attributes

 $_blIsComponent = true

Member Function Documentation

oxcmp_utils.getArticle (  ) 

If passed article ID (by URL or posted form) - loads article, otherwise - loads list of action articles oxarticlelist.loadAktionArticles(). In this case, the last list object will be used. Loaded article info is serialized and outputted to client system.

Returns:
null

oxcmp_utils.toCompareList ( sProductId = null,
dAmount = null,
aSel = null,
blOverride = false,
blBundle = false 
)

Adds/removes chosen article to/from article comparison list

Parameters:
object $sProductId product id
double $dAmount amount
array $aSel (default null)
bool $blOverride allow override
bool $blBundle bundled
Returns:
void

oxcmp_utils.toNoticeList ( sProductId = null,
dAmount = null,
aSel = null 
)

If session user is set loads user noticelist (oxuser.GetBasket()) and adds article to it.

Parameters:
string $sProductId Product/article ID (default null)
double $dAmount amount of good (default null)
array $aSel (default null)
Returns:
bool

oxcmp_utils.toWishList ( sProductId = null,
dAmount = null,
aSel = null 
)

If session user is set loads user wishlist (oxuser.GetBasket()) and adds article to it.

Parameters:
string $sProductId Product/article ID (default null)
double $dAmount amount of good (default null)
array $aSel (default null)
Returns:
false

oxcmp_utils.render (  ) 

Set viewdata, call parent.render

Returns:
null

Reimplemented from oxView.


Member Data Documentation

oxcmp_utils.$_blIsComponent = true [protected]

Reimplemented from oxView.


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

Generated on Wed Oct 29 23:43:44 2008 for OXID eShop CE by  doxygen 1.5.5