pages/manager/ImportExportHandler.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 //$Id$
00016 
00017 define('IMPORTEXPORT_PLUGIN_CATEGORY', 'importexport');
00018 
00019 import('pages.manager.ManagerHandler');
00020 
00021 class ImportExportHandler extends ManagerHandler {
00025    function ImportExportHandler() {
00026       parent::ManagerHandler();
00027    }
00028    
00029    function importexport($args) {
00030       $this->validate();
00031       $this->setupTemplate(true);
00032 
00033       PluginRegistry::loadCategory(IMPORTEXPORT_PLUGIN_CATEGORY);
00034       $templateMgr =& TemplateManager::getManager();
00035 
00036       if (array_shift($args) === 'plugin') {
00037          $pluginName = array_shift($args);
00038          $plugin =& PluginRegistry::getPlugin(IMPORTEXPORT_PLUGIN_CATEGORY, $pluginName); 
00039          if ($plugin) return $plugin->display($args);
00040       }
00041       $templateMgr->assign_by_ref('plugins', PluginRegistry::getPlugins(IMPORTEXPORT_PLUGIN_CATEGORY));
00042       $templateMgr->assign('helpTopicId', 'conference.currentConferences.importExport');
00043       $templateMgr->display('manager/importexport/plugins.tpl');
00044    }
00045 }
00046 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7