OXID eShop CE  4.8.11
 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 ()
 executeFunction ($sFunction)
 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 9 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
Returns
null

Definition at line 194 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 27 of file oxcmp_utils.php.

oxcmp_utils::render ( )

Set view data, call parent::render

Returns
null

Reimplemented from oxView.

Definition at line 223 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
void

Definition at line 94 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 153 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 172 of file oxcmp_utils.php.

Member Data Documentation

oxcmp_utils::$_blIsComponent = true
protected

Definition at line 15 of file oxcmp_utils.php.


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