src/Alg/Validation/LanguageValidator.php
public static function validate( $language, $allowed, $default = NULL )
	{
		$validator	= new Alg_Validation_LanguageValidator( $allowed, $default );
		$language	= $validator->getLanguage( $language );
		return $language;
	}
public static function validate( $language, $allowed, $default = NULL )
	{
		$validator	= new Alg_Validation_LanguageValidator( $allowed, $default );
		$language	= $validator->getLanguage( $language );
		return $language;
	}
public static function validate ( $ language , $ allowed , $ default = NULL ) { $ validator = new Alg_Validation_LanguageValidator ( $ allowed , $ default ) ; $ language = $ validator -> getLanguage ( $ language ) ; return $ language ; }
Validates Language statically and returns valid Language.
@access		public
@static
@param		string		$language		Language to validate
@param		array		$allowed		List of allowed Languages
@param		string		$default		Default Language
@return		string
Validates Language statically and returns valid Language .