XBRL-DFR.php
private function renderSlicers( $network, $entityQName )
	{
		$slicers =
			"	<div>" .
			"		<div>Slicers</div>" .
			"		<div class='slicers'>" .
			"			<div class='slicer-header'>Reporting Entity [Axis]</div>" .
			"			<div class='slicer-content'>{$entityQName->localName} ({$entityQName->namespaceURI})</div>";

		foreach ( $network['axes'] as $label => $axis)
		{
			if ( ! isset( $axis['dimension'] ) ) continue;
			if ( count( $axis['members'] ) > 1 ) continue;
			$memberLabel = key($axis['members'] );
			if ( isset( $network['axes'][ $memberLabel ] ) ) continue;

			$dimension = $this->getTaxonomyDescriptionForIdWithDefaults( $label );
			$slicers .= "			<div class='slicer-header'>$dimension</div>";

			/** @var QName $memberQName */
			$memberQName = reset( $axis['members'] );
			$memberTaxonomy = $this->getTaxonomyForNamespace( $memberQName->namespaceURI );
			$memberElement = $memberTaxonomy->getElementByName( $memberQName->localName );

			$member = $this->getTaxonomyDescriptionForIdWithDefaults( $memberTaxonomy->getTaxonomyXSD() . "#" . $memberElement['id'] );
			$slicers .= "			<div class='slicer-content'>$member</div>";
		}

		$slicers .=
			"		</div>" .
			"	</div>";

		return $slicers;
	}
private function renderSlicers( $network, $entityQName )
	{
		$slicers =
			"	<div>" .
			"		<div>Slicers</div>" .
			"		<div class='slicers'>" .
			"			<div class='slicer-header'>Reporting Entity [Axis]</div>" .
			"			<div class='slicer-content'>{$entityQName->localName} ({$entityQName->namespaceURI})</div>";

		foreach ( $network['axes'] as $label => $axis)
		{
			if ( ! isset( $axis['dimension'] ) ) continue;
			if ( count( $axis['members'] ) > 1 ) continue;
			$memberLabel = key($axis['members'] );
			if ( isset( $network['axes'][ $memberLabel ] ) ) continue;

			$dimension = $this->getTaxonomyDescriptionForIdWithDefaults( $label );
			$slicers .= "			<div class='slicer-header'>$dimension</div>";

			/** @var QName $memberQName */
			$memberQName = reset( $axis['members'] );
			$memberTaxonomy = $this->getTaxonomyForNamespace( $memberQName->namespaceURI );
			$memberElement = $memberTaxonomy->getElementByName( $memberQName->localName );

			$member = $this->getTaxonomyDescriptionForIdWithDefaults( $memberTaxonomy->getTaxonomyXSD() . "#" . $memberElement['id'] );
			$slicers .= "			<div class='slicer-content'>$member</div>";
		}

		$slicers .=
			"		</div>" .
			"	</div>";

		return $slicers;
	}
private function renderSlicers ( $ network , $ entityQName ) { $ slicers = "	<div>" . "		<div>Slicers</div>" . "		<div class='slicers'>" . "			<div class='slicer-header'>Reporting Entity [Axis]</div>" . "			<div class='slicer-content'>{$entityQName->localName} ({$entityQName->namespaceURI})</div>" ; foreach ( $ network [ 'axes' ] as $ label => $ axis ) { if ( ! isset ( $ axis [ 'dimension' ] ) ) continue ; if ( count ( $ axis [ 'members' ] ) > 1 ) continue ; $ memberLabel = key ( $ axis [ 'members' ] ) ; if ( isset ( $ network [ 'axes' ] [ $ memberLabel ] ) ) continue ; $ dimension = $ this -> getTaxonomyDescriptionForIdWithDefaults ( $ label ) ; $ slicers .= "			<div class='slicer-header'>$dimension</div>" ; /** @var QName $memberQName */ $ memberQName = reset ( $ axis [ 'members' ] ) ; $ memberTaxonomy = $ this -> getTaxonomyForNamespace ( $ memberQName -> namespaceURI ) ; $ memberElement = $ memberTaxonomy -> getElementByName ( $ memberQName -> localName ) ; $ member = $ this -> getTaxonomyDescriptionForIdWithDefaults ( $ memberTaxonomy -> getTaxonomyXSD ( ) . "#" . $ memberElement [ 'id' ] ) ; $ slicers .= "			<div class='slicer-content'>$member</div>" ; } $ slicers .= "		</div>" . "	</div>" ; return $ slicers ; }
Renders the slicers table
@param array $network
@param QName $entityQName
@return string
Renders the slicers table