JStream/ destruct: Difference between revisions
From Joomla! Documentation
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 | ||
{{Description:JStream/__destruct}} | |||
{{subst:Description:JStream/__destruct}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 26: | Line 24: | ||
</source> | </source> | ||
{{subst:SeeAlso:JStream/__destruct}} | |||
{{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 />