XBRL-DFR.php
public static function setConceptualModelRoles( $taxonomy = null )
	{
		$cmTaxonomy = $taxonomy ? $taxonomy->getTaxonomyForXSD("cm.xsd") : null;
		if ( $cmTaxonomy )
		{
			$nonDimensionalRoleRef = $cmTaxonomy->getNonDimensionalRoleRefs( XBRL_Constants::$defaultLinkRole );
			if ( isset( $nonDimensionalRoleRef[ XBRL_Constants::$defaultLinkRole ] ) )
			{
				$cmArcRoles = $nonDimensionalRoleRef[ XBRL_Constants::$defaultLinkRole ];
				self::$conceptualModelRoles = $cmArcRoles;

				return;
			}
		}

		// Fallback
		self::$conceptualModelRoles = self::$defaultConceptualModelRoles;
	}
public static function setConceptualModelRoles( $taxonomy = null )
	{
		$cmTaxonomy = $taxonomy ? $taxonomy->getTaxonomyForXSD("cm.xsd") : null;
		if ( $cmTaxonomy )
		{
			$nonDimensionalRoleRef = $cmTaxonomy->getNonDimensionalRoleRefs( XBRL_Constants::$defaultLinkRole );
			if ( isset( $nonDimensionalRoleRef[ XBRL_Constants::$defaultLinkRole ] ) )
			{
				$cmArcRoles = $nonDimensionalRoleRef[ XBRL_Constants::$defaultLinkRole ];
				self::$conceptualModelRoles = $cmArcRoles;

				return;
			}
		}

		// Fallback
		self::$conceptualModelRoles = self::$defaultConceptualModelRoles;
	}
public static function setConceptualModelRoles ( $ taxonomy = null ) { $ cmTaxonomy = $ taxonomy ? $ taxonomy -> getTaxonomyForXSD ( "cm.xsd" ) : null ; if ( $ cmTaxonomy ) { $ nonDimensionalRoleRef = $ cmTaxonomy -> getNonDimensionalRoleRefs ( XBRL_Constants :: $ defaultLinkRole ) ; if ( isset ( $ nonDimensionalRoleRef [ XBRL_Constants :: $ defaultLinkRole ] ) ) { $ cmArcRoles = $ nonDimensionalRoleRef [ XBRL_Constants :: $ defaultLinkRole ] ; self :: $ conceptualModelRoles = $ cmArcRoles ; return ; } } // Fallback
 self :: $ conceptualModelRoles = self :: $ defaultConceptualModelRoles ; }
Sets some model roles if there are any in the taxonomy or sets the default model roles
@param XBRL $taxonomy A taxonomy to use or null
Sets some model roles if there are any in the taxonomy or sets the default model roles