rrent flash messages from the session, making sure to always * return an array. * * @return array An array of t3lib_FlashMessage flash messages. */ protected static function getFlashMessagesFromSession() { $flashMessages = self::getUserByContext()->getSessionData('core.template.flashMessages'); return is_array($flashMessages) ? $flashMessages : array(); } /** * Gets user object by context * * @return object user object */ protected static function getUserByContext() { return TYPO3_MODE === 'BE' ? $GLOBALS['BE_USER'] : $GLOBALS['TSFE']->fe_user; } /** * Fetches and renders all available flash messages from the queue. * * @return string All flash messages in the queue rendered as HTML. */ public static function renderFlashMessages() { $content = ''; $flashMessages = self::getAllMessagesAndFlush(); if (count($flashMessages)) { foreach ($flashMessages as $flashMessage) { $content .= $flashMessage->render(); } } return $content; } } if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_flashmessagequeue.php'])) { include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_flashmessagequeue.php']); } ?> Newsletter | VSV - Unihockey *****

Newsletter abonnieren

Newsletter Login

Newsletter abonnieren