src/modules/notification/components/NotificationManager.php
private function toSession ($message, $type = Notification::ERROR, $isRaw = false, $canHide = true)
		{
			$ntf = new Notification($message, $type, $isRaw, $canHide);

			$notification = isset($_SESSION[ 'notification' ]) ? $_SESSION[ 'notification' ] : [];
			$notification[ $type ][] = $ntf->message;

			$_SESSION[ 'notification' ] = $notification;
		}
private function toSession ($message, $type = Notification::ERROR, $isRaw = false, $canHide = true)
		{
			$ntf = new Notification($message, $type, $isRaw, $canHide);

			$notification = isset($_SESSION[ 'notification' ]) ? $_SESSION[ 'notification' ] : [];
			$notification[ $type ][] = $ntf->message;

			$_SESSION[ 'notification' ] = $notification;
		}
private function toSession ( $ message , $ type = Notification :: ERROR , $ isRaw = false , $ canHide = true ) { $ ntf = new Notification ( $ message , $ type , $ isRaw , $ canHide ) ; $ notification = isset ( $ _SESSION [ 'notification' ] ) ? $ _SESSION [ 'notification' ] : [ ] ; $ notification [ $ type ] [ ] = $ ntf -> message ; $ _SESSION [ 'notification' ] = $ notification ; }
Saves notification to session.

@param    string  $message Message.
@param    integer $type Message type.
@param    boolean $isRaw Whether given message is raw text or should be translated.
@param    boolean $canHide viewed button close.
@return void
Saves notification to session .