oxgroups.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class oxGroups extends oxBase
00009 {
00010 
00015     protected $_sCoreTbl   = 'oxgroups';
00016 
00021     protected $_sClassName = 'oxgroups';
00022 
00026     public function __construct()
00027     {
00028         parent::__construct();
00029         $this->init( 'oxgroups' );
00030     }
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 
00051         parent::delete( $sOXID );
00052 
00053         $oDB = oxDb::getDb();
00054 
00055 
00056         // deleting related data records
00057         $sDelete = 'delete from oxobject2group where oxobject2group.oxgroupsid = "'.$sOXID.'"';
00058         $rs = $oDB->execute( $sDelete );
00059 
00060         $sDelete = 'delete from oxobject2delivery where oxobject2delivery.oxobjectid = "'.$sOXID.'"';
00061         $rs = $oDB->execute( $sDelete );
00062 
00063         $sDelete = 'delete from oxobject2discount where oxobject2discount.oxobjectid = "'.$sOXID.'"';
00064         $rs = $oDB->execute( $sDelete );
00065 
00066         $sDelete = 'delete from oxobject2payment where oxobject2payment.oxobjectid = "'.$sOXID.'"';
00067         $rs = $oDB->execute( $sDelete );
00068 
00069         return $rs->EOF;
00070     }
00071 
00072 }

Generated on Thu Dec 4 12:04:56 2008 for OXID eShop CE by  doxygen 1.5.5