/** * @see \cms\system\content\type\IContentType::getOutput() */ public function getOutput(Content $content) { $boxes = DashboardBoxCacheBuilder::getInstance()->getData(array(), 'boxes'); if (!isset($boxes[$content->box])) { // dashboard box doesn't exist anymore return ''; } $className = $boxes[$content->box]->className; $box = new $className(); $box->init($boxes[$content->box], RequestHandler::getInstance()->getActiveRequest()->getRequestObject()); return $box->getTemplate(); }
/** * Clears dashboard box cache. */ public static function clearCache() { DashboardBoxCacheBuilder::getInstance()->reset(); }
/** * @see \wcf\system\package\plugin\AbstractXMLPackageInstallationPlugin::cleanup() */ protected function cleanup() { DashboardBoxCacheBuilder::getInstance()->reset(); }