API16

API16:JDocument/setMimeEncoding

From Joomla! Documentation

Revision as of 22:44, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Sets the document MIME encoding that is sent to the browser. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JDocument/setMimeEncod...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Sets the document MIME encoding that is sent to the browser.

[Edit Descripton]

Template:Description:JDocument/setMimeEncoding

Syntax

setMimeEncoding($type= 'text/html')
Parameter Name Default Value Description
$type 'text/html' $type public

Returns

void

Defined in

libraries/joomla/document/document.php

Importing

jimport( 'joomla.document.document' );

Source Body

function setMimeEncoding($type = 'text/html') {
        $this->_mime = strtolower($type);
}

[Edit See Also] Template:SeeAlso:JDocument/setMimeEncoding

Examples

<CodeExamplesForm />