Class Message
License: GNU General Public License v2.0 only **********************************************************************************************
Brief:
Simple presentation of messages to the user
This class creates a new html page with a simple headline and a message. It's designed to easily integrate this class into your code. An object @b $gMessage of this class is created in the common.php. You can set a url that should be open after user confirmed the message or you can show a question with two default buttons yes and no. There is also an option to automatically leave the message after some time.
Class: Message
Code:
// show a message with a back button, the object $gMessage is created in common.php $gMessage->show($gL10n->get('SYS_MESSAGE_TEXT_ID'));
// show a message and set a link to a page that should be shown after user click ok $gMessage->setForwardUrl('http://www.example.de/mypage.php'); $gMessage->show($gL10n->get('SYS_MESSAGE_TEXT_ID'));
// show a message with yes and no button and set a link to a page that should be shown after user click yes $gMessage->setForwardYesNo('http://www.example.de/mypage.php'); $gMessage->show($gL10n->get('SYS_MESSAGE_TEXT_ID')); @endcode
Par: Examples
Located at message.php
Methods summary
				 public 
				
				
				
			 | 
			|
				 public 
				
				
				
			 | 
			|
				 public 
				
				
				
			 | 
			
			#
			 showInModaleWindow( )
			If this is set to true than the message will be show with html of the bootstrap modal window.  | 
		
				 public 
				
				
				
			 | 
			
			#
			 setForwardUrl( string $url, integer $timer = 0 )
			Set a URL to which the user should be directed if he confirmed the message. It's possible to set a timer after that the page of the url will be automatically displayed without user interaction.  | 
		
				 public 
				
				
				
			 | 
			
			#
			 setForwardYesNo( string $url )
			Add two buttons with the labels @b yes and @b no to the message. If the user choose yes he will be redirected to the $url. If he chooses no he will be directed back to the previous page.  | 
		
				 public 
				
				
				
			 | 
			|
				 public 
				
				
				
			 | 
			
			#
			 showHtmlTextOnly( boolean $showText )
			If this will be set then only the text message will be shown. If this message contains html elements then these will also be shown in the output.  | 
		
				 public 
				
				
				
			 | 
			
			#
			 showThemeBody( boolean $showTheme )
			If set no theme files will be integrated in the page. This setting is useful if the message should be loaded in a small window.  | 
		
				 public 
				
				
				
			 | 
			
			#
			 showTextOnly( boolean $showText )
			If this will be set then no html elements will be shown in the output, only pure text. This is useful if you have a script that is used in ajax mode.  | 
		
Properties summary
				private  
				
			 | 
			
					$inline
				 | 
			|
				private  
				
			 | 
			
					$forwardUrl
				 | 
			|
				private  
				
			 | 
			
					$timer
				 | 
			|
				private  
				
			 | 
			
					$includeThemeBody
				 | 
			|
				private  
				
			 | 
			
					$showTextOnly
				 | 
			|
				private  
				
			 | 
			
					$showHtmlTextOnly
				 | 
			|
				private  
				
			 | 
			
					$showButtons
				 | 
			|
				private  
				
			 | 
			
					$showYesNoButtons
				 | 
			|
				private  
				
			 | 
			
					$modalWindowMode
				 |