XBRL-Instance.php
public function getSubstitutionGroups()
	{
		$usedGroups = array_reduce( $this->elements, function( $carry, $element ) {

			foreach ( $element as $key => $entry )
			{
				$group = $entry['taxonomy_element']['substitutionGroup'];
				if ( ! isset( $carry[ $group ] ) )
					$carry[ $group ] = 1;
			}

			return $carry;
		}, array() );

		return array_keys( $usedGroups );
	}
public function getSubstitutionGroups()
	{
		$usedGroups = array_reduce( $this->elements, function( $carry, $element ) {

			foreach ( $element as $key => $entry )
			{
				$group = $entry['taxonomy_element']['substitutionGroup'];
				if ( ! isset( $carry[ $group ] ) )
					$carry[ $group ] = 1;
			}

			return $carry;
		}, array() );

		return array_keys( $usedGroups );
	}
public function getSubstitutionGroups ( ) { $ usedGroups = array_reduce ( $ this -> elements , function ( $ carry , $ element ) { foreach ( $ element as $ key => $ entry ) { $ group = $ entry [ 'taxonomy_element' ] [ 'substitutionGroup' ] ; if ( ! isset ( $ carry [ $ group ] ) ) $ carry [ $ group ] = 1 ; } return $ carry ; } , array ( ) ) ; return array_keys ( $ usedGroups ) ; }
Return a list of the substitution groups used by the elements
@return array
Return a list of the substitution groups used by the elements