XBRL.php
public function getAllElements()
	{
		if ( $this->context->isExtensionTaxonomy() )
		{
			$prefix = $this->getPrefix();
			return array_map( function( $item ) use ( $prefix ) { $item['prefix'] = $prefix; return $item; }, $this->elementIndex );
		}

		$result = array();
		foreach ( $this->context->importedSchemas as $namespace => $taxonomy )
		{
			$elements = $taxonomy->getElements();
			if ( ! $elements ) continue; // Don't attempt to merge if there are no element and it take time
			$prefix = $taxonomy->getPrefix();
			$elements = array_map( function( $item ) use ( $prefix ) { $item['prefix'] = $prefix; return $item; }, $elements );
			$result = array_merge( $result, $elements );
		}
		return $result;
	}
public function getAllElements()
	{
		if ( $this->context->isExtensionTaxonomy() )
		{
			$prefix = $this->getPrefix();
			return array_map( function( $item ) use ( $prefix ) { $item['prefix'] = $prefix; return $item; }, $this->elementIndex );
		}

		$result = array();
		foreach ( $this->context->importedSchemas as $namespace => $taxonomy )
		{
			$elements = $taxonomy->getElements();
			if ( ! $elements ) continue; // Don't attempt to merge if there are no element and it take time
			$prefix = $taxonomy->getPrefix();
			$elements = array_map( function( $item ) use ( $prefix ) { $item['prefix'] = $prefix; return $item; }, $elements );
			$result = array_merge( $result, $elements );
		}
		return $result;
	}
public function getAllElements ( ) { if ( $ this -> context -> isExtensionTaxonomy ( ) ) { $ prefix = $ this -> getPrefix ( ) ; return array_map ( function ( $ item ) use ( $ prefix ) { $ item [ 'prefix' ] = $ prefix ; return $ item ; } , $ this -> elementIndex ) ; } $ result = array ( ) ; foreach ( $ this -> context -> importedSchemas as $ namespace => $ taxonomy ) { $ elements = $ taxonomy -> getElements ( ) ; if ( ! $ elements ) continue ; // Don't attempt to merge if there are no element and it take time
 $ prefix = $ taxonomy -> getPrefix ( ) ; $ elements = array_map ( function ( $ item ) use ( $ prefix ) { $ item [ 'prefix' ] = $ prefix ; return $ item ; } , $ elements ) ; $ result = array_merge ( $ result , $ elements ) ; } return $ result ; }
Returns an array of elements across all taxonomies
@return array
Returns an array of elements across all taxonomies