JInstaller/discover
From Joomla! Documentation
< API16:JInstaller
The "API16" 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]
Extension discover method Asks each adapter to find extensions
<! removed transcluded page call, red link never existed >
Syntax[edit]
discover()
Returns[edit]
Array
Defined in[edit]
libraries/joomla/installer/installer.php
Importing[edit]
jimport( 'joomla.installer.installer' );
Source Body[edit]
function discover()
{
$this->loadAllAdapters();
$results = Array();
foreach ($this->_adapters as $adapter)
{
// Joomla! 1.5 installation adapter legacy support
if (method_exists($adapter,'discover'))
{
$tmp = $adapter->discover();
// if its an array and has entries
if (is_array($tmp) && count($tmp))
{
// merge it into the system
$results = array_merge($results, $tmp);
}
}
}
return $results;
}
<! removed transcluded page call, red link never existed >
Examples[edit]
Code Examples[edit]