OXID eShop CE  4.10.6
 All Classes Namespaces Files Functions Variables Pages
oxerptype_user.php
Go to the documentation of this file.
1 <?php
2 
3 require_once 'oxerptype.php';
4 
11 {
12 
18  public function __construct()
19  {
21 
22  $this->_sTableName = 'oxuser';
23  $this->_sShopObjectName = 'oxuser';
24  }
25 
35  public function getSQL($sWhere, $iLanguage = 0, $iShopId = 1)
36  {
38 
39  // add type 'user' for security reasons
40  if (strstr($sWhere, 'where')) {
41  $sWhere .= ' and ';
42  } else {
43  $sWhere .= ' where ';
44  }
45 
46  $sWhere .= ' oxrights = \'user\'';
47  //MAFI also check for shopid to restrict access
48 
49 
50  return parent::getSQL($sWhere, $iLanguage, $iShopId);
51  }
52 
63  public function checkWriteAccess($oObj, $aData = null)
64  {
65  return;
66 
68 
69  if (!$myConfig->getConfigParam('blMallUsers')) {
70  parent::checkWriteAccess($oObj, $aData);
71  }
72  }
73 }