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