/** * Returns all cached entries. * * @param int $intStart * @param int $intEnd * @return array */ public static function getAllCacheEntries($intStart = null, $intEnd = null) { //search in the database to find a matching entry $strQuery = "SELECT *\n FROM " . _dbprefix_ . "cache\n ORDER BY cache_leasetime DESC"; $arrCaches = class_carrier::getInstance()->getObjDB()->getPArray($strQuery, array(), $intStart, $intEnd); $arrReturn = array(); foreach ($arrCaches as $arrRow) { if (isset($arrRow["cache_id"])) { $objCacheEntry = new class_cache($arrRow["cache_source"], $arrRow["cache_hash1"], $arrRow["cache_hash2"], $arrRow["cache_language"], $arrRow["cache_content"], $arrRow["cache_leasetime"], $arrRow["cache_id"]); $objCacheEntry->setIntEntryHits($arrRow["cache_hits"]); $arrReturn[] = $objCacheEntry; } } return $arrReturn; }