Core/Framework/Page/Template.php
final protected function getMessages($data_only = false, $container = 'container')
    {
        $messages = $this->page->message->getAll();

        if ($data_only) {
            return $messages;
        }

        ob_start();

        echo '<div id="core-message"', ($container ? ' class="' . $container . '"' : ''), '>';

        /* @var $msg \Core\Message\Message */
        foreach ($messages as $msg) {

            echo PHP_EOL, '
            <div class="alert alert-', $msg->getType(), $msg->getDismissable() ? ' alert-dismissable' : '';

            // Fadeout message?
            #if ($this->config->get('Core', 'js.style.fadeout_time') > 0 && $msg->getFadeout()) {
            #    echo ' fadeout';
            #}

            echo '">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                ', $msg->getMessage(), '
            </div>';
        }

        echo '</div>';

        return ob_get_clean();
    }
final protected function getMessages($data_only = false, $container = 'container')
    {
        $messages = $this->page->message->getAll();

        if ($data_only) {
            return $messages;
        }

        ob_start();

        echo '<div id="core-message"', ($container ? ' class="' . $container . '"' : ''), '>';

        /* @var $msg \Core\Message\Message */
        foreach ($messages as $msg) {

            echo PHP_EOL, '
            <div class="alert alert-', $msg->getType(), $msg->getDismissable() ? ' alert-dismissable' : '';

            // Fadeout message?
            #if ($this->config->get('Core', 'js.style.fadeout_time') > 0 && $msg->getFadeout()) {
            #    echo ' fadeout';
            #}

            echo '">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                ', $msg->getMessage(), '
            </div>';
        }

        echo '</div>';

        return ob_get_clean();
    }
final protected function getMessages ( $ data_only = false , $ container = 'container' ) { $ messages = $ this -> page -> message -> getAll ( ) ; if ( $ data_only ) { return $ messages ; } ob_start ( ) ; echo '<div id="core-message"' , ( $ container ? ' class="' . $ container . '"' : '' ) , '>' ; /* @var $msg \Core\Message\Message */ foreach ( $ messages as $ msg ) { echo PHP_EOL , '
            <div class="alert alert-' , $ msg -> getType ( ) , $ msg -> getDismissable ( ) ? ' alert-dismissable' : '' ; // Fadeout message? #if ($this->config->get('Core', 'js.style.fadeout_time') > 0 && $msg->getFadeout()) { #    echo ' fadeout'; #} echo '">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                ' , $ msg -> getMessage ( ) , '
            </div>' ; } echo '</div>' ; return ob_get_clean ( ) ; }
Creates and returns stored messages

@param boolean $data_only
Set to true if you want to get get only the data without a generated html

@return string|array
Creates and returns stored messages