XBRL.php
public function getTaxonomyDescriptionForIdWithDefaults( $href, $roles = null, $lang = null, $extendedLinkRole = null )
	{
		$text = $this->getTaxonomyDescriptionForId( $href, $roles, $lang, $extendedLinkRole );
		if ( $text !== false) return $text;

		// Try some defaults unless the options are already the defaults
		if (
			  (
			  	 ( $roles == null ) ||
			  	 ( $roles == XBRL_Constants::$labelRoleLabel ) ||
			  	 ( is_array( $roles ) && in_array( XBRL_Constants::$labelRoleLabel, $roles ) )
			  ) &&
			  ( $lang == $this->getDefaultLanguage() || $lang == null )
		   ) return false;

		if ( $roles && $lang )
		{
			$text = $this->getTaxonomyDescriptionForId( $href, null, $lang, $extendedLinkRole );
			if ( $text !== false) return $text;
		}

		return $this->getTaxonomyDescriptionForId( $href, null, null, $extendedLinkRole );
	}
public function getTaxonomyDescriptionForIdWithDefaults( $href, $roles = null, $lang = null, $extendedLinkRole = null )
	{
		$text = $this->getTaxonomyDescriptionForId( $href, $roles, $lang, $extendedLinkRole );
		if ( $text !== false) return $text;

		// Try some defaults unless the options are already the defaults
		if (
			  (
			  	 ( $roles == null ) ||
			  	 ( $roles == XBRL_Constants::$labelRoleLabel ) ||
			  	 ( is_array( $roles ) && in_array( XBRL_Constants::$labelRoleLabel, $roles ) )
			  ) &&
			  ( $lang == $this->getDefaultLanguage() || $lang == null )
		   ) return false;

		if ( $roles && $lang )
		{
			$text = $this->getTaxonomyDescriptionForId( $href, null, $lang, $extendedLinkRole );
			if ( $text !== false) return $text;
		}

		return $this->getTaxonomyDescriptionForId( $href, null, null, $extendedLinkRole );
	}
public function getTaxonomyDescriptionForIdWithDefaults ( $ href , $ roles = null , $ lang = null , $ extendedLinkRole = null ) { $ text = $ this -> getTaxonomyDescriptionForId ( $ href , $ roles , $ lang , $ extendedLinkRole ) ; if ( $ text !== false ) return $ text ; // Try some defaults unless the options are already the defaults
 if ( ( ( $ roles == null ) || ( $ roles == XBRL_Constants :: $ labelRoleLabel ) || ( is_array ( $ roles ) && in_array ( XBRL_Constants :: $ labelRoleLabel , $ roles ) ) ) && ( $ lang == $ this -> getDefaultLanguage ( ) || $ lang == null ) ) return false ; if ( $ roles && $ lang ) { $ text = $ this -> getTaxonomyDescriptionForId ( $ href , null , $ lang , $ extendedLinkRole ) ; if ( $ text !== false ) return $ text ; } return $ this -> getTaxonomyDescriptionForId ( $ href , null , null , $ extendedLinkRole ) ; }
Returns a description for an element identified by href and optionally a role and language
If a label cannot be found using the options and the options are not already the defaults, try the defaults.
@param string $href  The id of the element for which a description is to be retrieved.  If only the fragment is provided, its assumed to be from the current taxonomy.
@param null|string[] $roles (optional) If true include the element text in the result.  If the argument is an array it will be an array of preferred labels.
@param null|string $lang (optional) a language locale
@param string $extendedLinkRole (optional)
@return bool|string A description string or false
Returns a description for an element identified by href and optionally a role and language If a label cannot be found using the options and the options are not already the defaults try the defaults .