client/html/src/Client/Html/Catalog/Count/Tree/Standard.php
protected function counts( \Aimeos\MShop\Catalog\Item\Iface $node )
	{
		$list = [$node->getId() => $node->count];

		foreach( $node->getChildren() as $child ) {
			$list += $this->counts( $child );
		}

		return $list;
	}
protected function counts( \Aimeos\MShop\Catalog\Item\Iface $node )
	{
		$list = [$node->getId() => $node->count];

		foreach( $node->getChildren() as $child ) {
			$list += $this->counts( $child );
		}

		return $list;
	}
protected function counts ( \ Aimeos \ MShop \ Catalog \ Item \ Iface $ node ) { $ list = [ $ node -> getId ( ) => $ node -> count ] ; foreach ( $ node -> getChildren ( ) as $ child ) { $ list += $ this -> counts ( $ child ) ; } return $ list ; }
Returns the product counts per node

@param \Aimeos\MShop\Catalog\Item\Iface $node Tree node, maybe with children
@return array Associative list of catalog IDs as keys and product counts as values
Returns the product counts per node