core =& $core; $this->setInfo(); $this->id = get_class($this); if (!$this->type) { throw new Exception('No type for module'.$this->id); } $this->url = 'plugin.php?p=importExport&t='.$this->type.'&f='.$this->id; if (!$this->name) { $this->name = get_class($this); } } public function init() { } protected function setInfo() { } final public function getURL($escape=false) { if ($escape) { return html::escapeHTML($this->url); } return $this->url; } public function process($do) { } public function gui() { } protected function progressBar($percent) { $percent = ceil($percent); if ($percent > 100) { $percent = 100; } return '
'.__('Your blog has been successfully imported. Welcome on Dotclear 2!').'
'. ''; } } ?>