O'Reilly logo

Mastering Joomla! 1.5 Extension and Framework Development by Chuck Lanham, James Kennard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JFactory

static, located in /joomla/factory.php

This is the Joomla! static factory class for accessing global objects and building new objects. For more information about the JFactory class refer to Chapter 2, Getting Started.

Methods

getACL

This static method returns a reference to the global JAuthorization object. If the authorization object does not exist it will be created.

JAuthorization &getACL()

  • object: Returns a reference to the global JAuthorization object
getApplication

This static method returns a reference to the global JApplication object. If the application object does not exist it will be created.

JApplication &getApplication([$id = null], [$config = array()], [$prefix = 'J'])

  • mixed $id: A client identifier or name
  • array $config

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required