oxerptype_user.php

Go to the documentation of this file.
00001 <?php
00002 
00003 require_once 'oxerptype.php';
00004 
00008 class oxERPType_User extends oxERPType
00009 {
00010 
00016     public function __construct()
00017     {
00018         parent::__construct();
00019 
00020         $this->_sTableName = 'oxuser';
00021         $this->_sShopObjectName = 'oxuser';
00022     }
00023 
00033     public function getSQL($sWhere, $iLanguage = 0, $iShopId = 1)
00034     {
00035         $myConfig = oxRegistry::getConfig();
00036 
00037         // add type 'user' for security reasons
00038         if (strstr($sWhere, 'where')) {
00039             $sWhere .= ' and ';
00040         } else {
00041             $sWhere .= ' where ';
00042         }
00043 
00044         $sWhere .= ' oxrights = \'user\'';
00045         //MAFI also check for shopid to restrict access
00046 
00047 
00048         return parent::getSQL($sWhere, $iLanguage, $iShopId);
00049     }
00050 
00061     public function checkWriteAccess($oObj, $aData = null)
00062     {
00063         return;
00064 
00065         $myConfig = oxRegistry::getConfig();
00066 
00067         if (!$myConfig->getConfigParam('blMallUsers')) {
00068             parent::checkWriteAccess($oObj, $aData);
00069         }
00070     }
00071 }