function test_getFallbackHandler()
 {
     $this->assertFalse(class_exists('Plugins_tests'));
     $oHandler = OX_Component::getFallbackHandler('tests');
     $this->assertIsA($oHandler, 'Plugins_tests');
     $this->assertFalse($oHandler->enabled);
     $this->assertEqual($oHandler->extension, 'tests');
 }
    $aBanner['height'] = '';
    $aBanner['htmltemplate'] = '';
    $aBanner['description'] = '';
    $aBanner['comments'] = '';
    $aBanner['contenttype'] = '';
    $aBanner['adserver'] = '';
    $aBanner['keyword'] = '';
    $aBanner["weight"] = $pref['default_banner_weight'];
    $aBanner['hardcoded_links'] = array();
    $aBanner['hardcoded_targets'] = array();
}
if ($ext_bannertype) {
    list($extension, $group, $plugin) = explode(':', $ext_bannertype);
    $oComponent =& OX_Component::factory($extension, $group, $plugin);
    if (!$oComponent) {
        $oComponent = OX_Component::getFallbackHandler($extension);
    }
    $formDisabled = !$oComponent || !$oComponent->enabled;
}
if (!$ext_bannertype && $type && !in_array($type, array('sql', 'web', 'url', 'html', 'txt'))) {
    list($extension, $group, $plugin) = explode('.', $type);
    $oComponent =& OX_Component::factoryByComponentIdentifier($extension, $group, $plugin);
    $formDisabled = !$oComponent || !$oComponent->enabled;
    if ($oComponent) {
        $ext_bannertype = $type;
        $type = $oComponent->getStorageType();
    } else {
        $ext_bannertype = '';
        $type = '';
    }
}