JStream/get meta data: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 6: | Line 6: | ||
===Syntax=== | ===Syntax=== | ||
| Line 34: | Line 34: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=get_meta_data | category=get_meta_data | ||
category=JStream | category=JStream | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 02:07, 25 March 2017
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