API16

JStream/ destruct: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Destructor <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{De...
 
m clean up
Line 2: Line 2:
Destructor  
Destructor  


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JStream/__destruct|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JStream/__destruct}}
 
{{subst:Description:JStream/__destruct}}


===Syntax===
===Syntax===
Line 26: Line 24:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JStream/__destruct|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JStream/__destruct}}
</span>
{{SeeAlso:JStream/__destruct}}


===Examples===
===Examples===

Revision as of 14:26, 24 March 2017

Description

Destructor


{{subst:Description:JStream/__destruct}}

Syntax

__destruct()


Defined in

libraries/joomla/filesystem/stream.php

Importing

jimport( 'joomla.filesystem.stream' );

Source Body

function __destruct()
{
        // attempt to close on destruction if there is a file handle
        if($this->_fh) @$this->close();
}


{{subst:SeeAlso:JStream/__destruct}}

Examples

<CodeExamplesForm />