fs = new Utils\Filesystem( $this ); $this->assets = new Utils\Assets( $this ); $this->db = new Utils\Database(); $this->cache = new Utils\Cache(); $this->networkCache = new Utils\NetworkCache(); $this->optionsCache = new Options\Cache(); } /** * Get all the DB tables with prefix. * * @since 4.2.5 * * @return array An array of tables. */ public function getDbTables() { global $wpdb; $tables = []; foreach ( $this->aioseoTables as $tableName ) { $tables[] = $wpdb->prefix . $tableName; } return $tables; } /** * Check if the current request is uninstalling (deleting) AIOSEO. * * @since 4.3.7 * * @return bool Whether AIOSEO is being uninstalled/deleted or not. */ public function isUninstalling() { if ( defined( 'AIOSEO_FILE' ) && defined( 'WP_UNINSTALL_PLUGIN' ) ) { // Make sure `plugin_basename()` exists. include_once ABSPATH . 'wp-admin/includes/plugin.php'; return WP_UNINSTALL_PLUGIN === plugin_basename( AIOSEO_FILE ); } return false; } }