Example #1
0
 /**
  * Sets the import plugin properties.
  * Called in the constructor.
  *
  * @return void
  */
 protected function setProperties()
 {
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ImportPluginProperties.class.php";
     $importPluginProperties = new ImportPluginProperties();
     $importPluginProperties->setText(__('XML'));
     $importPluginProperties->setExtension('xml');
     $importPluginProperties->setMimeType('text/xml');
     $importPluginProperties->setOptions(array());
     $importPluginProperties->setOptionsText(__('Options'));
     $this->properties = $importPluginProperties;
 }
 /**
  * Sets the import plugin properties.
  * Called in the constructor.
  *
  * @return void
  */
 protected function setProperties()
 {
     $this->_setAnalyze(false);
     if ($GLOBALS['plugin_param'] !== 'table') {
         $this->_setAnalyze(true);
     }
     $props = 'libraries/properties/';
     include_once "{$props}/plugins/ImportPluginProperties.class.php";
     $importPluginProperties = new ImportPluginProperties();
     $importPluginProperties->setText(__('MediaWiki Table'));
     $importPluginProperties->setExtension('txt');
     $importPluginProperties->setMimeType('text/plain');
     $importPluginProperties->setOptions(array());
     $importPluginProperties->setOptionsText(__('Options'));
     $this->properties = $importPluginProperties;
 }