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.