oUser = $oUser; return true; } function render() { $notifications = KTNotification::getList(array("user_id = ?", $this->oUser->getId())); $oTemplating = new KTTemplating; $oTemplate = $oTemplating->loadTemplate("ktcore/dashlets/notifications"); $aTemplateData = array( "notifications" => $notifications, ); return $oTemplate->render($aTemplateData); } } $oRegistry =& KTPluginRegistry::getSingleton(); $oPlugin =& $oRegistry->getPlugin('ktcore.plugin'); $oPlugin->registerDashlet('KTNotificationDashlet', 'ktcore.notifications.dashlet', __FILE__); ?>