Changeset 11277

Show
Ignore:
Timestamp:
07/20/07 10:01:57 (1 year ago)
Author:
bergie
Message:

Started moving request handler plugin configurations from midcom core to manifests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/baseclasses/components/request.php

    r6194 r11277  
    12081208         
    12091209        // Centralized admin panel functionalities 
     1210         
     1211        // Load plugins registered via component manifests 
     1212        $manifest_plugins = array(); 
     1213        $customdata = $_MIDCOM->componentloader->get_all_manifest_customdata('request_handler_plugin'); 
     1214        foreach ($customdata as $component => $plugin_config) 
     1215        { 
     1216            $manifest_plugins[$component] = $plugin_config; 
     1217        } 
     1218         
     1219        $hardcoded_plugins = array 
     1220        ( 
     1221            'asgard' => array 
     1222            ( 
     1223                'class' => 'midgard_admin_asgard_plugin', 
     1224                'src' => 'file:/midgard/admin/asgard/plugin.php', 
     1225                'name' => 'Asgard', 
     1226                'config' => null, 
     1227            ),             
     1228            'users' => array 
     1229            ( 
     1230                'class' => 'org_openpsa_contacts_mfa', 
     1231                'src' => 'file:/org/openpsa/contacts/mfa.php', 
     1232                'name' => 'User management', 
     1233                'config' => null, 
     1234            ), 
     1235            'sitetemplate' => array 
     1236            ( 
     1237                'class' => 'midgard_admin_sitewizard_sitetemplate', 
     1238                'src' => 'file:/midgard/admin/sitewizard/sitetemplate.php', 
     1239                'name' => 'Site template management', 
     1240                'config' => null, 
     1241            ), 
     1242            'styleeditor' => array 
     1243            ( 
     1244                'class' => 'midcom_admin_styleeditor_viewer', 
     1245                'src' => 'file:/midcom/admin/styleeditor/viewer.php', 
     1246                'name' => 'Style editing', 
     1247                'config' => null, 
     1248            ), 
     1249        ); 
     1250 
    12101251        $this->register_plugin_namespace 
    12111252        ( 
    12121253            '__mfa', 
    1213             array 
    1214             ( 
    1215                 'asgard' => array 
    1216                 ( 
    1217                     'class' => 'midgard_admin_asgard_plugin', 
    1218                     'src' => 'file:/midgard/admin/asgard/plugin.php', 
    1219                     'name' => 'Asgard', 
    1220                     'config' => null, 
    1221                 ),             
    1222                 'users' => array 
    1223                 ( 
    1224                     'class' => 'org_openpsa_contacts_mfa', 
    1225                     'src' => 'file:/org/openpsa/contacts/mfa.php', 
    1226                     'name' => 'User management', 
    1227                     'config' => null, 
    1228                 ), 
    1229                 'replication' => array 
    1230                 ( 
    1231                     'class' => 'midcom_helper_replicator_manager', 
    1232                     'src' => 'file:/midcom/helper/replicator/manager.php', 
    1233                     'name' => 'Replication management', 
    1234                     'config' => null, 
    1235                 ), 
    1236                 'sitetemplate' => array 
    1237                 ( 
    1238                     'class' => 'midgard_admin_sitewizard_sitetemplate', 
    1239                     'src' => 'file:/midgard/admin/sitewizard/sitetemplate.php', 
    1240                     'name' => 'Site template management', 
    1241                     'config' => null, 
    1242                 ), 
    1243                 'styleeditor' => array 
    1244                 ( 
    1245                     'class' => 'midcom_admin_styleeditor_viewer', 
    1246                     'src' => 'file:/midcom/admin/styleeditor/viewer.php', 
    1247                     'name' => 'Style editing', 
    1248                     'config' => null, 
    1249                 ), 
    1250             ) 
     1254            array_merge($hardcoded_plugins, $manifest_plugins) 
    12511255        ); 
    12521256    } 
  • trunk/midcom/midcom.helper.replicator/config/manifest.inc

    r5837 r11277  
    4848    ), 
    4949  ), 
    50   'customdata' =>  
    51   array ( 
    52     'midcom.services.cron' =>  
    53     array ( 
    54       0 =>  
    55       array ( 
    56         'handler' => 'midcom_helper_replicator_cron_processqueue', 
    57         'recurrence' => MIDCOM_CRON_MINUTE, 
    58       ), 
    59       1 =>  
    60       array ( 
    61         'handler' => 'midcom_helper_replicator_cron_queuenondba', 
    62         'recurrence' => MIDCOM_CRON_HOUR, 
    63       ), 
     50  'customdata' => array  
     51    ( 
     52        'request_handler_plugin' => array 
     53        ( 
     54            'class' => 'midcom_helper_replicator_manager', 
     55            'src' => 'file:/midcom/helper/replicator/manager.php', 
     56            'name' => 'Replication management', 
     57            'config' => null, 
     58        ), 
     59        'midcom.services.cron' => array 
     60        ( 
     61            0 => array  
     62            ( 
     63                'handler' => 'midcom_helper_replicator_cron_processqueue', 
     64                'recurrence' => MIDCOM_CRON_MINUTE, 
     65            ), 
     66            1 => array  
     67            ( 
     68                'handler' => 'midcom_helper_replicator_cron_queuenondba', 
     69                'recurrence' => MIDCOM_CRON_HOUR, 
     70            ), 
     71        ), 
    6472    ), 
    65   ), 
  • trunk/midcom/midcom.helper.replicator/style/midcom-helper-replicator-list.php

    r5001 r11277  
    3434} 
    3535 
    36 $prefix = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX) . '__mfa/replication/'; 
     36$prefix = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX) . '__mfa/midcom.helper.replicator/'; 
    3737if (count($data['subscriptions']) > 0) 
    3838{