API16

API16:JStream/get meta data

From Joomla! Documentation

Revision as of 02:07, 25 March 2017 by JoomlaWikiBot (talk | contribs) (preparing for archive only)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Get the stream metadata http://au.php.net/manual/en/function.stream-get-meta-data.php array header/metadata




Syntax

get_meta_data()


Returns

array header/metadata

Defined in

libraries/joomla/filesystem/stream.php

Importing

jimport( 'joomla.filesystem.stream' );

Source Body

function get_meta_data()
{
        if(!$this->_fh)
        {
                $this->setError(JText::_('File not open'));
                return false;
        }
        return stream_get_meta_data($this->_fh);
}



Examples

Code Examples