controller/frontend/src/Controller/Frontend/Product/Standard.php
public function oneOf( $attrIds )
	{
		$attrIds = (array) $attrIds;

		foreach( $attrIds as $key => $entry )
		{
			if( is_array( $entry ) && ( $ids = array_unique( $this->validateIds( $entry ) ) ) !== [] )
			{
				$func = $this->filter->createFunction( 'index.attribute:oneof', [$ids] );
				$this->conditions[] = $this->filter->compare( '!=', $func, null );
				unset( $attrIds[$key] );
			}
		}

		if( ( $ids = array_unique( $this->validateIds( $attrIds ) ) ) !== [] )
		{
			$func = $this->filter->createFunction( 'index.attribute:oneof', [$ids] );
			$this->conditions[] = $this->filter->compare( '!=', $func, null );
		}

		return $this;
	}
public function oneOf( $attrIds )
	{
		$attrIds = (array) $attrIds;

		foreach( $attrIds as $key => $entry )
		{
			if( is_array( $entry ) && ( $ids = array_unique( $this->validateIds( $entry ) ) ) !== [] )
			{
				$func = $this->filter->createFunction( 'index.attribute:oneof', [$ids] );
				$this->conditions[] = $this->filter->compare( '!=', $func, null );
				unset( $attrIds[$key] );
			}
		}

		if( ( $ids = array_unique( $this->validateIds( $attrIds ) ) ) !== [] )
		{
			$func = $this->filter->createFunction( 'index.attribute:oneof', [$ids] );
			$this->conditions[] = $this->filter->compare( '!=', $func, null );
		}

		return $this;
	}
public function oneOf ( $ attrIds ) { $ attrIds = ( array ) $ attrIds ; foreach ( $ attrIds as $ key => $ entry ) { if ( is_array ( $ entry ) && ( $ ids = array_unique ( $ this -> validateIds ( $ entry ) ) ) !== [ ] ) { $ func = $ this -> filter -> createFunction ( 'index.attribute:oneof' , [ $ ids ] ) ; $ this -> conditions [ ] = $ this -> filter -> compare ( '!=' , $ func , null ) ; unset ( $ attrIds [ $ key ] ) ; } } if ( ( $ ids = array_unique ( $ this -> validateIds ( $ attrIds ) ) ) !== [ ] ) { $ func = $ this -> filter -> createFunction ( 'index.attribute:oneof' , [ $ ids ] ) ; $ this -> conditions [ ] = $ this -> filter -> compare ( '!=' , $ func , null ) ; } return $ this ; }
Adds attribute IDs for filtering where products must reference at least one ID

If an array of ID lists is given, each ID list is added separately as condition.

@param array|string $attrIds Attribute ID, list of IDs or array of lists with IDs
@return \Aimeos\Controller\Frontend\Product\Iface Product controller for fluent interface
@since 2019.04
Adds attribute IDs for filtering where products must reference at least one ID