OXID eShop CE  4.10.3
 All Classes Namespaces Files Functions Variables Pages
oxUtilsCount Class Reference
+ Inheritance diagram for oxUtilsCount:
+ Collaboration diagram for oxUtilsCount:

Public Member Functions

 getCatArticleCount ($sCatId)
 getPriceCatArticleCount ($sCatId, $dPriceFrom, $dPriceTo)
 getVendorArticleCount ($sVendorId)
 getManufacturerArticleCount ($sManufacturerId)
 setCatArticleCount ($aCache, $sCatId, $sActIdent)
 setPriceCatArticleCount ($aCache, $sCatId, $sActIdent, $dPriceFrom, $dPriceTo)
 setVendorArticleCount ($aCache, $sCatId, $sActIdent)
 setManufacturerArticleCount ($aCache, $sMnfId, $sActIdent)
 resetCatArticleCount ($sCatId=null)
 resetPriceCatArticleCount ($iPrice)
 getTagArticleCount ($sTag, $iLang)
 resetVendorArticleCount ($sVendorId=null)
 resetManufacturerArticleCount ($sManufacturerId=null)
- 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

 _getCatCache ()
 _setCatCache ($aCache)
 _setVendorCache ($aCache)
 _setManufacturerCache ($aCache)
 _getVendorCache ()
 _getManufacturerCache ()
 _getUserViewId ($blReset=false)

Protected Attributes

 $_sUserViewId = null

Additional Inherited Members

- Static Protected Attributes inherited from oxSuperCfg
static $_oConfig = null
static $_oSession = null
static $_oRights = null
static $_oActUser = null
static $_blIsAdmin = null

Detailed Description

Date manipulation utility class

Definition at line 6 of file oxutilscount.php.

Member Function Documentation

oxUtilsCount::_getCatCache ( )
protected

Loads and returns category cache data array

Returns
array

Definition at line 355 of file oxutilscount.php.

oxUtilsCount::_getManufacturerCache ( )
protected

Loads and returns category/Manufacturer cache data array

Returns
array

Definition at line 439 of file oxutilscount.php.

oxUtilsCount::_getUserViewId (   $blReset = false)
protected

Returns user view id (Shop, language, RR group index...)

Parameters
bool$blResetoptional, default = false
Returns
string

Definition at line 466 of file oxutilscount.php.

oxUtilsCount::_getVendorCache ( )
protected

Loads and returns category/vendor cache data array

Returns
array

Definition at line 414 of file oxutilscount.php.

oxUtilsCount::_setCatCache (   $aCache)
protected

Writes category data into cache

Parameters
array$aCacheA cacheable data

Definition at line 381 of file oxutilscount.php.

oxUtilsCount::_setManufacturerCache (   $aCache)
protected

Writes Manufacturer data into cache

Parameters
array$aCacheA cacheable data

Definition at line 403 of file oxutilscount.php.

oxUtilsCount::_setVendorCache (   $aCache)
protected

Writes vendor data into cache

Parameters
array$aCacheA cacheable data

Definition at line 392 of file oxutilscount.php.

oxUtilsCount::getCatArticleCount (   $sCatId)

Returns category article count

Parameters
string$sCatIdCategory Id
Returns
int

Definition at line 23 of file oxutilscount.php.

oxUtilsCount::getManufacturerArticleCount (   $sManufacturerId)

Returns Manufacturer article count

Parameters
string$sManufacturerIdManufacturer category Id
Returns
int

Definition at line 97 of file oxutilscount.php.

oxUtilsCount::getPriceCatArticleCount (   $sCatId,
  $dPriceFrom,
  $dPriceTo 
)

Returns category article count price

Parameters
string$sCatIdCategory Id
double$dPriceFromfrom price
double$dPriceToto price
Returns
int

Definition at line 49 of file oxutilscount.php.

oxUtilsCount::getTagArticleCount (   $sTag,
  $iLang 
)

Returns specified Tag article count

Parameters
string$sTagtag to search article count
int$iLanglanguage
Deprecated:
v5.3 (2016-05-04); Tags will be moved to own module.
Returns
int

Definition at line 294 of file oxutilscount.php.

oxUtilsCount::getVendorArticleCount (   $sVendorId)

Returns vendor article count

Parameters
string$sVendorIdVendor category Id
Returns
int

Definition at line 73 of file oxutilscount.php.

oxUtilsCount::resetCatArticleCount (   $sCatId = null)

Resets category (all categories) article count

Parameters
string$sCatIdCategory/vendor/manufacturer ID

Definition at line 241 of file oxutilscount.php.

oxUtilsCount::resetManufacturerArticleCount (   $sManufacturerId = null)

Resets Manufacturer (all Manufacturers) article count

Parameters
string$sManufacturerIdCategory/Manufacturer ID

Definition at line 335 of file oxutilscount.php.

oxUtilsCount::resetPriceCatArticleCount (   $iPrice)

Resets price categories article count

Parameters
int$iPricearticle price

Definition at line 261 of file oxutilscount.php.

oxUtilsCount::resetVendorArticleCount (   $sVendorId = null)

Resets vendor (all vendors) article count

Parameters
string$sVendorIdCategory/vendor ID

Definition at line 315 of file oxutilscount.php.

oxUtilsCount::setCatArticleCount (   $aCache,
  $sCatId,
  $sActIdent 
)

Saves and returns category article count into cache

Parameters
array$aCacheCategory cache data
string$sCatIdUnique category identifier
string$sActIdentID
Returns
int

Definition at line 122 of file oxutilscount.php.

oxUtilsCount::setManufacturerArticleCount (   $aCache,
  $sMnfId,
  $sActIdent 
)

Saves and returns Manufacturers category article count into cache

Parameters
array$aCacheCategory cache data
string$sMnfIdUnique Manufacturer ident
string$sActIdentUnique user context ID
Returns
int

Definition at line 212 of file oxutilscount.php.

oxUtilsCount::setPriceCatArticleCount (   $aCache,
  $sCatId,
  $sActIdent,
  $dPriceFrom,
  $dPriceTo 
)

Saves (if needed) and returns price category article count into cache

Parameters
array$aCacheCategory cache data
string$sCatIdUnique category ident
string$sActIdentCategory ID
int$dPriceFromPrice from
int$dPriceToPrice to
Returns
null

Definition at line 153 of file oxutilscount.php.

oxUtilsCount::setVendorArticleCount (   $aCache,
  $sCatId,
  $sActIdent 
)

Saves and returns vendors category article count into cache

Parameters
array$aCacheCategory cache data
string$sCatIdUnique vendor category ident
string$sActIdentVendor category ID
Returns
int

Definition at line 179 of file oxutilscount.php.

Member Data Documentation

oxUtilsCount::$_sUserViewId = null
protected

Definition at line 14 of file oxutilscount.php.


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