JFactory/getACL: Difference between revisions
From Joomla! Documentation
m subst |
m links |
||
| Line 29: | Line 29: | ||
* {{JVer|1.5}} [[JAuthorization]] | * {{JVer|1.5}} [[API15:JAuthorization]] | ||
* {{JVer|1.6}} [[JAccess]] | * {{JVer|1.6}} [[API16:JAccess]] | ||
===Examples=== | ===Examples=== | ||
Latest revision as of 12:54, 25 March 2017
Description
Get an authorization object
Syntax
& getACL()
Returns
object
Defined in
libraries/joomla/factory.php
Importing
jimport( 'joomla.factory' );
Source Body
function &getACL( )
{
static $instance;
if (!is_object($instance)) {
$instance = JFactory::_createACL();
}
return $instance;
}
Examples
Code Examples