| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocumentRenderer |
getContentType |
getContentType() |
Never | Work in Progress |
Returns the content type of the renderer.
The method returns a string containing the mime type of the document.
string getContentType ()
Example
jimport( 'joomla.document.renderer' ); jimport( 'joomla.document.html.renderer.module' ); $renderer = new JDocumentRendererModule( $document ); echo $renderer->getContentType();
might produce:
Result
text/html