OXID eShop CE
4.9.6
Main Page
Related Pages
Classes
Files
File List
File Members
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
{
10
16
public
function
__construct
()
17
{
18
parent::__construct
();
19
20
$this->_sTableName =
'oxuser'
;
21
$this->_sShopObjectName =
'oxuser'
;
22
}
23
33
public
function
getSQL
($sWhere, $iLanguage = 0, $iShopId = 1)
34
{
35
$myConfig
=
oxRegistry::getConfig
();
36
37
// add type 'user' for security reasons
38
if
(strstr($sWhere,
'where'
)) {
39
$sWhere .=
' and '
;
40
}
else
{
41
$sWhere .=
' where '
;
42
}
43
44
$sWhere .=
' oxrights = \'user\''
;
45
//MAFI also check for shopid to restrict access
46
47
48
return
parent::getSQL
($sWhere, $iLanguage, $iShopId);
49
}
50
61
public
function
checkWriteAccess
($oObj, $aData = null)
62
{
63
return
;
64
65
$myConfig
=
oxRegistry::getConfig
();
66
67
if
(!
$myConfig
->getConfigParam(
'blMallUsers'
)) {
68
parent::checkWriteAccess
($oObj, $aData);
69
}
70
}
71
}
core
objects
oxerptype_user.php
Generated by
1.8.1.2