JArchiveBzip2/ construct
From Joomla! Documentation
< API15:JArchiveBzip2
The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Description[edit]
Constructor tries to load the bz2 extension of not loaded
<! removed transcluded page call, red link never existed >
Syntax[edit]
__construct()
Returns[edit]
void
Defined in[edit]
libraries/joomla/filesystem/archive/bzip2.php
Importing[edit]
jimport( 'joomla.filesystem.archive.bzip2' );
Source Body[edit]
function __construct()
{
// Is bz2 extension loaded? If not try to load it
if (!extension_loaded('bz2')) {
if (JPATH_ISWIN) {
@ dl('php_bz2.dll');
} else {
@ dl('bz2.so');
}
}
}
<! removed transcluded page call, red link never existed >
Examples[edit]
Code Examples[edit]