- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/importExport/inc/class.dc.ieModule.php
r1553 r2566 18 18 public $name; 19 19 public $description; 20 20 21 21 protected $import_url; 22 22 protected $export_url; 23 23 protected $core; 24 24 25 25 public function __construct($core) 26 26 { 27 27 $this->core =& $core; 28 28 $this->setInfo(); 29 29 30 30 if (!in_array($this->type,array('import','export'))) { 31 31 throw new Exception(sprintf('Unknow type for module %s',get_class($this))); 32 32 } 33 33 34 34 if (!$this->name) { 35 35 $this->name = get_class($this); 36 36 } 37 37 38 38 $this->id = get_class($this); 39 39 $this->url = sprintf('plugin.php?p=importExport&type=%s&module=%s',$this->type,$this->id); 40 40 } 41 41 42 42 public function init() 43 43 { 44 44 } 45 45 46 46 abstract protected function setInfo(); 47 47 48 48 final public function getURL($escape=false) 49 49 { 50 50 return $escape ? html::escapeHTML($this->url) : $this->url; 51 51 } 52 52 53 53 abstract public function process($do); 54 54 55 55 abstract public function gui(); 56 56 57 57 protected function progressBar($percent) 58 58 { … … 63 63 return '<div class="ie-progress"><div style="width:'.$percent.'%">'.$percent.' %</div></div>'; 64 64 } 65 65 66 66 protected function autoSubmit() 67 67 { 68 68 return form::hidden(array('autosubmit'),1); 69 69 } 70 70 71 71 protected function congratMessage() 72 72 { … … 78 78 } 79 79 } 80 ?>
Note: See TracChangeset
for help on using the changeset viewer.