OXID eShop CE  4.8.12
 All Classes Files Functions Variables Pages
oxerptype_user.php
Go to the documentation of this file.
1 <?php
2 
3 require_once 'oxerptype.php';
4 
8 class oxERPType_User extends oxERPType
9 {
15  public function __construct()
16  {
18 
19  $this->_sTableName = 'oxuser';
20  $this->_sShopObjectName = 'oxuser';
21  }
22 
32  public function getSQL( $sWhere, $iLanguage = 0,$iShopId = 1)
33  {
35 
36  // add type 'user' for security reasons
37  if (strstr( $sWhere, 'where')) {
38  $sWhere .= ' and ';
39  } else {
40  $sWhere .= ' where ';
41  }
42 
43  $sWhere .= ' oxrights = \'user\'';
44  //MAFI also check for shopid to restrict access
45 
46  return parent::getSQL( $sWhere, $iLanguage, $iShopId);
47  }
48 
59  public function checkWriteAccess($oObj, $aData = null)
60  {
61  return;
62 
64 
65  if (!$myConfig->getConfigParam('blMallUsers')) {
66  parent::checkWriteAccess($oObj, $aData);
67  }
68  }
69 
70 }