XBRL.php
public function getAllDefinitionRoles( $rebuildCache = false )
	{
		if ( $rebuildCache || is_null( $this->context->definitionLinkRolesCache ) )
		{
			$definitionLinkRoles = array();

			// Time to build the cache
			foreach ( $this->context->importedSchemas as $id => $taxonomy )
			{
				$roles = $taxonomy->getDefinitionRoleRefs();

				foreach ( $roles as $roleUri => $role )
				{
					if ( count( $role ) <= 3 || isset( $definitionLinkRoles[ $roleUri ] ) ) continue;
					$definitionLinkRoles[ $roleUri ] = $taxonomy->getSchemaLocation();
				}
			}

			$this->context->definitionLinkRolesCache = $definitionLinkRoles;
		}

		return $this->context->definitionLinkRolesCache;

	}
public function getAllDefinitionRoles( $rebuildCache = false )
	{
		if ( $rebuildCache || is_null( $this->context->definitionLinkRolesCache ) )
		{
			$definitionLinkRoles = array();

			// Time to build the cache
			foreach ( $this->context->importedSchemas as $id => $taxonomy )
			{
				$roles = $taxonomy->getDefinitionRoleRefs();

				foreach ( $roles as $roleUri => $role )
				{
					if ( count( $role ) <= 3 || isset( $definitionLinkRoles[ $roleUri ] ) ) continue;
					$definitionLinkRoles[ $roleUri ] = $taxonomy->getSchemaLocation();
				}
			}

			$this->context->definitionLinkRolesCache = $definitionLinkRoles;
		}

		return $this->context->definitionLinkRolesCache;

	}
public function getAllDefinitionRoles ( $ rebuildCache = false ) { if ( $ rebuildCache || is_null ( $ this -> context -> definitionLinkRolesCache ) ) { $ definitionLinkRoles = array ( ) ; // Time to build the cache
 foreach ( $ this -> context -> importedSchemas as $ id => $ taxonomy ) { $ roles = $ taxonomy -> getDefinitionRoleRefs ( ) ; foreach ( $ roles as $ roleUri => $ role ) { if ( count ( $ role ) <= 3 || isset ( $ definitionLinkRoles [ $ roleUri ] ) ) continue ; $ definitionLinkRoles [ $ roleUri ] = $ taxonomy -> getSchemaLocation ( ) ; } } $ this -> context -> definitionLinkRolesCache = $ definitionLinkRoles ; } return $ this -> context -> definitionLinkRolesCache ; }
Return a list of all roles with their taxonomy xsd using a cache if available
@param array $rebuildCache
@return array A list of roles
Return a list of all roles with their taxonomy xsd using a cache if available