API16

JDocument/setMimeEncoding: Difference between revisions

From Joomla! Documentation

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...
 
m preparing for archive only
 
(2 intermediate revisions 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>[</nowiki>[[Description:JDocument/setMimeEncoding|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JDocument/setMimeEncoding}}
 
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 37: Line 35:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JDocument/setMimeEncoding|Edit See Also]]<nowiki>]</nowiki>
<! removed transcluded page call, red link never existed >
</span>
{{SeeAlso:JDocument/setMimeEncoding}}


===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=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API16]]

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