oxobject2group.php

Go to the documentation of this file.
00001 <?php
00002 
00005 class oxObject2Group extends oxBase
00006 {
00007 
00013     protected $_sCoreTbl = 'oxobject2group';
00014 
00020     protected $_blDisableShopCheck = true;
00021 
00027     protected $_sClassName = 'oxobject2group';
00028 
00032     public function __construct()
00033     {
00034         parent::__construct();
00035         $this->init( 'oxobject2group' );
00036         $this->oxobject2group__oxshopid = new oxField($this->getConfig()->getShopId(), oxField::T_RAW);
00037     }
00038 
00044     public function save()
00045     {
00046         $oDb = oxDb::getDb();
00047         $sQ  = "select 1 from oxobject2group where oxgroupsid = ".$oDb->quote( $this->oxobject2group__oxgroupsid->value );
00048         $sQ .= " and oxobjectid = ". $oDb->quote( $this->oxobject2group__oxobjectid->value );
00049 
00050         // does not exist
00051         if ( !$oDb->getOne( $sQ ) ) {
00052             return parent::save();
00053         }
00054     }
00055 }

Generated by  doxygen 1.6.2