Back to Joomla project (class list)

Class Factory - list of methods

Default factory for creating Document objects

Extends

Package: Joomla\CMS\Document
Copyright: (C) 2017 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Document/Factory.php
Project: Joomla

Method Summary

public \Joomla\CMS\Document\Document
(string $type = 'html', array $attributes = [])

Creates a new Document object for the requested format.
Parameters
  • string $type The document type to instantiate
  • array $attributes Array of attributes
Returns
  • \Joomla\CMS\Document\Document
Since
  • 4.0.0
Show source code of this method: createDocument Source Code

public \Joomla\CMS\Document\RendererInterface
(\Joomla\CMS\Document\Document $document, string $type, string $docType = '')

Creates a new renderer object.
Parameters
  • \Joomla\CMS\Document\Document $document The Document instance to attach to the renderer
  • string $type The renderer type to instantiate
  • string $docType The document type the renderer is part of
Returns
  • \Joomla\CMS\Document\RendererInterface
Since
  • 4.0.0
Show source code of this method: createRenderer Source Code

Tags Summary

Since
4.0.0