Beispiel #1
0
 function toHtml($bUseCache = true, $sCacheKey = "")
 {
     if ($bUseCache && AnwComponent::globalCfgCacheOutputEnabled()) {
         try {
             $oOutputHtml = $this->getCachedOutputHtml($sCacheKey);
         } catch (AnwCacheNotFoundException $e) {
             $oOutputHtml = $this->getContent()->toHtml($this);
             $oOutputHtml->putCachedOutputHtml($sCacheKey);
         }
     } else {
         $oOutputHtml = $this->getContent()->toHtml($this);
     }
     return $oOutputHtml;
 }