Support Joomla!

references:joomla.framework:jfactory-getacl

Table of Contents

getACL

API Package Class phpDocumentor Last reviewed Doc status
Joomla.Framework JFactory JFactory->getACL

This method returns a reference to the global JAuthorization object, only creating it if it doesn’t already exist.

Syntax

JAuthorization &getACL ()

Examples

Retrieve the number of objects that are in the current acl.

Example

$acl =& JFactory::getACL();
echo "There are ". $acl->acl_count ." objects in the acl.";

might produce:

Result

There are 92 objects in the acl.
 
references/joomla.framework/jfactory-getacl.txt (1021 views) · Last modified: 2007/09/22 02:45