modules/ acl. module.php

Summary
Handler for dealing with adding ACLs for a patient when they are added to the system.
Add an ACL ARO object in the “individual” section of the ARO objects for the specified user.
Simple way to get complex ACL API object
Lookup user by provider, with caching
Overrides the default _setup method to wrap phpgacl’s bizarre XML-based schema setup.
Method used to set the default ACL values for a new FreeMED installation, since the ACL system is very complex and cannot use the default table information and methods.

Functions

acl_patient_add

function acl_patient_add ($pid,  
$current_user =  true)

Handler for dealing with adding ACLs for a patient when they are added to the system.  This should allow default access for a patient based on simple information.

Parameters

$idRecord ID for the new patient record.
$current_user(optional) Whether or not to add the current user to the ACL list.  Defaults to true.

acl_user_add

function acl_user_add ($id)

Add an ACL ARO object in the “individual” section of the ARO objects for the specified user.

Parameters

$idRecord ID for the user in question

_acl_object

function _acl_object ( )

Simple way to get complex ACL API object

Returns

ACL API object

_get_user_from_phy

function _get_user_from_phy ($phy)

Lookup user by provider, with caching

Parameters

$phyProvider id

Returns

User id

_setup

function _setup ( )

Overrides the default _setup method to wrap phpgacl’s bizarre XML-based schema setup.

_set_defaults

function _set_defaults ( )

Method used to set the default ACL values for a new FreeMED installation, since the ACL system is very complex and cannot use the default table information and methods.

function acl_patient_add ($pid,  
$current_user =  true)
Handler for dealing with adding ACLs for a patient when they are added to the system.
function acl_user_add ($id)
Add an ACL ARO object in the “individual” section of the ARO objects for the specified user.
function _acl_object ( )
Simple way to get complex ACL API object
function _get_user_from_phy ($phy)
Lookup user by provider, with caching
function _setup ( )
Overrides the default _setup method to wrap phpgacl’s bizarre XML-based schema setup.
function _set_defaults ( )
Method used to set the default ACL values for a new FreeMED installation, since the ACL system is very complex and cannot use the default table information and methods.