protected function _getProductListTypeItem( $domain, $code )
	{
		if( !isset( $this->_listTypeAttributes[$domain][$code] ) )
		{
			$listTypeManager = MShop_Factory::createManager( $this->_getContext(), 'product/list/type' );

			$listTypeSearch = $listTypeManager->createSearch( true );
			$expr = array (
				$listTypeSearch->compare( '==', 'product.list.type.domain', $domain ),
				$listTypeSearch->compare( '==', 'product.list.type.code', $code ),
				$listTypeSearch->getConditions(),
			);
			$listTypeSearch->setConditions( $listTypeSearch->combine( '&&', $expr ) );

			$listTypeItems = $listTypeManager->searchItems( $listTypeSearch );

			if( ( $listTypeItem = reset( $listTypeItems ) ) === false )
			{
				$msg = sprintf( 'List type for domain "%1$s" and code "%2$s" not found', $domain, $code );
				throw new Controller_Frontend_Basket_Exception( $msg );
			}

			$this->_listTypeAttributes[$domain][$code] = $listTypeItem;
		}

		return $this->_listTypeAttributes[$domain][$code];
	}
protected function _getProductListTypeItem( $domain, $code )
	{
		if( !isset( $this->_listTypeAttributes[$domain][$code] ) )
		{
			$listTypeManager = MShop_Factory::createManager( $this->_getContext(), 'product/list/type' );

			$listTypeSearch = $listTypeManager->createSearch( true );
			$expr = array (
				$listTypeSearch->compare( '==', 'product.list.type.domain', $domain ),
				$listTypeSearch->compare( '==', 'product.list.type.code', $code ),
				$listTypeSearch->getConditions(),
			);
			$listTypeSearch->setConditions( $listTypeSearch->combine( '&&', $expr ) );

			$listTypeItems = $listTypeManager->searchItems( $listTypeSearch );

			if( ( $listTypeItem = reset( $listTypeItems ) ) === false )
			{
				$msg = sprintf( 'List type for domain "%1$s" and code "%2$s" not found', $domain, $code );
				throw new Controller_Frontend_Basket_Exception( $msg );
			}

			$this->_listTypeAttributes[$domain][$code] = $listTypeItem;
		}

		return $this->_listTypeAttributes[$domain][$code];
	}
protected function _getProductListTypeItem ( $ domain , $ code ) { if ( ! isset ( $ this -> _listTypeAttributes [ $ domain ] [ $ code ] ) ) { $ listTypeManager = MShop_Factory :: createManager ( $ this -> _getContext ( ) , 'product/list/type' ) ; $ listTypeSearch = $ listTypeManager -> createSearch ( true ) ; $ expr = array ( $ listTypeSearch -> compare ( '==' , 'product.list.type.domain' , $ domain ) , $ listTypeSearch -> compare ( '==' , 'product.list.type.code' , $ code ) , $ listTypeSearch -> getConditions ( ) , ) ; $ listTypeSearch -> setConditions ( $ listTypeSearch -> combine ( '&&' , $ expr ) ) ; $ listTypeItems = $ listTypeManager -> searchItems ( $ listTypeSearch ) ; if ( ( $ listTypeItem = reset ( $ listTypeItems ) ) === false ) { $ msg = sprintf ( 'List type for domain "%1$s" and code "%2$s" not found' , $ domain , $ code ) ; throw new Controller_Frontend_Basket_Exception ( $ msg ) ; } $ this -> _listTypeAttributes [ $ domain ] [ $ code ] = $ listTypeItem ; } return $ this -> _listTypeAttributes [ $ domain ] [ $ code ] ; }
Returns the list type item for the given domain and code.

@param string $domain Domain name of the list type
@param string $code Code of the list type
@return MShop_Common_Item_Type_Interface List type item
Returns the list type item for the given domain and code .