Platform  3.1
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 ()
 
 resetComputed ($docid="")
 
 getUperm ($docid, $userid)
 
 recomputeControl ()
 
 ControlU ($pos)
 
 ControlG ($pos)
 
 ControlUp ($pos)
 
 ControlUn ($pos)
 
 ControlMask ($acl, $pos)
 
 UnSetControl ()
 
 SetControlP ($pos)
 
 UnSetControlP ($pos)
 
 SetControlN ($pos)
 
 UnSetControlN ($pos)
 
- Public Member Functions inherited from DbObj
 __construct ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 Select ($id)
 
 getValues ()
 
 AffectColumn ($fields)
 
 Affect ($array)
 
 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 ()
 
 savePoint ($point)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Data Fields

 $fields
 
 $sup_fields
 
 $id_fields
 
 $dbtable = "docperm"
 
 $order_by = "docid"
 
 $isCacheble = false
 
 $sqlcreate
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = null
 
 $debug = false
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 

Detailed Description

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

Member Function Documentation

ControlG (   $pos)

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

+ Here is the call graph for this function:

ControlMask (   $acl,
  $pos 
)

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

ControlU (   $pos)

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

+ Here is the call graph for this function:

ControlUn (   $pos)

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

+ Here is the call graph for this function:

ControlUp (   $pos)

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

+ Here is the call graph for this function:

getUperm (   $docid,
  $userid 
)

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

preInsert ( )

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

preSelect (   $tid)

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

preUpdate ( )

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

+ Here is the call graph for this function:

recomputeControl ( )

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

+ Here is the call graph for this function:

resetComputed (   $docid = "")

reinitialize computed acl

Parameters
integer$dociddocid acl to reset

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

+ Here is the call graph for this function:

SetControlN (   $pos)

set negative ACL in specified position

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

Definition at line 178 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 161 of file Class.DocPerm.php.

+ Here is the call graph for this function:

UnSetControl ( )

no control for anyone

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

UnSetControlN (   $pos)

unset negative ACL in specified position

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

Definition at line 187 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 170 of file Class.DocPerm.php.

Field Documentation

$dbtable = "docperm"

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

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

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

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

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

$isCacheble = false

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

$order_by = "docid"

Definition at line 44 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,
unacl int not null,
cacl int not null
);
create unique index idx_perm on docperm(docid, userid);
create trigger tinitacl AFTER INSERT OR UPDATE ON docperm FOR EACH ROW EXECUTE PROCEDURE initacl();"

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

$sup_fields
Initial value:
= array(
"getuperm(userid,docid) as uperm"
)

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


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase