API15

JDocument/setMimeEncoding

From Joomla! Documentation

< API15:JDocument
Revision as of 17:18, 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)

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

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

[Edit Descripton]

Template:Description:JDocument/setMimeEncoding

Syntax[edit]

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

Returns[edit]

void

Defined in[edit]

libraries/joomla/document/document.php

Importing[edit]

jimport( 'joomla.document.document' );

Source Body[edit]

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

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

Examples[edit]

<CodeExamplesForm />