API15

JAuthorization/addACL

From Joomla! Documentation

< API15:JAuthorization

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

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[edit]

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[edit]

libraries/joomla/user/authorization.php

Importing[edit]

jimport( 'joomla.user.authorization' );

Source Body[edit]

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[edit]

Code Examples[edit]