API16

API16:JStream/ destruct

From Joomla! Documentation

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