Go to the documentation of this file.00001 <?php
00002
00007 class oxGroups extends oxI18n
00008 {
00013 protected $_sClassName = 'oxgroups';
00014
00018 public function __construct()
00019 {
00020 parent::__construct();
00021 $this->init( 'oxgroups' );
00022 }
00023
00024
00032 public function delete( $sOXID = null )
00033 {
00034 if ( !$sOXID ) {
00035 $sOXID = $this->getId();
00036 }
00037 if ( !$sOXID ) {
00038 return false;
00039 }
00040
00041
00042
00043 parent::delete( $sOXID );
00044
00045 $oDb = oxDb::getDb();
00046
00047
00048
00049 $sDelete = 'delete from oxobject2group where oxobject2group.oxgroupsid = ' . $oDb->quote( $sOXID );
00050 $rs = $oDb->execute( $sDelete );
00051
00052 $sDelete = 'delete from oxobject2delivery where oxobject2delivery.oxobjectid = ' . $oDb->quote( $sOXID );
00053 $rs = $oDb->execute( $sDelete );
00054
00055 $sDelete = 'delete from oxobject2discount where oxobject2discount.oxobjectid = ' . $oDb->quote( $sOXID );
00056 $rs = $oDb->execute( $sDelete );
00057
00058 $sDelete = 'delete from oxobject2payment where oxobject2payment.oxobjectid = ' . $oDb->quote( $sOXID );
00059 $rs = $oDb->execute( $sDelete );
00060
00061 return $rs->EOF;
00062 }
00063
00064 }