protected function _getTypeItem( $prefix, $domain, $code )
	{
		$manager = MShop_Factory::createManager( $this->_getContext(), $prefix );
		$prefix = str_replace( '/', '.', $prefix );

		$search = $manager->createSearch();
		$expr = array(
			$search->compare( '==', $prefix . '.domain', $domain ),
			$search->compare( '==', $prefix . '.code', $code ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );
		$result = $manager->searchItems( $search );

		if( ( $item = reset( $result ) ) === false ) {
			throw new Exception( sprintf( 'No type item for "%1$s/%2$s" in "%3$s" found', $domain, $code, $prefix ) );
		}

		return $item;
	}
protected function _getTypeItem( $prefix, $domain, $code )
	{
		$manager = MShop_Factory::createManager( $this->_getContext(), $prefix );
		$prefix = str_replace( '/', '.', $prefix );

		$search = $manager->createSearch();
		$expr = array(
			$search->compare( '==', $prefix . '.domain', $domain ),
			$search->compare( '==', $prefix . '.code', $code ),
		);
		$search->setConditions( $search->combine( '&&', $expr ) );
		$result = $manager->searchItems( $search );

		if( ( $item = reset( $result ) ) === false ) {
			throw new Exception( sprintf( 'No type item for "%1$s/%2$s" in "%3$s" found', $domain, $code, $prefix ) );
		}

		return $item;
	}
protected function _getTypeItem ( $ prefix , $ domain , $ code ) { $ manager = MShop_Factory :: createManager ( $ this -> _getContext ( ) , $ prefix ) ; $ prefix = str_replace ( '/' , '.' , $ prefix ) ; $ search = $ manager -> createSearch ( ) ; $ expr = array ( $ search -> compare ( '==' , $ prefix . '.domain' , $ domain ) , $ search -> compare ( '==' , $ prefix . '.code' , $ code ) , ) ; $ search -> setConditions ( $ search -> combine ( '&&' , $ expr ) ) ; $ result = $ manager -> searchItems ( $ search ) ; if ( ( $ item = reset ( $ result ) ) === false ) { throw new Exception ( sprintf ( 'No type item for "%1$s/%2$s" in "%3$s" found' , $ domain , $ code , $ prefix ) ) ; } return $ item ; }
Returns the attribute type item specified by the code.

@param string $prefix Domain prefix for the manager, e.g. "media/type"
@param string $domain Domain of the type item
@param string $code Code of the type item
@return MShop_Common_Item_Type_Interface Type item
@throws Exception If no item is found
Returns the attribute type item specified by the code .