added element for status messages
This commit is contained in:
		
							parent
							
								
									32a38b3eb2
								
							
						
					
					
						commit
						c53be05b99
					
				| 
						 | 
				
			
			@ -1224,4 +1224,46 @@ class htmlSpacer extends htmlElement {
 | 
			
		|||
	
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Prints a status message (e.g. error message).
 | 
			
		||||
 *
 | 
			
		||||
 * @package metaHTML
 | 
			
		||||
 */
 | 
			
		||||
class htmlStatusMessage extends htmlElement {
 | 
			
		||||
	
 | 
			
		||||
	private $type;
 | 
			
		||||
	private $title;
 | 
			
		||||
	private $text;
 | 
			
		||||
	
 | 
			
		||||
	/**
 | 
			
		||||
	 * Constructor.
 | 
			
		||||
	 *
 | 
			
		||||
	 * @param String $type message type (e.g. ERROR)
 | 
			
		||||
	 * @param String $title message title
 | 
			
		||||
	 * @param String $text message
 | 
			
		||||
	 */
 | 
			
		||||
	function __construct($type, $title, $text) {
 | 
			
		||||
		$this->type = $type;
 | 
			
		||||
		$this->title = $title;
 | 
			
		||||
		$this->text = $text;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	/**
 | 
			
		||||
	 * Prints the HTML code for this element.
 | 
			
		||||
	 * 
 | 
			
		||||
	 * @param string $module Name of account module
 | 
			
		||||
	 * @param array $input List of meta-HTML elements
 | 
			
		||||
	 * @param array $values List of values which override the defaults in $input (name => value)
 | 
			
		||||
	 * @param boolean $restricted If true then no buttons will be displayed
 | 
			
		||||
	 * @param integer $tabindex Start value of tabulator index for input fields
 | 
			
		||||
	 * @param string $scope Account type
 | 
			
		||||
	 * @return array List of input field names and their type (name => type)
 | 
			
		||||
	 */
 | 
			
		||||
	function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
 | 
			
		||||
		StatusMessage($this->type, $this->title, $this->text);
 | 
			
		||||
		return array();
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue