API15

JDocument/setLineEnd: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Sets the line end style to Windows, Mac, Unix or a custom string. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JDocument/setLine...
 
m removing red link to edit, no existant pages
Line 3: Line 3:


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


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


===Syntax===
===Syntax===
Line 51: Line 51:


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


===Examples===
===Examples===
Line 66: Line 66:
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Revision as of 14:05, 12 May 2013

Description

Sets the line end style to Windows, Mac, Unix or a custom string.

[<! removed edit link to red link >]

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

Syntax

setLineEnd($style)
Parameter Name Default Value Description
$style $style "win", "mac", "unix" or custom string. public

Returns

void

Defined in

libraries/joomla/document/document.php

Importing

jimport( 'joomla.document.document' );

Source Body

function setLineEnd($style)
{
        switch ($style) {
                case 'win':
                        $this->_lineEnd = "\15\12";
                        break;
                case 'unix':
                        $this->_lineEnd = "\12";
                        break;
                case 'mac':
                        $this->_lineEnd = "\15";
                        break;
                default:
                        $this->_lineEnd = $style;
        }
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

<CodeExamplesForm />