FactoryInterface

Interface defining a factory which can create Document objects

since

4.0.0

package

Application

Methods

createDocument

Creates a new Document object for the requested format.

createDocument(string type = 'html', array attributes = []) : \Joomla\CMS\Document\Document
since

4.0.0

Arguments

type

stringThe document type to instantiate

attributes

arrayArray of attributes

Response

\Joomla\CMS\Document\Document

createRenderer

Creates a new renderer object.

createRenderer(\Joomla\CMS\Document\Document document, string type, string docType = '') : \Joomla\CMS\Document\RendererInterface
since

4.0.0

Arguments

document

\Joomla\CMS\Document\DocumentThe Document instance to attach to the renderer

type

stringThe renderer type to instantiate

docType

stringThe document type the renderer is part of

Response

\Joomla\CMS\Document\RendererInterface