oxobject2group.php

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

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