english/libraries/joomla/installer/installer.php
/**
	 * Extension discover method
	 * Asks each adapter to find extensions
	 *
	 * @return  array  JExtension
	 */
Extension discover method
Asks each adapter to find extensions


Extension discover method Asks each adapter to find extensions
public function discover()
	{
		$this->loadAllAdapters();
		$results = Array();
		foreach ($this->_adapters as $adapter)
		{
			if (method_exists($adapter,'discover')) {
				$tmp = $adapter->discover();
				if (is_array($tmp) && count($tmp)) {
					$results = array_merge($results, $tmp);
				}
			}
		}
		return $results;
	}
public function discover ( ) { $ this -> loadAllAdapters ( ) ; $ results = Array ( ) ; foreach ( $ this -> _adapters as $ adapter ) { if ( method_exists ( $ adapter , 'discover' ) ) { $ tmp = $ adapter -> discover ( ) ; if ( is_array ( $ tmp ) && count ( $ tmp ) ) { $ results = array_merge ( $ results , $ tmp ) ; } } } return $ results ; }
Extension discover method
 Asks each adapter to find extensions
Extension discover method Asks each adapter to find extensions
// Joomla! 1.5 installation adapter legacy support // if its an array and has entries // merge it into the system