Actions

API15

JApplication/getMessageQueue

From Joomla! ドキュメンテーション

This page contains changes which are not marked for translation.

Contents

Description

Get the system message queue.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

getMessageQueue()

Returns

The system message queue.

Defined in

libraries/joomla/application/application.php

Importing

jimport( 'joomla.application.application' );

Source Body

function getMessageQueue()
{
        // For empty queue, if messages exists in the session, enqueue them
        if (!count($this->_messageQueue))
        {
                $session =& JFactory::getSession();
                $sessionQueue = $session->get('application.queue');
                if (count($sessionQueue)) {
                        $this->_messageQueue = $sessionQueue;
                        $session->set('application.queue', null);
                }
        }
        return $this->_messageQueue;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />