protected function _addMetaList( $ids, $domain, &$expire )
	{
		$manager = MShop_Factory::createManager( $this->_getContext(), $domain . '/list' );

		$search = $manager->createSearch();
		$expr = array(
			$search->compare( '==', $domain . '.list.parentid', $ids ),
			$search->compare( '>', $domain . '.list.datestart', date( 'Y-m-d H:i:00' ) ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );
		$search->setSortations( array( $search->sort( '+', $domain . '.list.datestart' ) ) );
		$search->setSlice( 0, 1 );

		foreach( $manager->searchItems( $search ) as $listItem ) {
			$expire = $this->_expires( $expire, $listItem->getDateStart() );
		}
	}
protected function _addMetaList( $ids, $domain, &$expire )
	{
		$manager = MShop_Factory::createManager( $this->_getContext(), $domain . '/list' );

		$search = $manager->createSearch();
		$expr = array(
			$search->compare( '==', $domain . '.list.parentid', $ids ),
			$search->compare( '>', $domain . '.list.datestart', date( 'Y-m-d H:i:00' ) ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );
		$search->setSortations( array( $search->sort( '+', $domain . '.list.datestart' ) ) );
		$search->setSlice( 0, 1 );

		foreach( $manager->searchItems( $search ) as $listItem ) {
			$expire = $this->_expires( $expire, $listItem->getDateStart() );
		}
	}
protected function _addMetaList ( $ ids , $ domain , & $ expire ) { $ manager = MShop_Factory :: createManager ( $ this -> _getContext ( ) , $ domain . '/list' ) ; $ search = $ manager -> createSearch ( ) ; $ expr = array ( $ search -> compare ( '==' , $ domain . '.list.parentid' , $ ids ) , $ search -> compare ( '>' , $ domain . '.list.datestart' , date ( 'Y-m-d H:i:00' ) ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; $ search -> setSortations ( array ( $ search -> sort ( '+' , $ domain . '.list.datestart' ) ) ) ; $ search -> setSlice ( 0 , 1 ) ; foreach ( $ manager -> searchItems ( $ search ) as $ listItem ) { $ expire = $ this -> _expires ( $ expire , $ listItem -> getDateStart ( ) ) ; } }
Adds a new expiration date if a list item is activated in the future.

@param array|string $ids Item ID or list of item IDs from the given domain
@param string $domain Name of the domain the item IDs are from
@param string|null &$expire Expiration date that will be overwritten if an start date in the future is available
Adds a new expiration date if a list item is activated in the future .