Public Member Functions | |
__construct ($dbaccess= '', $id= '', $res= '', $dbid=0) | |
isControlled () | |
unsetControl () | |
removeControl ($userid=-1) | |
setControl ($userctrl=true) | |
setProfil ($profid, $fromdocidvalues=null) | |
computeDProfil ($dprofid=0, $fromdocidvalues=null) | |
setViewProfil () | |
isRealProfile () | |
modifyControl ($uid, $aclname, $deletecontrol=false) | |
addControl ($uid, $aclname) | |
isExtendedAcl ($aclname) | |
delControl ($uid, $aclname) | |
setCvid ($cvid) | |
controlId ($docid, $aclname, $strict=false) | |
controlExtId ($docid, $aclname, $strict=false) | |
controlUserId ($docid, $uid, $aclname) | |
controlUp ($uperm, $aclname) | |
getUsersForAcl ($aclname) | |
recomputeProfiledDocument () | |
isDocLinked ($title, $docid) | |
isValidLink ($title, $docid) | |
canEditMenu () | |
controlAclAccess ($acl) | |
controlActifProfil () | |
profilIsActivate ($yes=true) | |
Public Member Functions inherited from DocLDAP | |
OrgInit () | |
UseLdap () | |
SetLdapParam () | |
getDNs () | |
setDNs ($ds, $tdn) | |
canUpdateLdapCard () | |
RefreshLdapCard () | |
DeleteLdapCard () | |
getLDAPDN ($rdn, $path="") | |
getMapAttributes () | |
ConvertToLdap () | |
getLDAPValue ($idattr, $index="") | |
ModifyLdapCard ($tinfoldap) | |
createLDAPDc ($ds, $n) | |
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 | parseMail ($Email) |
static | isFutureDate ($date) |
static | isFloat ($x, $min=null, $max=null) |
static | isInteger ($x, $min=null, $max=null) |
static | isString ($x, $p) |
static | canExecute ($appname, $actname) |
Data Fields | |
$title = '' | |
$dacls | |
$extendedAcls = array() | |
$profid | |
$dprofid | |
$views | |
$attributes = null | |
$doctype | |
$id | |
$initid | |
$uperm | |
$cvid | |
$userid | |
Data Fields inherited from DocLDAP | |
$serveur | |
$port | |
$racine | |
$rootdn | |
$rootpw | |
$useldap = false | |
$infoldap = array() | |
$cindex = false | |
$ldapmap | |
$ldapdn | |
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 () | |
getRawValue($id) getAttribute($a) canEdit control($acl) addHistoryEntry($comment = '', $level = DocHisto::INFO)
Definition at line 54 of file Class.DocCtrl.php.
__construct | ( | $dbaccess = '' , |
|
$id = '' , |
|||
$res = '' , |
|||
$dbid = 0 |
|||
) |
Definition at line 174 of file Class.DocCtrl.php.
addControl | ( | $uid, | |
$aclname | |||
) |
add control for a specific user
int | $uid | user identifier |
string | $aclname | name of the acl (edit, view,...) |
Definition at line 671 of file Class.DocCtrl.php.
canEditMenu | ( | ) |
return MENU_ACTIVE if user can edit document
Definition at line 1093 of file Class.DocCtrl.php.
|
static |
return MENU_ACTIVE if user can execute the specified action
string | $appname | application name |
string | $actname | action name |
Definition at line 1077 of file Class.DocCtrl.php.
computeDProfil | ( | $dprofid = 0 , |
|
$fromdocidvalues = null |
|||
) |
reset right for dynamic profil
int | $dprofid | identifier for dynamic profil document |
Doc | $fromdocidvalues | other document to reference dynamic profiling (default itself) |
Definition at line 387 of file Class.DocCtrl.php.
controlAclAccess | ( | $acl | ) |
return MENU_ACTIVE if user can view or modify access in a profil document
string | $acl | acl name |
Definition at line 1106 of file Class.DocCtrl.php.
controlActifProfil | ( | ) |
return MENU_ACTIVE if profil is actvate
Definition at line 1118 of file Class.DocCtrl.php.
controlExtId | ( | $docid, | |
$aclname, | |||
$strict = false |
|||
) |
use to know if current user has access privilege
int | $docid | profil identifier |
string | $aclname | name of the acl (edit, view,...) |
bool | $strict | set to true to not use substitute |
Definition at line 747 of file Class.DocCtrl.php.
controlId | ( | $docid, | |
$aclname, | |||
$strict = false |
|||
) |
use to know if current user has access privilege
int | $docid | profil identifier |
string | $aclname | name of the acl (edit, view,...) |
bool | $strict | set to true to not use substitute |
Definition at line 718 of file Class.DocCtrl.php.
controlUp | ( | $uperm, | |
$aclname | |||
) |
use to know if permission has access privilege
int | $uperm | permission mask |
string | $aclname | name of the acl (edit, view,...) |
Definition at line 782 of file Class.DocCtrl.php.
controlUserId | ( | $docid, | |
$uid, | |||
$aclname | |||
) |
use to know if current user has access privilege
int | $docid | profil identifier |
int | $uid | user identifier |
string | $aclname | name of the acl (edit, view,...) |
Definition at line 763 of file Class.DocCtrl.php.
delControl | ( | $uid, | |
$aclname | |||
) |
suppress control for a specific user
is not a negative control
int | $uid | user identifier |
string | $aclname | name of the acl (edit, view,...) |
Definition at line 692 of file Class.DocCtrl.php.
getUsersForAcl | ( | $aclname | ) |
return all users which has a control for a document
string | $aclname | the name of acl to search |
Definition at line 795 of file Class.DocCtrl.php.
isControlled | ( | ) |
Definition at line 190 of file Class.DocCtrl.php.
isDocLinked | ( | $title, | |
$docid | |||
) |
verify if a document title and its link are for the same document
string | $title | document title use for verification |
string | $docid | document identifier use for verification |
Definition at line 966 of file Class.DocCtrl.php.
isExtendedAcl | ( | $aclname | ) |
Definition at line 680 of file Class.DocCtrl.php.
|
static |
return true it is a number use for constraint
float | $x | the number to test |
float | $min | the minimum of the number (null to indicate no limit) |
float | $max | the maximum of the number (null to indicate no limit) |
Definition at line 1023 of file Class.DocCtrl.php.
|
static |
return true if the date is in the future (one day after at less)
string | $date | date JJ/MM/AAAA or AAAA-MM-DD |
Definition at line 933 of file Class.DocCtrl.php.
|
static |
return true it is a integer use for constraint
float | $x | the number to test |
float | $min | the minimum of the number (null to indicate no limit) |
float | $max | the maximum of the number (null to indicate no limit) |
Definition at line 1040 of file Class.DocCtrl.php.
isRealProfile | ( | ) |
return true if document is profile document PDOC, PDIR, ...
Definition at line 551 of file Class.DocCtrl.php.
|
static |
return true if string match regexp
string | $x | |
string | $p | regexp pattern |
Definition at line 1062 of file Class.DocCtrl.php.
isValidLink | ( | $title, | |
$docid | |||
) |
verify if a link of document is alive
string | $title | document title use for verification |
string | $docid | document identifier use for verification |
Definition at line 993 of file Class.DocCtrl.php.
modifyControl | ( | $uid, | |
$aclname, | |||
$deletecontrol = false |
|||
) |
modify control for a specific user
int | $uid | user identifier |
string | $aclname | name of the acl (edit, view,...) |
bool | $deletecontrol | set true if want delete a control |
Definition at line 637 of file Class.DocCtrl.php.
|
static |
Definition at line 905 of file Class.DocCtrl.php.
profilIsActivate | ( | $yes = true | ) |
return MENU_ACTIVE if user can view or modify access in a profil document
string | bool | $yes | if "false" invert return |
Definition at line 1129 of file Class.DocCtrl.php.
recomputeProfiledDocument | ( | ) |
apply computeDProfil in all documents with this profile
Definition at line 848 of file Class.DocCtrl.php.
removeControl | ( | $userid = - 1 | ) |
Unset all Acl for document (for everybody)
int | $userid | user system identifier |
Definition at line 211 of file Class.DocCtrl.php.
setControl | ( | $userctrl = true | ) |
activate access specific control
bool | $userctrl | if true add all acls for current user |
Definition at line 230 of file Class.DocCtrl.php.
setCvid | ( | $cvid | ) |
set control view for document
int | $cvid | identifier for control view document |
Definition at line 705 of file Class.DocCtrl.php.
setProfil | ( | $profid, | |
$fromdocidvalues = null |
|||
) |
set profil for document
int | $profid | identifier for profil document |
Doc | $fromdocidvalues |
Definition at line 263 of file Class.DocCtrl.php.
setViewProfil | ( | ) |
recompute view vector privilege
Definition at line 516 of file Class.DocCtrl.php.
unsetControl | ( | ) |
$attributes = null |
Definition at line 142 of file Class.DocCtrl.php.
$cvid |
Definition at line 159 of file Class.DocCtrl.php.
$dacls |
Definition at line 60 of file Class.DocCtrl.php.
$doctype |
Definition at line 143 of file Class.DocCtrl.php.
$dprofid |
Definition at line 137 of file Class.DocCtrl.php.
$extendedAcls = array() |
Definition at line 129 of file Class.DocCtrl.php.
$id |
Definition at line 147 of file Class.DocCtrl.php.
$initid |
Definition at line 151 of file Class.DocCtrl.php.
$profid |
Definition at line 133 of file Class.DocCtrl.php.
$title = '' |
Definition at line 56 of file Class.DocCtrl.php.
$uperm |
Definition at line 155 of file Class.DocCtrl.php.
$userid |
Definition at line 167 of file Class.DocCtrl.php.
$views |
Definition at line 138 of file Class.DocCtrl.php.