Public Member Functions | |
__construct ($dbaccess= '', $id= '', $res= '', $dbid=0, $computed=true) | |
postSelect ($id) | |
PostDelete () | |
PostUpdate () | |
PreInsert () | |
postInsert () | |
ListUserPermissions ($user, $app) | |
ListUserApplications ($user) | |
ListApplicationUsers ($app) | |
Exists ($userid, $applicationid, $aclid=0) | |
IsOver ($user, $application, $acl) | |
GrantLevel ($user, $application) | |
DelAppPerm ($id) | |
GetUpPrivileges () | |
GetUnPrivileges () | |
GetGPrivileges () | |
getAllAclForApplication ($appid) | |
GetComputedPrivileges ($uid, $appid) | |
computePerm ($uid, $appid, $acl) | |
GetPrivileges ($force=false, $computed=true) | |
hasPrivilege ($idacl, $strict=false) | |
substituteHasPrivilege ($idacl) | |
AddUserPermission ($appname, $aclname) | |
GetActions () | |
deletePermission ($id_user=null, $id_application=null, $id_acl=null, $computed=null) | |
Public Member Functions inherited from DbObj | |
__construct ($dbaccess= '', $id= '', $res= '', $dbid=0) | |
Select ($id) | |
getValues () | |
affectColumn ($fields, $reset=true) | |
affect ($array, $more=false, $reset=true) | |
isAffected () | |
Complete () | |
preInsert () | |
postInsert () | |
preUpdate () | |
postUpdate () | |
preDelete () | |
postDelete () | |
preSelect ($id) | |
postSelect ($id) | |
Add ($nopost=false, $nopre=false) | |
modify ($nopost=false, $sfields="", $nopre=false) | |
delete ($nopost=false) | |
Adds (&$tcopy, $nopost=false) | |
lw ($prop) | |
CloseConnect () | |
Create ($nopost=false) | |
postInit () | |
init_dbid () | |
exec_query ($sql, $lvl=0, $prepare=false) | |
numrows () | |
fetch_array ($c, $type=PGSQL_ASSOC) | |
update () | |
setError ($moreerr= '') | |
autoUpdate () | |
savePoint ($point) | |
lockPoint ($exclusiveLock, $exclusiveLockPrefix= '') | |
setMasterLock ($useLock) | |
rollbackPoint ($point) | |
commitPoint ($point) | |
Data Fields | |
$fields | |
$id_fields | |
$dbtable = "permission" | |
$privileges = array() | |
$sqlcreate | |
$id_user | |
$id_application | |
$id_acl | |
$computed | |
$actions = array() | |
Data Fields inherited from DbObj | |
$dbid = - 1 | |
$dbaccess = '' | |
$fields | |
$dbtable = '' | |
$id_fields | |
$criterias = array() | |
$sup_fields = array() | |
$sup_where = array() | |
$sup_tables = array() | |
$fulltextfields = array() | |
$order_by = "" | |
$isset = false | |
$msg_err = '' | |
$err_code = '' | |
$res = '' | |
$debug = false | |
$sqlcreate | |
$sqlinit | |
$log | |
Additional Inherited Members | |
Static Public Attributes inherited from DbObj | |
static | $savepoint = array() |
static | $lockpoint = array() |
static | $sqlStrict = null |
Protected Member Functions inherited from DbObj | |
tryCreate () | |
Definition at line 25 of file Class.Permission.php.
__construct | ( | $dbaccess = '' , |
|
$id = '' , |
|||
$res = '' , |
|||
$dbid = 0 , |
|||
$computed = true |
|||
) |
AddUserPermission | ( | $appname, | |
$aclname | |||
) |
computePerm | ( | $uid, | |
$appid, | |||
$acl | |||
) |
Return the ACL value for a given (user, app, acl), computing it if it's not already computed, and storing the results.
Definition at line 314 of file Class.Permission.php.
DelAppPerm | ( | $id | ) |
Definition at line 216 of file Class.Permission.php.
deletePermission | ( | $id_user = null , |
|
$id_application = null , |
|||
$id_acl = null , |
|||
$computed = null |
|||
) |
delete permissions
Definition at line 473 of file Class.Permission.php.
Exists | ( | $userid, | |
$applicationid, | |||
$aclid = 0 |
|||
) |
Definition at line 173 of file Class.Permission.php.
GetActions | ( | ) |
return ACTION list for a user
Definition at line 447 of file Class.Permission.php.
getAllAclForApplication | ( | $appid | ) |
Get all ACL for a given application
Definition at line 268 of file Class.Permission.php.
GetComputedPrivileges | ( | $uid, | |
$appid | |||
) |
Returns the resulting ACL for a given (user, application), computing ACL value if they are empty.
Definition at line 287 of file Class.Permission.php.
GetGPrivileges | ( | ) |
return ACL un list for a user
Definition at line 258 of file Class.Permission.php.
GetPrivileges | ( | $force = false , |
|
$computed = true |
|||
) |
return ACL list for a user
Definition at line 324 of file Class.Permission.php.
GetUnPrivileges | ( | ) |
return ACL un list for a user
Definition at line 248 of file Class.Permission.php.
GetUpPrivileges | ( | ) |
return ACL up list for a user
Definition at line 238 of file Class.Permission.php.
GrantLevel | ( | $user, | |
$application | |||
) |
Definition at line 203 of file Class.Permission.php.
hasPrivilege | ( | $idacl, | |
$strict = false |
|||
) |
return true if user has this privilege
string | $idacl | acl id |
bool | $strict | set to true to not use substitute user account property |
Definition at line 398 of file Class.Permission.php.
IsOver | ( | $user, | |
$application, | |||
$acl | |||
) |
Definition at line 190 of file Class.Permission.php.
ListApplicationUsers | ( | $app | ) |
Definition at line 156 of file Class.Permission.php.
ListUserApplications | ( | $user | ) |
Definition at line 138 of file Class.Permission.php.
ListUserPermissions | ( | $user, | |
$app | |||
) |
Gives the list of Permission for a user on an application
Account | $user | |
Application | $app |
Definition at line 121 of file Class.Permission.php.
PostDelete | ( | ) |
postInsert | ( | ) |
postSelect | ( | $id | ) |
PostUpdate | ( | ) |
PreInsert | ( | ) |
substituteHasPrivilege | ( | $idacl | ) |
return true if incumbent user has this privilege
string | $idacl | acl id |
Definition at line 411 of file Class.Permission.php.
$actions = array() |
Definition at line 63 of file Class.Permission.php.
$computed |
Definition at line 61 of file Class.Permission.php.
$dbtable = "permission" |
Definition at line 39 of file Class.Permission.php.
$fields |
Definition at line 27 of file Class.Permission.php.
$id_acl |
Definition at line 57 of file Class.Permission.php.
$id_application |
Definition at line 56 of file Class.Permission.php.
$id_fields |
Definition at line 34 of file Class.Permission.php.
$id_user |
Definition at line 55 of file Class.Permission.php.
$privileges = array() |
Definition at line 40 of file Class.Permission.php.
$sqlcreate |
Definition at line 44 of file Class.Permission.php.