OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\UtilsCount Class Reference
+ Inheritance diagram for OxidEsales\EshopCommunity\Core\UtilsCount:
+ Collaboration diagram for OxidEsales\EshopCommunity\Core\UtilsCount:

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)
 
 resetVendorArticleCount ($sVendorId=null)
 
 resetManufacturerArticleCount ($sManufacturerId=null)
 

Protected Member Functions

 getAssoc ($query, $parameters=[])
 
 _getCatCache ()
 
 _setCatCache ($aCache)
 
 _setVendorCache ($aCache)
 
 _setManufacturerCache ($aCache)
 
 _getVendorCache ()
 
 _getManufacturerCache ()
 
 _getUserViewId ($blReset=false)
 
 getCurrentUserSessionGroups ()
 

Protected Attributes

 $_sUserViewId = null
 

Detailed Description

Date manipulation utility class

Member Function Documentation

◆ _getCatCache()

OxidEsales\EshopCommunity\Core\UtilsCount::_getCatCache ( )
protected

Loads and returns category cache data array

Returns
array

◆ _getManufacturerCache()

OxidEsales\EshopCommunity\Core\UtilsCount::_getManufacturerCache ( )
protected

Loads and returns category/Manufacturer cache data array

Returns
array

◆ _getUserViewId()

OxidEsales\EshopCommunity\Core\UtilsCount::_getUserViewId (   $blReset = false)
protected

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

Parameters
bool$blResetoptional, default = false
Returns
string

◆ _getVendorCache()

OxidEsales\EshopCommunity\Core\UtilsCount::_getVendorCache ( )
protected

Loads and returns category/vendor cache data array

Returns
array

◆ _setCatCache()

OxidEsales\EshopCommunity\Core\UtilsCount::_setCatCache (   $aCache)
protected

Writes category data into cache

Parameters
array$aCacheA cacheable data

◆ _setManufacturerCache()

OxidEsales\EshopCommunity\Core\UtilsCount::_setManufacturerCache (   $aCache)
protected

Writes Manufacturer data into cache

Parameters
array$aCacheA cacheable data

◆ _setVendorCache()

OxidEsales\EshopCommunity\Core\UtilsCount::_setVendorCache (   $aCache)
protected

Writes vendor data into cache

Parameters
array$aCacheA cacheable data

◆ getAssoc()

OxidEsales\EshopCommunity\Core\UtilsCount::getAssoc (   $query,
  $parameters = [] 
)
protected

Returns the query result as a two dimensional associative array. The keys of the first level are the firsts value of each row. The values of the first level arrays with numeric key that hold the all the values of each row but the first one, which is used a a key in the first level.

Parameters
string$query
array$parameters
Returns
array

◆ getCatArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::getCatArticleCount (   $sCatId)

Returns category article count

Parameters
string$sCatIdCategory Id
Returns
int

◆ getCurrentUserSessionGroups()

OxidEsales\EshopCommunity\Core\UtilsCount::getCurrentUserSessionGroups ( )
protected

Get current user groups

Returns
array|null

◆ getManufacturerArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::getManufacturerArticleCount (   $sManufacturerId)

Returns Manufacturer article count

Parameters
string$sManufacturerIdManufacturer category Id
Returns
int

◆ getPriceCatArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::getPriceCatArticleCount (   $sCatId,
  $dPriceFrom,
  $dPriceTo 
)

Returns category article count price

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

◆ getVendorArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::getVendorArticleCount (   $sVendorId)

Returns vendor article count

Parameters
string$sVendorIdVendor category Id
Returns
int

◆ resetCatArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::resetCatArticleCount (   $sCatId = null)

Resets category (all categories) article count

Parameters
string$sCatIdCategory/vendor/manufacturer ID

◆ resetManufacturerArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::resetManufacturerArticleCount (   $sManufacturerId = null)

Resets Manufacturer (all Manufacturers) article count

Parameters
string$sManufacturerIdCategory/Manufacturer ID

◆ resetPriceCatArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::resetPriceCatArticleCount (   $iPrice)

Resets price categories article count

Parameters
int$iPricearticle price

◆ resetVendorArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::resetVendorArticleCount (   $sVendorId = null)

Resets vendor (all vendors) article count

Parameters
string$sVendorIdCategory/vendor ID

◆ setCatArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::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

◆ setManufacturerArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::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

◆ setPriceCatArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::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

◆ setVendorArticleCount()

OxidEsales\EshopCommunity\Core\UtilsCount::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

Member Data Documentation

◆ $_sUserViewId

OxidEsales\EshopCommunity\Core\UtilsCount::$_sUserViewId = null
protected

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