API15:JAuthorization/addACL
From Joomla! Documentation
Description
This is a temporary function to allow 3PD's to add basic ACL checks for their modules and components. NOTE: this information will be compiled in the db in future versions
<! removed transcluded page call, red link never existed >
Syntax
addACL($aco_section_value, $aco_value, $aro_section_value, $aro_value, $axo_section_value=NULL, $axo_value=NULL, $return_value=NULL)
| Parameter Name | Default Value | Description |
|---|---|---|
| $aco_section_value | The ACO section value | |
| $aco_value | The ACO value | |
| $aro_section_value | The ARO section value | |
| $aro_value | The ARO section | |
| $axo_section_value | NULL | The AXO section value (optional) |
| $axo_value | NULL | The AXO section value (optional) |
| $return_value | NULL | The return value for the ACL (optional) |
Defined in
libraries/joomla/user/authorization.php
Importing
jimport( 'joomla.user.authorization' );
Source Body
function addACL( $aco_section_value, $aco_value, $aro_section_value, $aro_value, $axo_section_value=NULL, $axo_value=NULL, $return_value=NULL )
{
$this->acl[] = array( $aco_section_value, $aco_value, $aro_section_value, $aro_value, $axo_section_value, $axo_value, $return_value );
$this->acl_count++;
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples