src/modules/notification/components/NotificationManager.php
public function init ()
		{
			if (session_status() == PHP_SESSION_NONE)
				session_start();

			if (isset($_SESSION[ 'notification' ]))
			{
				$notification = $_SESSION[ 'notification' ];
				foreach ($notification as $type => $data)
					foreach ($data as $message)
						$this->_data[] = new Notification($message, $type, true);
				$_SESSION[ 'notification' ] = [];
			}
			parent::init();
		}
public function init ()
		{
			if (session_status() == PHP_SESSION_NONE)
				session_start();

			if (isset($_SESSION[ 'notification' ]))
			{
				$notification = $_SESSION[ 'notification' ];
				foreach ($notification as $type => $data)
					foreach ($data as $message)
						$this->_data[] = new Notification($message, $type, true);
				$_SESSION[ 'notification' ] = [];
			}
			parent::init();
		}
public function init ( ) { if ( session_status ( ) == PHP_SESSION_NONE ) session_start ( ) ; if ( isset ( $ _SESSION [ 'notification' ] ) ) { $ notification = $ _SESSION [ 'notification' ] ; foreach ( $ notification as $ type => $ data ) foreach ( $ data as $ message ) $ this -> _data [ ] = new Notification ( $ message , $ type , true ) ; $ _SESSION [ 'notification' ] = [ ] ; } parent :: init ( ) ; }
Initialization method for checking if there are some notification
stored in session. If so the list of notifications is populated and
the list of notifications stored in session is cleared.

@return void
Initialization method for checking if there are some notification stored in session . If so the list of notifications is populated and the list of notifications stored in session is cleared .