Factory

Implements FactoryInterface

Default factory for creating Document objects

since

4.0.0

package

Joomla CMS

Methods

createDocument

Creates a new Document object for the requested format.

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

4.0.0

Arguments

type

stringThe document type to instantiate

attributes

array<string|int, mixed>Array of attributes

Response

Document

createRenderer

Creates a new renderer object.

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

4.0.0

Arguments

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

RendererInterface

getCacheControllerFactory

Get the CacheControllerFactoryInterface.

getCacheControllerFactory() : \Joomla\CMS\Cache\CacheControllerFactoryInterface
inherited
since

4.2.0

Response

CacheControllerFactoryInterface

setCacheControllerFactory

Set the cache controller factory to use.

setCacheControllerFactory(\Joomla\CMS\Cache\CacheControllerFactoryInterface cacheControllerFactory = null) : 
inherited
since

4.2.0

Arguments

cacheControllerFactory

CacheControllerFactoryInterfaceThe cache controller factory to use.

Response

void

Properties

cacheControllerFactory

CacheControllerFactoryInterface

inherited
since

4.2.0

Type(s)

CacheControllerFactoryInterface