C_NextGen_Data_Installer

The NextGEN Gallery C NextGen Data Installer class.

Defined (1)

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

/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php  
  1. class C_NextGen_Data_Installer extends C_NggLegacy_Installer 
  2. public function get_registry() 
  3. return C_Component_Registry::get_instance(); 
  4. public function install() 
  5. $this->remove_table_extra_options(); 
  6. public function remove_table_extra_options() 
  7. global $wpdb; 
  8. $likes = array('option_name LIKE \'%ngg_gallery%\'', 'option_name LIKE \'%ngg_pictures%\'', 'option_name LIKE \'%ngg_album%\''); 
  9. $sql = "DELETE FROM {$wpdb->options} WHERE " . implode(' OR ', $likes); 
  10. $wpdb->query($sql); 
  11. public function uninstall($hard = FALSE) 
  12. if ($hard) {