00001 <?php 00002 00008 class oxDeliverySet extends oxI18n 00009 { 00015 protected $_sCoreTbl = 'oxdeliveryset'; 00016 00022 protected $_sClassName = 'oxdeliveryset'; 00023 00027 public function __construct() 00028 { 00029 parent::__construct(); 00030 $this->init( 'oxdeliveryset' ); 00031 } 00032 00040 public function delete( $sOxId = null ) 00041 { 00042 if ( !$sOxId ) { 00043 $sOxId = $this->getId(); 00044 } 00045 if ( !$sOxId ) { 00046 return false; 00047 } 00048 00049 00050 $oDb = oxDb::getDb(); 00051 00052 $oDb->execute( 'delete from oxobject2payment where oxobjectid = "'.$sOxId.'" ' ); 00053 $oDb->execute( 'delete from oxobject2delivery where oxdeliveryid = "'.$sOxId.'" '); 00054 $oDb->execute( 'delete from oxdel2delset where oxdelsetid = "'.$sOxId.'" '); 00055 00056 return parent::delete( $sOxId ); 00057 } 00058 }