protected function _checkCurrencyId( $currencyid, $null = true )
	{
		if( $null === false && $currencyid === null ) {
			throw new MShop_Exception( sprintf( 'Invalid ISO currency code "%1$s"', '<null>' ) );
		}

		if( $currencyid !== null && preg_match( '/^[A-Z]{3}$/', $currencyid ) !== 1 ) {
			throw new MShop_Exception( sprintf( 'Invalid ISO currency code "%1$s"', $currencyid ) );
		}
	}
protected function _checkCurrencyId( $currencyid, $null = true )
	{
		if( $null === false && $currencyid === null ) {
			throw new MShop_Exception( sprintf( 'Invalid ISO currency code "%1$s"', '<null>' ) );
		}

		if( $currencyid !== null && preg_match( '/^[A-Z]{3}$/', $currencyid ) !== 1 ) {
			throw new MShop_Exception( sprintf( 'Invalid ISO currency code "%1$s"', $currencyid ) );
		}
	}
protected function _checkCurrencyId ( $ currencyid , $ null = true ) { if ( $ null === false && $ currencyid === null ) { throw new MShop_Exception ( sprintf ( 'Invalid ISO currency code "%1$s"' , '<null>' ) ) ; } if ( $ currencyid !== null && preg_match ( '/^[A-Z]{3}$/' , $ currencyid ) !== 1 ) { throw new MShop_Exception ( sprintf ( 'Invalid ISO currency code "%1$s"' , $ currencyid ) ) ; } }
Tests if the currency ID parameter represents an ISO currency format.

@param string|null $currencyid Three letter ISO currency format, e.g. EUR
@param boolean $null True if null is allowed, false if not
@throws MShop_Exception If the currency ID is invalid
Tests if the currency ID parameter represents an ISO currency format .