public function deleteItem( $id )
	{
		$actual = $this->_getManager()->getItem( $id );
		$siteId = $this->_getContext()->getLocale()->getSiteId();

		if( $actual->getSiteId() != $siteId ) {
			throw new MShop_Exception( sprintf( 'Item can not be deleted. Site ID of item differs from present site ID.' ) );
		}

		parent::deleteItem( $id );
	}
public function deleteItem( $id )
	{
		$actual = $this->_getManager()->getItem( $id );
		$siteId = $this->_getContext()->getLocale()->getSiteId();

		if( $actual->getSiteId() != $siteId ) {
			throw new MShop_Exception( sprintf( 'Item can not be deleted. Site ID of item differs from present site ID.' ) );
		}

		parent::deleteItem( $id );
	}
public function deleteItem ( $ id ) { $ actual = $ this -> _getManager ( ) -> getItem ( $ id ) ; $ siteId = $ this -> _getContext ( ) -> getLocale ( ) -> getSiteId ( ) ; if ( $ actual -> getSiteId ( ) != $ siteId ) { throw new MShop_Exception ( sprintf ( 'Item can not be deleted. Site ID of item differs from present site ID.' ) ) ; } parent :: deleteItem ( $ id ) ; }
Deletes an item object.

@param integer $id Unique ID of the item
Deletes an item object .