Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
ObjectPermission Class Reference
+ Inheritance diagram for ObjectPermission:
+ Collaboration diagram for ObjectPermission:

Public Member Functions

 ObjectPermission ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 PreSelect ($id)
 
 GetDescription ()
 
 GetGroupPrivileges ()
 
 GetPrivileges ()
 
 AddDefaultPrivileges ()
 
 AddAcl ($idacl)
 
 HasPrivilege ($idacl)
 
 PostDelete ()
 
 Control ($method)
 
 ControlOid ($idclassapp, $method)
 
- 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
 
 $id_fields
 
 $dbtable = "operm"
 
 $sqlcreate
 
 $classid = 0
 
 $description = ""
 
 $coid = array()
 
 $privileges = array()
 
 $iscomplete = false
 
- 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 26 of file Class.ObjectPermission.php.

Member Function Documentation

AddAcl (   $idacl)

Definition at line 210 of file Class.ObjectPermission.php.

AddDefaultPrivileges ( )

Definition at line 202 of file Class.ObjectPermission.php.

Control (   $method)

Definition at line 226 of file Class.ObjectPermission.php.

+ Here is the call graph for this function:

ControlOid (   $idclassapp,
  $method 
)

Definition at line 241 of file Class.ObjectPermission.php.

+ Here is the call graph for this function:

GetDescription ( )

Definition at line 86 of file Class.ObjectPermission.php.

GetGroupPrivileges ( )

Definition at line 162 of file Class.ObjectPermission.php.

+ Here is the call graph for this function:

GetPrivileges ( )

Definition at line 173 of file Class.ObjectPermission.php.

+ Here is the call graph for this function:

HasPrivilege (   $idacl)

Definition at line 216 of file Class.ObjectPermission.php.

ObjectPermission (   $dbaccess = '',
  $id = '',
  $res = '',
  $dbid = 0 
)

Definition at line 55 of file Class.ObjectPermission.php.

+ Here is the call graph for this function:

PostDelete ( )

Definition at line 222 of file Class.ObjectPermission.php.

PreSelect (   $id)

Definition at line 76 of file Class.ObjectPermission.php.

+ Here is the call graph for this function:

Field Documentation

$classid = 0

Definition at line 50 of file Class.ObjectPermission.php.

$coid = array()

Definition at line 52 of file Class.ObjectPermission.php.

$dbtable = "operm"

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

$description = ""

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

$fields
Initial value:
= array(
"id_user",
"id_obj",
"id_class",
"ids_acl"
)

Definition at line 28 of file Class.ObjectPermission.php.

$id_fields
Initial value:
= array(
"id_user",
"id_obj",
"id_class"
)

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

$iscomplete = false

Definition at line 54 of file Class.ObjectPermission.php.

$privileges = array()

Definition at line 53 of file Class.ObjectPermission.php.

$sqlcreate
Initial value:
= '
create table operm (id_user int ,
id_obj int not null,
id_class int not null,
ids_acl int[] );
create unique index i_operm on operm (id_user, id_obj, id_class); '

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


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