Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class JFactory

Description

Joomla Framework Factory class

  • since: 1.5

Located in /joomla/factory.php (line 21)

Class JFactory
Method Summary
Method object JCache &getCache ([string $group = ''], [string $handler = 'callback'])
Method object JRegistry &getConfig ([string $file = null], [string $type = 'PHP'])
Method object JEditor &getEditor ([string $editor = null])
Method object JSession &getSession ([array $options = array()])
Method object JURI &getURI ([ $uri = 'SERVER'])
Method object Parsed &getXMLParser ([string $type = 'DOM'], [array: $options = array()])
Methods
getACL (line 168)

Get an authorization object

Returns a reference to the global JAuthorization object, only creating it if it doesn't already exist.

  • access: public
getCache (line 139)

Get a cache object

Returns a reference to the global JCache object, only creating it if it doesn't already exist.

  • access: public
object JCache &getCache ([string $group = ''], [string $handler = 'callback'])
  • string $group: The cache group name
  • string $handler: The cache class name
getConfig (line 34)

Get a configuration object

Returns a reference to the global JRegistry object, only creating it if it doesn't already exist.

  • access: public
object JRegistry &getConfig ([string $file = null], [string $type = 'PHP'])
  • string $file: The path to the configuration file
  • string $type: The type of the configuration file
getDBO (line 207)

Get a database object

Returns a reference to the global JDatabase object, only creating it if it doesn't already exist.

object JDatabase &getDBO ()
getDocument (line 99)

Get a document object

Returns a reference to the global JDocument object, only creating it if it doesn't already exist.

  • access: public
object JLanguage &getDocument ()
getEditor (line 309)

Get an editor object

  • access: public
object JEditor &getEditor ([string $editor = null])
  • string $editor: The editor to load, depends on the editor plugins that are installed
getLanguage (line 79)

Get a language object

Returns a reference to the global JLanguage object, only creating it if it doesn't already exist.

  • access: public
object JLanguage &getLanguage ()
getMailer (line 233)

Get a mailer object

Returns a reference to the global JMail object, only creating it if it doesn't already exist

  • access: public
object JMail &getMailer ()
getSession (line 59)

Get a session object

Returns a reference to the global JSession object, only creating it if it doesn't already exist.

  • access: public
object JSession &getSession ([array $options = array()])
  • array $options: An array containing session options
getTemplate (line 188)

Get a template object

Returns a reference to the global JTemplate object, only creating it if it doesn't already exist.

  • access: public
object JTemplate &getTemplate ()
getURI (line 332)

Return a reference to the JURI object

  • since: 1.5
  • access: public
object JURI &getURI ([ $uri = 'SERVER'])
  • $uri
getUser (line 119)

Get an user object

Returns a reference to the global JUser object, only creating it if it doesn't already exist.

  • access: public
object JUser &getUser ()
getXMLParser (line 257)

Get an XML document

  • return: XML document object
  • access: public
object Parsed &getXMLParser ([string $type = 'DOM'], [array: $options = array()])
  • string $type: The type of xml parser needed 'DOM', 'RSS' or 'Simple'
  • array: $options: boolean ['lite'] When using 'DOM' if true or not defined then domit_lite is used string ['rssUrl'] the rss url to parse when using "RSS" string ['cache_time'] with 'RSS' - feed cache time. If not defined defaults to 3600 sec

Documentation generated on Mon, 05 Mar 2007 20:58:07 +0000 by phpDocumentor 1.3.1