Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
DocPerm Class Reference
+ Inheritance diagram for DocPerm:
+ Collaboration diagram for DocPerm:

Public Member Functions

 preSelect ($tid)
 
 preInsert ()
 
 preUpdate ()
 
 ControlU ($pos)
 
 ControlG ($pos)
 
 ControlUp ($pos)
 
 ControlMask ($acl, $pos)
 
 UnSetControl ()
 
 SetControlP ($pos)
 
 UnSetControlP ($pos)
 
- 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)
 

Static Public Member Functions

static getMemberOfVector ($uid=0, $strict=false)
 
static getUperm ($profid, $userid, $strict=false)
 
static getStrictUperm ($profid, $userid)
 
static getPermsForDoc ($docid)
 

Data Fields

 $fields
 
 $id_fields
 
 $docid
 
 $userid
 
 $upacl
 
 $uperm
 
 $dbtable = "docperm"
 
 $order_by = "docid"
 
 $sqlcreate
 
- 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 ()
 

Detailed Description

Definition at line 22 of file Class.DocPerm.php.

Member Function Documentation

ControlG (   $pos)
Parameters
$pos
Deprecated:
no need now. Control process has changed
Returns
bool

Definition at line 138 of file Class.DocPerm.php.

ControlMask (   $acl,
  $pos 
)

Definition at line 156 of file Class.DocPerm.php.

ControlU (   $pos)

control access at $pos position (direct or indirect) (green or grey)

Parameters
$pos
Returns
bool

Definition at line 124 of file Class.DocPerm.php.

+ Here is the call graph for this function:

ControlUp (   $pos)

control access at $pos position direct inly (green)

Parameters
$pos
Returns
bool

Definition at line 147 of file Class.DocPerm.php.

+ Here is the call graph for this function:

static getMemberOfVector (   $uid = 0,
  $strict = false 
)
static

return account vector for current user to be use in getaperm sql function

Parameters
int$uiduser identifier
bool$strictset to true to not use substitute
Returns
string

Definition at line 77 of file Class.DocPerm.php.

+ Here is the call graph for this function:

static getPermsForDoc (   $docid)
static

Definition at line 190 of file Class.DocPerm.php.

+ Here is the call graph for this function:

static getStrictUperm (   $profid,
  $userid 
)
static

Definition at line 109 of file Class.DocPerm.php.

+ Here is the call graph for this function:

static getUperm (   $profid,
  $userid,
  $strict = false 
)
static
Parameters
int$profidprofil identifier
int$useriduser identifier
bool$strictset to true to not use substitute
Returns
int

Definition at line 98 of file Class.DocPerm.php.

+ Here is the call graph for this function:

preInsert ( )

Definition at line 59 of file Class.DocPerm.php.

preSelect (   $tid)

Definition at line 51 of file Class.DocPerm.php.

preUpdate ( )

Definition at line 65 of file Class.DocPerm.php.

+ Here is the call graph for this function:

SetControlP (   $pos)

set positive ACL in specified position

Parameters
int$poscolumn number (0 is the first right column)

Definition at line 174 of file Class.DocPerm.php.

UnSetControl ( )

no control for anyone

Definition at line 166 of file Class.DocPerm.php.

UnSetControlP (   $pos)

unset positive ACL in specified position

Parameters
int$poscolumn number (0 is the first right column)

Definition at line 184 of file Class.DocPerm.php.

Field Documentation

$dbtable = "docperm"

Definition at line 39 of file Class.DocPerm.php.

Definition at line 34 of file Class.DocPerm.php.

$fields
Initial value:
= array(
"docid",
"userid",
"upacl"
)

Definition at line 24 of file Class.DocPerm.php.

$id_fields
Initial value:
= array(
"docid",
"userid"
)

Definition at line 30 of file Class.DocPerm.php.

$order_by = "docid"

Definition at line 41 of file Class.DocPerm.php.

$sqlcreate
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.

$upacl

Definition at line 36 of file Class.DocPerm.php.

$uperm

Definition at line 37 of file Class.DocPerm.php.

$userid

Definition at line 35 of file Class.DocPerm.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen