====== getACL ====== ^ API ^ Package ^ Class ^ phpDocumentor ^ Last reviewed ^ Doc status ^ | {{references:package.png?nolink}} [[references:joomla.framework|Joomla.Framework]] | [[JFactory|JFactory]] | [[http://api.joomla.org/Joomla-Framework//JFactory.html|JFactory->getACL]] | This method returns a reference to the global [[references:joomla.framework:application:jauthorization|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. $acl =& JFactory::getACL(); echo "There are ". $acl->acl_count ." objects in the acl."; might produce: There are 92 objects in the acl.