oxUtilsCount Class Reference
List of all members.
Detailed Description
Date manipulation utility class
|
Public Member Functions |
| getCatArticleCount ($sCatId) |
| getPriceCatArticleCount ($sCatId, $dPriceFrom, $dPriceTo) |
| getVendorArticleCount ($sVendorId) |
| setCatArticleCount ($aCache, $sCatId, $sActIdent) |
| setPriceCatArticleCount ($aCache, $sCatId, $sActIdent, $dPriceFrom, $dPriceTo) |
| setVendorArticleCount ($aCache, $sCatId, $sActIdent) |
| resetCatArticleCount ($sCatId=null) |
| resetPriceCatArticleCount ($iPrice) |
| getTagArticleCount ($sTag, $iLang) |
| resetVendorArticleCount ($sVendorId=null) |
Static Public Member Functions |
static | getInstance () |
Protected Member Functions |
| _getCatCache () |
| _setCatCache ($aCache) |
| _setVendorCache ($aCache) |
| _getVendorCache () |
| _getUserViewId ($blReset=false) |
Protected Attributes |
| $_sUserViewId = null |
Static Private Attributes |
static | $_instance = null |
Member Function Documentation
static oxUtilsCount.getInstance |
( |
|
) |
[static] |
oxUtilsCount.getCatArticleCount |
( |
$ |
sCatId |
) |
|
Returns category article count
- Parameters:
-
- Returns:
- int
oxUtilsCount.getPriceCatArticleCount |
( |
$ |
sCatId, |
|
|
$ |
dPriceFrom, |
|
|
$ |
dPriceTo | |
|
) |
| | |
Returns category article count price
- Parameters:
-
| string | $sCatId Category Id |
| double | $dPriceFrom from price |
| double | $dPriceTo to price |
- Returns:
- int
oxUtilsCount.getVendorArticleCount |
( |
$ |
sVendorId |
) |
|
Returns vendor article count
- Parameters:
-
| string | $sVendorId Vendor category Id |
- Returns:
- int
oxUtilsCount.setCatArticleCount |
( |
$ |
aCache, |
|
|
$ |
sCatId, |
|
|
$ |
sActIdent | |
|
) |
| | |
Saves and returns category article count into cache
- Parameters:
-
| array | $aCache Category cache data |
| string | $sCatId Unique category ident |
| string | $sActIdent ID |
- Returns:
- int
oxUtilsCount.setPriceCatArticleCount |
( |
$ |
aCache, |
|
|
$ |
sCatId, |
|
|
$ |
sActIdent, |
|
|
$ |
dPriceFrom, |
|
|
$ |
dPriceTo | |
|
) |
| | |
Saves (if needed) and returns price category article count into cache
- Parameters:
-
| array | $aCache Category cache data |
| string | $sCatId Unique category ident |
| string | $sActIdent Category ID |
| int | $dPriceFrom Price from |
| int | $dPriceTo Price to |
- Returns:
- null
oxUtilsCount.setVendorArticleCount |
( |
$ |
aCache, |
|
|
$ |
sCatId, |
|
|
$ |
sActIdent | |
|
) |
| | |
Saves and returns vendors category article count into cache
- Parameters:
-
| array | $aCache Category cache data |
| string | $sCatId Unique vendor category ident |
| string | $sActIdent Vendor category ID |
- Returns:
- int
oxUtilsCount.resetCatArticleCount |
( |
$ |
sCatId = null |
) |
|
Resets category (all categories) article count
- Parameters:
-
| string | $sCatId Category/vendor ID |
- Returns:
- null
oxUtilsCount.resetPriceCatArticleCount |
( |
$ |
iPrice |
) |
|
Resets price categories article count
- Parameters:
-
| int | $iPrice article price |
- Returns:
- null
oxUtilsCount.getTagArticleCount |
( |
$ |
sTag, |
|
|
$ |
iLang | |
|
) |
| | |
Returns specified Tag article count
- Parameters:
-
| string | $sTag tag to search article count |
- Returns:
- int
oxUtilsCount.resetVendorArticleCount |
( |
$ |
sVendorId = null |
) |
|
Resets vendor (all vendors) article count
- Parameters:
-
| string | $sVendorId Category/vendor ID |
- Returns:
- null
oxUtilsCount._getCatCache |
( |
|
) |
[protected] |
Loads and returns category cache data array
- Returns:
- array
oxUtilsCount._setCatCache |
( |
$ |
aCache |
) |
[protected] |
Writes category data into cache
- Parameters:
-
| array | $aCache A cacheable data |
- Returns:
- null
oxUtilsCount._setVendorCache |
( |
$ |
aCache |
) |
[protected] |
Writes vendor data into cache
- Parameters:
-
| array | $aCache A cacheable data |
- Returns:
- null
oxUtilsCount._getVendorCache |
( |
|
) |
[protected] |
Loads and returns category/vendor cache data array
- Returns:
- array
oxUtilsCount._getUserViewId |
( |
$ |
blReset = false |
) |
[protected] |
Returns user view id (Shop, language, RR group index...)
- Parameters:
-
| bool | $blReset optiona, default = false |
- Returns:
- string
Member Data Documentation
oxUtilsCount.$_instance = null [static, private] |
oxUtilsCount.$_sUserViewId = null [protected] |
The documentation for this class was generated from the following file: