API16

JDocument/setMimeEncoding: Difference between revisions

From Joomla! Documentation

m removing red link to edit, no existant pages
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
Sets the document MIME encoding that is sent to the browser.
Sets the document MIME encoding that is sent to the browser.


<span class="editsection" style="font-size:76%;">
 
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>


<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >
Line 37: Line 35:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
<! removed transcluded page call, red link never existed >
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=setMimeEncoding
  category=setMimeEncoding
  category=JDocument
  category=JDocument
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:32, 25 March 2017

Description

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


<! removed transcluded page call, red link never existed >

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);
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples