Table of Contents

getContentType

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocumentRenderer Method getContentType Reference getContentType() Never Work in Progress

Returns the content type of the renderer.

The method returns a string containing the mime type of the document.

Syntax

string getContentType ()

Examples

Example

jimport( 'joomla.document.renderer' );
jimport( 'joomla.document.html.renderer.module' );
$renderer = new JDocumentRendererModule( $document );
echo $renderer->getContentType();

might produce:

Result

text/html