mtekk_adminKit_uninstaller

Breadcrumb NavXT abstract plugin uninstaller class.

Defined (1)

The class is defined in the following location(s).

/includes/class.mtekk_adminkit_uninstaller.php  
  1. abstract class mtekk_adminKit_uninstaller 
  2. protected $unique_prefix = ''; 
  3. protected $plugin_basename = null; 
  4. protected $_uninstall_result = false; 
  5. /** 
  6. * get plugin path 
  7. *  
  8. * @return string full path to plugin file 
  9. */ 
  10. protected function _get_plugin_path() 
  11. return sprintf('%s/%s', dirname(dirname(__FILE__)), $this->plugin_basename);  
  12.  
  13. /** 
  14. * constructor  
  15. *  
  16. * @param array $options class options 
  17. * plugin =>  
  18. */ 
  19. public function __construct() 
  20. $this->_uninstall_result = $this->uninstall();  
  21.  
  22. /** 
  23. * Result Getter 
  24. *  
  25. * @return bool wether or not uninstall did run successfull. 
  26. */ 
  27. public function get_result() 
  28. return $this->_uninstall_result;  
  29.  
  30. public function is_installed() 
  31. return ((get_option($this->unique_prefix . '_options') !== false) 
  32. && (get_option($this->unique_prefix . '_options_bk') !== false) 
  33. && (get_option($this->unique_prefix . '_version') !== false) 
  34. && (get_site_option($this->unique_prefix . '_options') !== false) 
  35. && (get_site_option($this->unique_prefix . '_options_bk') !== false) 
  36. && (get_site_option($this->unique_prefix . '_version') !== false)); 
  37. } /// class bcn_uninstaller_abstract