Public Member Functions | Protected Member Functions | Protected Attributes

oxcmp_utils Class Reference

Inheritance diagram for oxcmp_utils:
Collaboration diagram for oxcmp_utils:

List of all members.

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 Member Functions

 _toList ($sListType, $sProductId, $dAmount, $aSel)

Protected Attributes

 $_blIsComponent = true

Detailed Description

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

oxcmp

Definition at line 10 of file oxcmp_utils.php.


Member Function Documentation

oxcmp_utils._toList ( sListType,
sProductId,
dAmount,
aSel 
) [protected]

Adds chosen product to defined user list. if amount is 0, item is removed from the list

Parameters:
string $sListType user product list type
string $sProductId product id
double $dAmount product amount
array $aSel product selection list

Definition at line 201 of file oxcmp_utils.php.

oxcmp_utils.getArticle (  ) 

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

Deprecated:
since v5.1 (2013-09-25); not used anywhere
Returns:
null

Definition at line 30 of file oxcmp_utils.php.

oxcmp_utils.render (  ) 

Set view data, call parent.render

Returns:
null

Reimplemented from oxView.

Definition at line 230 of file oxcmp_utils.php.

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:
null

Definition at line 99 of file oxcmp_utils.php.

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 product selection list (default null)
Returns:
bool

Definition at line 162 of file oxcmp_utils.php.

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 product selection list (default null)
Returns:
false

Definition at line 181 of file oxcmp_utils.php.


Member Data Documentation

oxcmp_utils.$_blIsComponent = true [protected]

Reimplemented from oxView.

Definition at line 18 of file oxcmp_utils.php.


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