Class PermissionModule
- Model
- AppModel
- BEAppModel
- PermissionModule
Version:
$Revision$
Modifiedby: $LastChangedBy$
Lastmodified:
Located at models/account/permission_module.php
Modifiedby: $LastChangedBy$
Lastmodified:
$LastChangedDate$
$Id$
Located at models/account/permission_module.php
Methods summary
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
integer
|
#
permsByUserid( string $userid, string $module, integer $operations )
Return an integer greater than 0, if user $userid has permits on module $module |
public
integer
|
#
permsByGroup( mixed $groupid, string $module, integer $operations )
Return an integer greater than 0 if group $groupid has permits on module $module |
public
array
|
|
public
|
|
public
|
|
public
boolean
|
Methods inherited from BEAppModel
am()
,
buildQueryStatement()
,
checkDate()
,
checkDuration()
,
checkFloat()
,
checkNumber()
,
containLevel()
,
fieldsString()
,
findObjects()
,
findObjectsAfterFilter()
,
findObjectsClauses()
,
findObjectsCount()
,
getBindingsLevel()
,
getDefaultDateFormat()
,
getDriver()
,
getEndQuote()
,
getLimitClausole()
,
getStartQuote()
,
setBindingsLevel()
,
setupDbParams()
,
toolbar()
Methods inherited from AppModel
Constants summary
string |
SWITCH_USER
|
#
'user'
|
string |
SWITCH_GROUP
|
#
'group'
|
Properties summary
public
string
|
$name
|
#
'PermissionModule'
|
public
array
|
$belongsTo
|
#
array(
'Module',
'Group' =>
array(
'className' => 'Group',
'conditions' => "PermissionModule.switch = 'group' ",
'foreignKey' => 'ugid',
'fields' => 'name'
),
'User' =>
array(
'className' => 'User',
'conditions' => "PermissionModule.switch = 'user' ",
'foreignKey' => 'ugid',
'fields' => 'userid'
),
)
|