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         $sQ  = "select 1 from oxobject2group where oxgroupsid = '{$this->oxobject2group__oxgroupsid->value}' ";
00047         $sQ .= "and oxobjectid = '{$this->oxobject2group__oxobjectid->value}' ";
00048 
00049         // does not exist
00050         if ( !oxDb::getDb()->getOne( $sQ ) ) {
00051             return parent::save();
00052         }
00053     }
00054 }

Generated on Wed May 13 13:25:51 2009 for OXID eShop CE by  doxygen 1.5.5