Actions

API16

JInstaller/discover

< 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

Extension discover method Asks each adapter to find extensions


<! removed transcluded page call, red link never existed >

Syntax

discover()


Returns

Array

Defined in

libraries/joomla/installer/installer.php

Importing

jimport( 'joomla.installer.installer' );

Source Body

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

Code Examples


Advertisement