Issues

ZF-2475: Zend_Controller_Action_Helper_FlashMessenger lacks a method to clear all current messages too

Issue Type: Sub-task Created: 2008-01-24T12:33:40.000+0000 Last Updated: 2008-03-21T16:25:31.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: David Nussio (david) Assignee: Ralph Schindler (ralph) Tags: - Zend_Controller

Related issues: Attachments:

Description

Like clearMessages method, one to clear current messages too.

<pre class="highlight">
/**
 * Clear all messages from the current namespace
 *
 * @return bool True if messages were cleared, false if none existed
 */
public function clearCurrentMessages()
{
    if ($this->hasCurrentMessages()) {
        unset(self::$_session->{$this->_namespace});
        return true;
    }

    return false;
}

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2008-02-14T11:15:37.000+0000

Scheduling for 1.5

Posted by Ralph Schindler (ralph) on 2008-02-21T10:26:36.000+0000

Patch commited in r8248.

Please check that it does what you like.

-ralph

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts