API16

API16:JFactory/getACL

From Joomla! Documentation

Revision as of 01:38, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Get an authorization object


<! removed transcluded page call, red link never existed >

Syntax

static getACL()


Returns

object JACL

Defined in

libraries/joomla/factory.php

Importing

jimport( 'joomla.factory' );

Source Body

public static function getACL()
{
        if (!is_object(JFactory::$acl)) {
                jimport('joomla.access.access');

                JFactory::$acl = new JAccess();
        }

        return JFactory::$acl;
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples