public function testCacheSources() { $objCache = class_cache::createNewInstance(self::$strCacheSource); $objCache->setStrHash1("test"); $objCache->setStrContent("test"); $objCache->updateObjectToDb(); $this->flushDBCache(); $arrSources = class_cache::getCacheSources(); $this->assertTrue(in_array(self::$strCacheSource, $arrSources)); }
/** * @see interface_admin_systemtask::getAdminForm() * @return string */ public function getAdminForm() { $strReturn = ""; //show dropdown to select cache-source $arrSources = class_cache::getCacheSources(); $arrOptions = array(); $arrOptions[""] = $this->getLang("systemtask_flushcache_all"); foreach ($arrSources as $strOneSource) { $arrOptions[$strOneSource] = $strOneSource; } $strReturn .= $this->objToolkit->formInputDropdown("cacheSource", $arrOptions, $this->getLang("systemtask_cacheSource_source")); return $strReturn; }