client/html/src/Client/Html/Base.php
private function addMetaItemRef( \Aimeos\MShop\Common\Item\ListRef\Iface $item, array &$expires, array &$tags, $tagAll )
	{
		foreach( $item->getListItems() as $listitem )
		{
			if( ( $refItem = $listitem->getRefItem() ) === null ) {
				continue;
			}

			if( $tagAll === true ) {
				$tags[] = str_replace( '/', '_', $listitem->getDomain() ) . '-' . $listitem->getRefId();
			}

			if( ( $date = $listitem->getDateEnd() ) !== null ) {
				$expires[] = $date;
			}

			$this->addMetaItemSingle( $refItem, $expires, $tags, $tagAll );
		}
	}
private function addMetaItemRef( \Aimeos\MShop\Common\Item\ListRef\Iface $item, array &$expires, array &$tags, $tagAll )
	{
		foreach( $item->getListItems() as $listitem )
		{
			if( ( $refItem = $listitem->getRefItem() ) === null ) {
				continue;
			}

			if( $tagAll === true ) {
				$tags[] = str_replace( '/', '_', $listitem->getDomain() ) . '-' . $listitem->getRefId();
			}

			if( ( $date = $listitem->getDateEnd() ) !== null ) {
				$expires[] = $date;
			}

			$this->addMetaItemSingle( $refItem, $expires, $tags, $tagAll );
		}
	}
private function addMetaItemRef ( \ Aimeos \ MShop \ Common \ Item \ ListRef \ Iface $ item , array & $ expires , array & $ tags , $ tagAll ) { foreach ( $ item -> getListItems ( ) as $ listitem ) { if ( ( $ refItem = $ listitem -> getRefItem ( ) ) === null ) { continue ; } if ( $ tagAll === true ) { $ tags [ ] = str_replace ( '/' , '_' , $ listitem -> getDomain ( ) ) . '-' . $ listitem -> getRefId ( ) ; } if ( ( $ date = $ listitem -> getDateEnd ( ) ) !== null ) { $ expires [ ] = $ date ; } $ this -> addMetaItemSingle ( $ refItem , $ expires , $ tags , $ tagAll ) ; } }
Adds expire date and tags for referenced items

@param \Aimeos\MShop\Common\Item\ListRef\Iface $item Item with associated list items
@param array &$expires Will contain the list of expiration dates
@param array &$tags List of tags the new tags will be added to
@param boolean $tagAll True of tags for all items should be added, false if only for the main item
Adds expire date and tags for referenced items