getExtension() === 'php') { array_push(self::$link_array, self::$libs.AH_DS.$result); } } // end foreach loop } // end connect_lib /** * Configuration::connect_model() * * Loops through content of model directory and adds files to array * * @return adds to array */ private static function connect_model() { foreach (new DirectoryIterator(AH_PLUGINNAME_PATH.self::$model) as $result) { if ($result->getExtension() === 'php') { array_push(self::$link_array, self::$model.AH_DS.$result); } // end preg_match } // end foreach loop } // end connect_model /** * Configuration::connect_controller() * * Loops through content of controller directory and adds files to array * * @return adds to array */ private static function connect_controller() { foreach (new DirectoryIterator(AH_PLUGINNAME_PATH.self::$controller) as $result) { if ($result->getExtension() === 'php') { array_push(self::$link_array, self::$controller.AH_DS.$result); } // end preg_match } // end foreach loop } // end connect_controller /** * Configuration::connect_view() * * Loops through content of view directory and adds files to array * * @return adds to array */ private static function connect_view() { foreach (new DirectoryIterator(AH_PLUGINNAME_PATH.self::$view) as $result) { if ($result->getExtension() === 'php') { array_push(self::$link_array, self::$view.AH_DS.$result); } // end preg_match } // end foreach loop } // end connect_view /** * Configuration::total_files() * * @return array */ public static function total_files() { return self::$link_array; } } // end class new \Config\Configuration; register_uninstall_hook(__FILE__, 'unistall'); function unistall() { $sql1 = "DROP table if exists ".AH_FEED_DETAILS_TABLE; $sql2 = "DROP table if exists ".AH_TOTAL_FEEDS_TABLES; global $wpdb; delete_option('affiliate_hoover_plugin_options'); $wpdb->query($sql1); $wpdb->query($sql2); }