controller/frontend/src/Controller/Frontend/Product/Standard.php
protected function getCatalogIdsFromTree( \Aimeos\MShop\Catalog\Item\Iface $item )
	{
		if( $item->getStatus() < 1 ) {
			return [];
		}

		$list = [ $item->getId() ];

		foreach( $item->getChildren() as $child ) {
			$list = array_merge( $list, $this->getCatalogIdsFromTree( $child ) );
		}

		return $list;
	}
protected function getCatalogIdsFromTree( \Aimeos\MShop\Catalog\Item\Iface $item )
	{
		if( $item->getStatus() < 1 ) {
			return [];
		}

		$list = [ $item->getId() ];

		foreach( $item->getChildren() as $child ) {
			$list = array_merge( $list, $this->getCatalogIdsFromTree( $child ) );
		}

		return $list;
	}
protected function getCatalogIdsFromTree ( \ Aimeos \ MShop \ Catalog \ Item \ Iface $ item ) { if ( $ item -> getStatus ( ) < 1 ) { return [ ] ; } $ list = [ $ item -> getId ( ) ] ; foreach ( $ item -> getChildren ( ) as $ child ) { $ list = array_merge ( $ list , $ this -> getCatalogIdsFromTree ( $ child ) ) ; } return $ list ; }
Returns the list of catalog IDs for the given catalog tree

@param \Aimeos\MShop\Catalog\Item\Iface $item Catalog item with children
@return array List of catalog IDs
Returns the list of catalog IDs for the given catalog tree