Parsed: 131686
<?php /** * WordPress database access abstraction class. * * Original code from {@link http://php.justinvincent.com Justin Vincent (justin@visunet.ie)} * * @package WordPress * @subpackage Database * @since 0.71 */ /** * @since 0.71 */ define( 'EZSQL_VERSION', 'WP1.25' ); /** * @since 0.71 */ define( 'OBJECT', 'OBJECT' ); // phpcs:ignore Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase define( 'object', 'OBJECT' ); // Back compat. /** * @since 2.5.0 */ define( 'OBJECT_K', 'OBJECT_K' ); /** * @since 0.71 */ define( 'ARRAY_A', 'ARRAY_A' ); /** * @since 0.71 */ define( 'ARRAY_N', 'ARRAY_N' ); #[AllowDynamicProperties] /* class wpdb */ /* function wpdb::__construct() – Connects to the database server and selects a database. */ /* function wpdb::__get() – Makes private properties readable for backward compatibility. */ /* function wpdb::__set() – Makes private properties settable for backward compatibility. */ /* function wpdb::__isset() – Makes private properties check-able for backward compatibility. */ /* function wpdb::__unset() – Makes private properties un-settable for backward compatibility. */ /* function wpdb::init_charset() – Set $this->charset and $this->collate */ /* function wpdb::determine_charset() – Determines the best charset and collation to use given a charset and collation. */ /* function wpdb::set_charset() – Sets the connection’s character set. */ /* function wpdb::set_sql_mode() – Changes the current SQL mode, and ensures its WordPress compatibility. */ /* function wpdb::set_prefix() – Sets the table prefix for the WordPress tables. */ /* function wpdb::set_blog_id() – Sets blog id. */ /* function wpdb::get_blog_prefix() – Gets blog prefix. */ /* function wpdb::tables() – Returns an array of WordPress tables. */ /* function wpdb::select() – Selects a database using the current or provided database connection. */ /* function wpdb::_weak_escape() – Do not use, deprecated. */ /* function wpdb::_real_escape() – Real escape using mysqli_real_escape_string(). */ /* function wpdb::_escape() – Escape data. Works on arrays. */ /* function wpdb::escape() – Do not use, deprecated. */ /* function wpdb::escape_by_ref() – Escapes content by reference for insertion into the database, for security. */ /* function wpdb::quote_identifier() – Quotes an identifier for a MySQL database, e.g. table/field names. */ /* function wpdb::_escape_identifier_value() – Escapes an identifier value without adding the surrounding quotes. */ /* function wpdb::prepare() – Prepares a SQL query for safe execution. */ /* function wpdb::esc_like() – First half of escaping for LIKE special characters % and _ before preparing for MySQL. */ /* function wpdb::print_error() – Prints SQL/DB error. */ /* function wpdb::show_errors() – Enables showing of database errors. */ /* function wpdb::hide_errors() – Disables showing of database errors. */ /* function wpdb::suppress_errors() – Whether to suppress database errors. */ /* function wpdb::flush() – Kills cached query results. */ /* function wpdb::db_connect() – Connects to and selects database. */ /* function wpdb::parse_db_host() – Parses the DB_HOST setting to interpret it for mysqli_real_connect(). */ /* function wpdb::check_connection() – Checks that the connection to the database is still up. If not, try to reconnect. */ /* function wpdb::query() – Performs a database query, using current database connection. */ /* function wpdb::_do_query() – Internal function to perform the mysqli_query() call. */ /* function wpdb::log_query() – Logs query data. */ /* function wpdb::placeholder_escape() – Generates and returns a placeholder escape string for use in queries returned by ::prepare(). */ /* function wpdb::add_placeholder_escape() – Adds a placeholder escape string, to escape anything that resembles a printf() placeholder. */ /* function wpdb::remove_placeholder_escape() – Removes the placeholder escape strings from a query. */ /* function wpdb::insert() – Insert a row into a table. */ /* function wpdb::replace() – Replace a row into a table. */ /* function wpdb::_insert_replace_helper() – Helper function for insert and replace. */ /* function wpdb::update() – Update a row in the table */ /* function wpdb::delete() – Delete a row in the table */ /* function wpdb::process_fields() – Processes arrays of field/value pairs and field formats. */ /* function wpdb::process_field_formats() – Prepares arrays of value/format pairs as passed to wpdb CRUD methods. */ /* function wpdb::process_field_charsets() – Adds field charsets to field/value/format arrays generated by the wpdb::process_field_formats() method. */ /* function wpdb::process_field_lengths() – For string fields, record the maximum string length that field can safely save. */ /* function wpdb::get_var() – Retrieves one variable from the database. */ /* function wpdb::get_row() – Retrieves one row from the database. */ /* function wpdb::get_col() – Retrieves one column from the database. */ /* function wpdb::get_results() – Retrieves an entire SQL result set from the database (i.e., many rows). */ /* function wpdb::get_table_charset() – Retrieves the character set for the given table. */ /* function wpdb::get_col_charset() – Retrieves the character set for the given column. */ /* function wpdb::get_col_length() – Retrieve the maximum string length allowed in a given column. */ /* function wpdb::check_ascii() – Checks if a string is ASCII. */ /* function wpdb::check_safe_collation() – Checks if the query is accessing a collation considered safe on the current version of MySQL. */ /* function wpdb::strip_invalid_text() – Strips any invalid characters based on value/charset pairs. */ /* function wpdb::strip_invalid_text_from_query() – Strips any invalid characters from the query. */ /* function wpdb::strip_invalid_text_for_column() – Strips any invalid characters from the string for a given table and column. */ /* function wpdb::get_table_from_query() – Find the first table name referenced in a query. */ /* function wpdb::load_col_info() – Loads the column metadata from the last query. */ /* function wpdb::get_col_info() – Retrieves column metadata from the last query. */ /* function wpdb::timer_start() – Starts the timer, for debugging purposes. */ /* function wpdb::timer_stop() – Stops the debugging timer. */ /* function wpdb::bail() – Wraps errors in a nice header and footer and dies. */ /* function wpdb::close() – Closes the current database connection. */ /* function wpdb::check_database_version() – Determines whether MySQL database is at least the required minimum version. */ /* function wpdb::supports_collation() – Whether the database supports collation. */ /* function wpdb::get_charset_collate() – The database character collate. */ /* function wpdb::has_cap() – Determines whether the database or WPDB supports a particular feature. */ /* function wpdb::get_caller() – Retrieve the name of the function that called wpdb. */ /* function wpdb::db_version() – Retrieves the MySQL server version. */ /* function wpdb::db_server_info() – Returns the version of the MySQL server. */