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) |
| __call ($sMethod, $aArgs) |
| __construct () |
| getConfig () |
| setConfig ($oConfig) |
| getSession () |
| setSession ($oSession) |
| getUser () |
| setUser ($oUser) |
| isAdmin () |
| setAdminMode ($blAdmin) |
Static Private Attributes |
static | $_instance = 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 377 of file oxutilscount.php.
oxUtilsCount::_getManufacturerCache |
( |
| ) |
|
|
protected |
Loads and returns category/Manufacturer cache data array
- Returns
- array
Definition at line 465 of file oxutilscount.php.
oxUtilsCount::_getUserViewId |
( |
|
$blReset = false | ) |
|
|
protected |
Returns user view id (Shop, language, RR group index...)
- Parameters
-
bool | $blReset | optional, default = false |
- Returns
- string
Definition at line 491 of file oxutilscount.php.
oxUtilsCount::_getVendorCache |
( |
| ) |
|
|
protected |
Loads and returns category/vendor cache data array
- Returns
- array
Definition at line 441 of file oxutilscount.php.
oxUtilsCount::_setCatCache |
( |
|
$aCache | ) |
|
|
protected |
Writes category data into cache
- Parameters
-
array | $aCache | A cacheable data |
- Returns
- null
Definition at line 404 of file oxutilscount.php.
oxUtilsCount::_setManufacturerCache |
( |
|
$aCache | ) |
|
|
protected |
oxUtilsCount::_setVendorCache |
( |
|
$aCache | ) |
|
|
protected |
Writes vendor data into cache
- Parameters
-
array | $aCache | A cacheable data |
- Returns
- null
Definition at line 417 of file oxutilscount.php.
oxUtilsCount::getCatArticleCount |
( |
|
$sCatId | ) |
|
Returns category article count
- Parameters
-
- Returns
- int
Definition at line 41 of file oxutilscount.php.
static oxUtilsCount::getInstance |
( |
| ) |
|
|
static |
oxUtilsCount::getManufacturerArticleCount |
( |
|
$sManufacturerId | ) |
|
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
Definition at line 66 of file oxutilscount.php.
oxUtilsCount::getTagArticleCount |
( |
|
$sTag, |
|
|
|
$iLang |
|
) |
| |
Returns specified Tag article count
- Parameters
-
string | $sTag | tag to search article count |
int | $iLang | language |
- Returns
- int
Definition at line 310 of file oxutilscount.php.
oxUtilsCount::getVendorArticleCount |
( |
|
$sVendorId | ) |
|
Returns vendor article count
- Parameters
-
string | $sVendorId | Vendor category Id |
- Returns
- int
Definition at line 90 of file oxutilscount.php.
oxUtilsCount::resetCatArticleCount |
( |
|
$sCatId = null | ) |
|
Resets category (all categories) article count
- Parameters
-
string | $sCatId | Category/vendor/manufacturer ID |
- Returns
- null
Definition at line 255 of file oxutilscount.php.
oxUtilsCount::resetManufacturerArticleCount |
( |
|
$sManufacturerId = null | ) |
|
Resets Manufacturer (all Manufacturers) article count
- Parameters
-
string | $sManufacturerId | Category/Manufacturer ID |
- Returns
- null
Definition at line 356 of file oxutilscount.php.
oxUtilsCount::resetPriceCatArticleCount |
( |
|
$iPrice | ) |
|
Resets price categories article count
- Parameters
-
- Returns
- null
Definition at line 278 of file oxutilscount.php.
oxUtilsCount::resetVendorArticleCount |
( |
|
$sVendorId = null | ) |
|
Resets vendor (all vendors) article count
- Parameters
-
string | $sVendorId | Category/vendor ID |
- Returns
- null
Definition at line 333 of file oxutilscount.php.
oxUtilsCount::setCatArticleCount |
( |
|
$aCache, |
|
|
|
$sCatId, |
|
|
|
$sActIdent |
|
) |
| |
Saves and returns category article count into cache
- Parameters
-
array | $aCache | Category cache data |
string | $sCatId | Unique category identifier |
string | $sActIdent | ID |
- Returns
- int
Definition at line 137 of file oxutilscount.php.
oxUtilsCount::setManufacturerArticleCount |
( |
|
$aCache, |
|
|
|
$sMnfId, |
|
|
|
$sActIdent |
|
) |
| |
Saves and returns Manufacturers category article count into cache
- Parameters
-
array | $aCache | Category cache data |
string | $sMnfId | Unique Manufacturer ident |
string | $sActIdent | Unique user context ID |
- Returns
- int
Definition at line 224 of file oxutilscount.php.
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
Definition at line 167 of file oxutilscount.php.
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
Definition at line 192 of file oxutilscount.php.
Member Data Documentation
oxUtilsCount::$_instance = null |
|
staticprivate |
oxUtilsCount::$_sUserViewId = null |
|
protected |
The documentation for this class was generated from the following file: