OXID eShop CE
4.10.8
Main Page
Related Pages
Classes
Files
File List
File Members
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
10
class
oxERPType_User
extends
oxERPType
11
{
12
18
public
function
__construct
()
19
{
20
parent::__construct
();
21
22
$this->_sTableName =
'oxuser'
;
23
$this->_sShopObjectName =
'oxuser'
;
24
}
25
35
public
function
getSQL
($sWhere, $iLanguage = 0, $iShopId = 1)
36
{
37
$myConfig
=
oxRegistry::getConfig
();
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
67
$myConfig
=
oxRegistry::getConfig
();
68
69
if
(!
$myConfig
->getConfigParam(
'blMallUsers'
)) {
70
parent::checkWriteAccess
($oObj, $aData);
71
}
72
}
73
}
core
objects
oxerptype_user.php
Generated by
1.8.1.2