示例#1
0
 /**
  * Register as a block plugin, even though this is a generic plugin.
  * This will allow the plugin to behave as a block plugin, i.e. to
  * have layout tasks performed on it.
  * @param $hookName string
  * @param $args array
  */
 function callbackLoadCategory($hookName, $args)
 {
     $category =& $args[0];
     $plugins =& $args[1];
     switch ($category) {
         case 'importexport':
             $this->import('SwordImportExportPlugin');
             $importExportPlugin = new SwordImportExportPlugin();
             $plugins[$importExportPlugin->getSeq()][$importExportPlugin->getPluginPath()] =& $importExportPlugin;
             break;
     }
     return false;
 }
示例#2
0
 /**
  * Register as a block plugin, even though this is a generic plugin.
  * This will allow the plugin to behave as a block plugin, i.e. to
  * have layout tasks performed on it.
  * @param $hookName string
  * @param $args array
  */
 function callbackLoadCategory($hookName, $args)
 {
     $category =& $args[0];
     $plugins =& $args[1];
     switch ($category) {
         case 'importexport':
             // This plugin is only available on PHP5.x.
             if (!checkPhpVersion('5.0.0')) {
                 break;
             }
             $this->import('SwordImportExportPlugin');
             $importExportPlugin = new SwordImportExportPlugin($this->getName());
             $plugins[$importExportPlugin->getSeq()][$importExportPlugin->getPluginPath()] =& $importExportPlugin;
             break;
     }
     return false;
 }