API16

JStream/ destruct: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 4: Line 4:




{{subst:Description:JStream/__destruct}}
 


===Syntax===
===Syntax===
Line 25: Line 25:




{{subst:SeeAlso:JStream/__destruct}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=__destruct
  category=__destruct
  category=JStream
  category=JStream
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:06, 25 March 2017

Description

Destructor



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



Examples

Code Examples