API16:JFactory/getACL

From Joomla! Documentation

Jump to: navigation, search

Contents

Description

Get an authorization object

[Edit Descripton]

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;
}

[Edit See Also]

Examples


Personal tools