|
| preSelect ($tid) |
|
| preInsert () |
|
| preUpdate () |
|
| ControlU ($pos) |
|
| ControlG ($pos) |
|
| ControlUp ($pos) |
|
| ControlMask ($acl, $pos) |
|
| UnSetControl () |
|
| SetControlP ($pos) |
|
| UnSetControlP ($pos) |
|
| __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) |
|
Definition at line 22 of file Class.DocPerm.php.
ControlMask |
( |
|
$acl, |
|
|
|
$pos |
|
) |
| |
control access at $pos position (direct or indirect) (green or grey)
- Parameters
-
- Returns
- bool
Definition at line 124 of file Class.DocPerm.php.
control access at $pos position direct inly (green)
- Parameters
-
- Returns
- bool
Definition at line 147 of file Class.DocPerm.php.
static getMemberOfVector |
( |
|
$uid = 0 , |
|
|
|
$strict = false |
|
) |
| |
|
static |
return account vector for current user to be use in getaperm sql function
- Parameters
-
int | $uid | user identifier |
bool | $strict | set to true to not use substitute |
- Returns
- string
Definition at line 77 of file Class.DocPerm.php.
static getPermsForDoc |
( |
|
$docid | ) |
|
|
static |
static getStrictUperm |
( |
|
$profid, |
|
|
|
$userid |
|
) |
| |
|
static |
static getUperm |
( |
|
$profid, |
|
|
|
$userid, |
|
|
|
$strict = false |
|
) |
| |
|
static |
- Parameters
-
int | $profid | profil identifier |
int | $userid | user identifier |
bool | $strict | set to true to not use substitute |
- Returns
- int
Definition at line 98 of file Class.DocPerm.php.
set positive ACL in specified position
- Parameters
-
int | $pos | column number (0 is the first right column) |
Definition at line 174 of file Class.DocPerm.php.
unset positive ACL in specified position
- Parameters
-
int | $pos | column number (0 is the first right column) |
Definition at line 184 of file Class.DocPerm.php.
Initial value:= array(
"docid",
"userid",
"upacl"
)
Definition at line 24 of file Class.DocPerm.php.
Initial value:= "
create table docperm (
docid int check (docid > 0),
userid int check (userid > 1),
upacl int not null
);
create unique index idx_perm on docperm(docid, userid);"
Definition at line 43 of file Class.DocPerm.php.
The documentation for this class was generated from the following file: