src/XML/Atom/Parser.php
protected function getNodeLanguage( $node, $attributeName = "xml:lang" )
	{
		if( strpos( $attributeName, ":" ) )
		{
			$parts	= explode( ":", $attributeName );
			if( $node->hasAttribute( $parts[1], $parts[0] ) )
				return $node->getAttribute( $parts[1], $parts[0] );
		}
		else if( $node->hasAttribute( $attributeName ) )
			return $node->getAttribute( $attributeName );
		return $this->language;
	}
protected function getNodeLanguage( $node, $attributeName = "xml:lang" )
	{
		if( strpos( $attributeName, ":" ) )
		{
			$parts	= explode( ":", $attributeName );
			if( $node->hasAttribute( $parts[1], $parts[0] ) )
				return $node->getAttribute( $parts[1], $parts[0] );
		}
		else if( $node->hasAttribute( $attributeName ) )
			return $node->getAttribute( $attributeName );
		return $this->language;
	}
protected function getNodeLanguage ( $ node , $ attributeName = "xml:lang" ) { if ( strpos ( $ attributeName , ":" ) ) { $ parts = explode ( ":" , $ attributeName ) ; if ( $ node -> hasAttribute ( $ parts [ 1 ] , $ parts [ 0 ] ) ) return $ node -> getAttribute ( $ parts [ 1 ] , $ parts [ 0 ] ) ; } else if ( $ node -> hasAttribute ( $ attributeName ) ) return $ node -> getAttribute ( $ attributeName ) ; return $ this -> language ; }
Returns Language Attributes and returns evaluate Language.
@access		protected
@param		XML_Element		$node			XML_Element
@param		string			$attributeName	Name of Language Attribute
@return		string
Returns Language Attributes and returns evaluate Language .