public static function checkInstallData(array $installData){
		// instance name
		if (empty($installData['instance_name'])){
			$msg = "Missing install parameter 'instance_name'.";
			throw new tao_install_utils_MalformedParameterException($msg);
		}
		else if (!is_string($installData['instance_name'])){
			$msg = "Malformed install parameter 'instance_name'. It must be a string.";
			throw new tao_install_utils_MalformedParameterException($msg);
		}
		else if (1 === preg_match('/\s/u', $installData['instance_name'])){
			$msg = "Malformed install parameter 'instance_name'. It cannot contain spacing characters (tab, backspace).";
			throw new tao_install_utils_MalformedParameterException($msg);
		}
	}
public static function checkInstallData(array $installData){
		// instance name
		if (empty($installData['instance_name'])){
			$msg = "Missing install parameter 'instance_name'.";
			throw new tao_install_utils_MalformedParameterException($msg);
		}
		else if (!is_string($installData['instance_name'])){
			$msg = "Malformed install parameter 'instance_name'. It must be a string.";
			throw new tao_install_utils_MalformedParameterException($msg);
		}
		else if (1 === preg_match('/\s/u', $installData['instance_name'])){
			$msg = "Malformed install parameter 'instance_name'. It cannot contain spacing characters (tab, backspace).";
			throw new tao_install_utils_MalformedParameterException($msg);
		}
	}
public static function checkInstallData ( array $ installData ) { // instance name if ( empty ( $ installData [ 'instance_name' ] ) ) { $ msg = "Missing install parameter 'instance_name'." ; throw new tao_install_utils_MalformedParameterException ( $ msg ) ; } else if ( ! is_string ( $ installData [ 'instance_name' ] ) ) { $ msg = "Malformed install parameter 'instance_name'. It must be a string." ; throw new tao_install_utils_MalformedParameterException ( $ msg ) ; } else if ( 1 === preg_match ( '/\s/u' , $ installData [ 'instance_name' ] ) ) { $ msg = "Malformed install parameter 'instance_name'. It cannot contain spacing characters (tab, backspace)." ; throw new tao_install_utils_MalformedParameterException ( $ msg ) ; } }
Check the install data information such as
- instance name
- database driver
- ...

If a parameter of the $installData is not valid regarding the install
business rules, an MalformedInstall

@param array $installData
Check the install data information such as - instance name - database driver - ...