OXID eShop CE  4.9.5
 All Classes Files Functions Variables Pages
oxcmp_utils Class Reference
+ Inheritance diagram for oxcmp_utils:
+ Collaboration diagram for oxcmp_utils:

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 ()
- Public Member Functions inherited from oxView
 init ()
 setViewParameters ($aParams=null)
 getViewParameter ($sKey)
 setIsCallForCache ($blIsCallForCache=null)
 getIsCallForCache ()
 getViewId ()
 addGlobalParams ($oShop=null)
 addTplParam ($sPara, $sValue)
 getBelboonParam ()
 getViewConfig ()
 getTemplateName ()
 setTemplateName ($sTemplate)
 setClassName ($sClassName)
 getClassName ()
 setFncName ($sFncName)
 getFncName ()
 setViewData ($aViewData=null)
 getViewData ()
 getViewDataElement ($sParamId=null)
 setClassLocation ($sClassLocation=null)
 getClassLocation ()
 setThisAction ($sThisAction=null)
 getThisAction ()
 setParent ($oParent=null)
 getParent ()
 setIsComponent ($blIsComponent=null)
 getIsComponent ()
 getAdditionalParams ()
 getTrustedShopId ()
 getTSExcellenceId ()
 getCharSet ()
 getShopVersion ()
 getShopEdition ()
 getRevision ()
 getPackageInfo ()
 getShopFullEdition ()
 isDemoVersion ()
 isBetaVersion ()
 isRCVersion ()
 showBetaNote ()
 isDemoShop ()
 showNewsletter ()
 setShowNewsletter ($blShow)
 getShopLogo ()
 setShopLogo ($sLogo)
 getActCategory ()
 setActCategory ($oCategory)
 getCategoryId ()
 setCategoryId ($sCategoryId)
 getErrorDestination ()
 getActionClassName ()
 isConnectedWithFb ()
 getFbUserId ()
 showFbConnectToAccountMsg ()
 isMall ()
 showRdfa ()
 getSidForWidget ()
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 __construct ()
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _toList ($sListType, $sProductId, $dAmount, $aSel)
- Protected Member Functions inherited from oxView
 _executeNewAction ($sNewAction)

Protected Attributes

 $_blIsComponent = true
- Protected Attributes inherited from oxView
 $_aViewData = array()
 $_sClassLocation = null
 $_sThisAction = null
 $_oParent = null
 $_blIsComponent = false
 $_sThisTemplate = null
 $_sViewId = null
 $_sClass = null
 $_sFnc = null
 $_sTrustedShopId = null
 $_sTSExcellenceId = null
 $_sCharSet = null
 $_sVersion = null
 $_blDemoVersion = null
 $_blDemoShop = null
 $_iNewsStatus = null
 $_sShopLogo = null
 $_sCategoryId = null
 $_oClickCat = null
 $_blIsCallForCache = false
 $_oViewConf = null

Additional Inherited Members

- Static Protected Attributes inherited from oxView
static $_blExecuted = false

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$sListTypeuser product list type
string$sProductIdproduct id
double$dAmountproduct amount
array$aSelproduct 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$sProductIdproduct id
double$dAmountamount
array$aSel(default null)
bool$blOverrideallow override
bool$blBundlebundled
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$sProductIdProduct/article ID (default null)
double$dAmountamount of good (default null)
array$aSelproduct 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$sProductIdProduct/article ID (default null)
double$dAmountamount of good (default null)
array$aSelproduct selection list (default null)
Returns
false

Definition at line 181 of file oxcmp_utils.php.

Member Data Documentation

oxcmp_utils::$_blIsComponent = true
protected

Definition at line 18 of file oxcmp_utils.php.


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