API16

API16:JFactory/getDocument

From Joomla! Documentation

Description

Get a document object


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

Syntax

static getDocument()


Returns

object

Defined in

libraries/joomla/factory.php

Importing

jimport( 'joomla.factory' );

Source Body

public static function getDocument()
{
        if (!is_object(JFactory::$document)) {
                JFactory::$document = JFactory::_createDocument();
        }

        return JFactory::$document;
}


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

Examples

Code Examples