class_mcHelp.inc.php 734 Bytes
<?php
class mcHelp {
	private static $language = 'deu';
	private static $Help = array(
		'deu' => array(
		)
	);
	public static function setLanguage($param_Language, array $param_HelpTranslationArray=null) {
		if(array_key_exists($param_Language, self::$Help) && is_null($param_HelpTranslationArray)) {
			self::$language = $param_Language;
			
		} else if(is_array($param_HelpTranslationArray)) {
			self::$language = $param_Language;
			self::$Help[self::$language] = $param_HelpTranslationArray;

		}
	}	
	
	public static function showHelp() {
		foreach(self::$Help[self::$language] as $kindof => $row) {
//			D::show($row, $kindof);
			mcTableHtml::showTable($row, $kindof);
		}
//		D::show(self::$Help, self::$language);
	}
}
?>