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
- class C_NextGen_Data_Installer extends C_NggLegacy_Installer
- {
- public function get_registry()
- {
- return C_Component_Registry::get_instance();
- }
- public function install()
- {
- $this->remove_table_extra_options();
- }
- public function remove_table_extra_options()
- {
- global $wpdb;
- $likes = array('option_name LIKE \'%ngg_gallery%\'', 'option_name LIKE \'%ngg_pictures%\'', 'option_name LIKE \'%ngg_album%\'');
- $sql = "DELETE FROM {$wpdb->options} WHERE " . implode(' OR ', $likes);
- $wpdb->query($sql);
- }
- public function uninstall($hard = FALSE)
- {
- if ($hard) {
- }
- }
- }