public static function TokenizedTypeFromXmlType( $type )
	{
		// Sanity check
		if ( is_null( $type )  || ! is_string( $type ) )
		{
			return XmlTokenizedType::None;
		}

		$types = SchemaTypes::getInstance();
		$atom = $types->getAtomicType( $type );

		return isset( XmlTokenizedType::$typeToCodeMap[ $atom ] )
			? XmlTokenizedType::$typeToCodeMap[ $atom ]
			: XmlTokenizedType::None;
	}
public static function TokenizedTypeFromXmlType( $type )
	{
		// Sanity check
		if ( is_null( $type )  || ! is_string( $type ) )
		{
			return XmlTokenizedType::None;
		}

		$types = SchemaTypes::getInstance();
		$atom = $types->getAtomicType( $type );

		return isset( XmlTokenizedType::$typeToCodeMap[ $atom ] )
			? XmlTokenizedType::$typeToCodeMap[ $atom ]
			: XmlTokenizedType::None;
	}
public static function TokenizedTypeFromXmlType ( $ type ) { // Sanity check
 if ( is_null ( $ type ) || ! is_string ( $ type ) ) { return XmlTokenizedType :: None ; } $ types = SchemaTypes :: getInstance ( ) ; $ atom = $ types -> getAtomicType ( $ type ) ; return isset ( XmlTokenizedType :: $ typeToCodeMap [ $ atom ] ) ? XmlTokenizedType :: $ typeToCodeMap [ $ atom ] : XmlTokenizedType :: None ; }
Get a type code for an Xml type name
@param string $type An Xml type
@return XmlTokenizedType value
Get a type code for an Xml type name