[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/plugins/plugin/classes/ -> ap_delete.class.php (source)

   1  <?php
   2  class ap_delete extends ap_manage {
   3  
   4      function process() {
   5  
   6          if (!$this->dir_delete(DOKU_PLUGIN.plugin_directory($this->manager->plugin))) {
   7              $this->manager->error = sprintf($this->lang['error_delete'],$this->manager->plugin);
   8          } else {
   9              msg(sprintf($this->lang['deleted'],$this->plugin));
  10              $this->refresh();
  11          }
  12      }
  13  
  14      function html() {
  15          parent::html();
  16  
  17          ptln('<div class="pm_info">');
  18          ptln('<h2>'.$this->lang['deleting'].'</h2>');
  19  
  20          if ($this->manager->error) {
  21              ptln('<div class="error">'.str_replace("\n","<br />",$this->manager->error).'</div>');
  22          } else {
  23              ptln('<p>'.sprintf($this->lang['deleted'],$this->plugin).'</p>');
  24          }
  25          ptln('</div>');
  26      }
  27  }
  28  


Generated: Sun Jan 19 03:00:05 2014 Cross-referenced by PHPXref 0.7