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

Public Member Functions

 preInsert ()
 
 preUpdate ()
 
- 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 isGranted ($userid, $acl, $profid, $strict=false)
 
static hasExtAclGrant ($docid, $accountId, $aclName)
 
static getPermsForDoc ($docid)
 

Data Fields

 $fields
 
 $id_fields
 
 $docid
 
 $userid
 
 $acl
 
 $dbtable = "docpermext"
 
 $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.DocPermExt.php.

Member Function Documentation

static getPermsForDoc (   $docid)
static

Definition at line 97 of file Class.DocPermExt.php.

+ Here is the call graph for this function:

static hasExtAclGrant (   $docid,
  $accountId,
  $aclName 
)
static

Definition at line 79 of file Class.DocPermExt.php.

+ Here is the call graph for this function:

static isGranted (   $userid,
  $acl,
  $profid,
  $strict = false 
)
static
Parameters
int$useriduser identifier
string$aclacl name to control
int$profidprofil identifier
bool$strictset to true to not use substitute
Returns
int

Definition at line 69 of file Class.DocPermExt.php.

+ Here is the call graph for this function:

preInsert ( )

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

preUpdate ( )

Definition at line 57 of file Class.DocPermExt.php.

+ Here is the call graph for this function:

Field Documentation

$acl

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

$dbtable = "docpermext"

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

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

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

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

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

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

$order_by = "docid"

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

$sqlcreate
Initial value:
= "
create table docpermext (
docid int check (docid > 0),
userid int check (userid > 1),
acl text not null
);
create unique index idx_permext on docpermext(docid, userid,acl);"

Definition at line 43 of file Class.DocPermExt.php.

$userid

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


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