API16

JFactory/getACL: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 36: Line 36:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getACL
  category=getACL
  category=JFactory
  category=JFactory
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:38, 25 March 2017

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