ZF-2475: Zend_Controller_Action_Helper_FlashMessenger lacks a method to clear all current messages too
Description
Like clearMessages method, one to clear current messages too.
/**
* 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