XBRL.php
private function validateXLinkResourceAttributes( $xlinkAttributes, $linkbase )
	{
		if ( ! XBRL::isValidating() ) return true;

		$result = true;

		if ( ! property_exists( $xlinkAttributes, 'type' ) )
		{
			$this->reportMissingResourceAttribute( '3.5.3.8.1', 'type', $linkbase );
			$result = false;
		}

		if ( ! property_exists( $xlinkAttributes, 'role' ) )
		{
			$this->reportMissingResourceAttribute( '3.5.3.8.3', 'role', $linkbase );
			$result = false;
		}

		if ( ! property_exists( $xlinkAttributes, 'label' ) )
		{
			$this->reportMissingResourceAttribute( '3.5.3.8.2', 'label', $linkbase );
			$result = false;
		}

		return true;
	}
private function validateXLinkResourceAttributes( $xlinkAttributes, $linkbase )
	{
		if ( ! XBRL::isValidating() ) return true;

		$result = true;

		if ( ! property_exists( $xlinkAttributes, 'type' ) )
		{
			$this->reportMissingResourceAttribute( '3.5.3.8.1', 'type', $linkbase );
			$result = false;
		}

		if ( ! property_exists( $xlinkAttributes, 'role' ) )
		{
			$this->reportMissingResourceAttribute( '3.5.3.8.3', 'role', $linkbase );
			$result = false;
		}

		if ( ! property_exists( $xlinkAttributes, 'label' ) )
		{
			$this->reportMissingResourceAttribute( '3.5.3.8.2', 'label', $linkbase );
			$result = false;
		}

		return true;
	}
private function validateXLinkResourceAttributes ( $ xlinkAttributes , $ linkbase ) { if ( ! XBRL :: isValidating ( ) ) return true ; $ result = true ; if ( ! property_exists ( $ xlinkAttributes , 'type' ) ) { $ this -> reportMissingResourceAttribute ( '3.5.3.8.1' , 'type' , $ linkbase ) ; $ result = false ; } if ( ! property_exists ( $ xlinkAttributes , 'role' ) ) { $ this -> reportMissingResourceAttribute ( '3.5.3.8.3' , 'role' , $ linkbase ) ; $ result = false ; } if ( ! property_exists ( $ xlinkAttributes , 'label' ) ) { $ this -> reportMissingResourceAttribute ( '3.5.3.8.2' , 'label' , $ linkbase ) ; $ result = false ; } return true ; }
Validate the existence of XLink properties for resources

@param SimpleXMLElement $xlinkAttributes
@param string $linkbase
@return boolean
Validate the existence of XLink properties for resources