Changeset 55398 for trunk/src/wp-includes/class-wpdb.php
- Timestamp:
- 02/21/2023 04:37:03 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wpdb.php
r55158 r55398 1073 1073 * 1074 1074 * @param int $blog_id 1075 * @param int $network_id Optional. 1075 * @param int $network_id Optional. Network ID. Default 0. 1076 1076 * @return int Previous blog ID. 1077 1077 */ … … 1102 1102 * @since 3.0.0 1103 1103 * 1104 * @param int $blog_id Optional. 1104 * @param int $blog_id Optional. Blog ID to retrieve the table prefix for. 1105 * Defaults to the current blog ID. 1105 1106 * @return string Blog prefix. 1106 1107 */ … … 1221 1222 * 1222 1223 * @param string $db Database name. 1223 * @param mysqli|resource $dbh Optional database connection. 1224 * @param mysqli|resource $dbh Optional. Database connection. 1225 * Defaults to the current database handle. 1224 1226 */ 1225 1227 public function select( $db, $dbh = null ) { … … 2562 2564 * A format is one of '%d', '%f', '%s' (integer, float, string). 2563 2565 * If omitted, all values in $data will be treated as strings unless otherwise 2564 * specified in wpdb::$field_types. 2566 * specified in wpdb::$field_types. Default null. 2565 2567 * @return int|false The number of rows inserted, or false on error. 2566 2568 */ … … 2592 2594 * A format is one of '%d', '%f', '%s' (integer, float, string). 2593 2595 * If omitted, all values in $data will be treated as strings unless otherwise 2594 * specified in wpdb::$field_types. 2596 * specified in wpdb::$field_types. Default null. 2595 2597 * @return int|false The number of rows affected, or false on error. 2596 2598 */ … … 2619 2621 * A format is one of '%d', '%f', '%s' (integer, float, string). 2620 2622 * If omitted, all values in $data will be treated as strings unless otherwise 2621 * specified in wpdb::$field_types. 2623 * specified in wpdb::$field_types. Default null. 2622 2624 * @param string $type Optional. Type of operation. Possible values include 'INSERT' or 'REPLACE'. 2623 2625 * Default 'INSERT'. … … 2685 2687 * A format is one of '%d', '%f', '%s' (integer, float, string). 2686 2688 * If omitted, all values in $data will be treated as strings unless otherwise 2687 * specified in wpdb::$field_types. 2689 * specified in wpdb::$field_types. Default null. 2688 2690 * @param array|string $where_format Optional. An array of formats to be mapped to each of the values in $where. 2689 2691 * If string, that format will be used for all of the items in $where. 2690 2692 * A format is one of '%d', '%f', '%s' (integer, float, string). 2691 * If omitted, all values in $where will be treated as strings. 2693 * If omitted, all values in $where will be treated as strings. Default null. 2692 2694 * @return int|false The number of rows updated, or false on error. 2693 2695 */ … … 2761 2763 * A format is one of '%d', '%f', '%s' (integer, float, string). 2762 2764 * If omitted, all values in $data will be treated as strings unless otherwise 2763 * specified in wpdb::$field_types. 2765 * specified in wpdb::$field_types. Default null. 2764 2766 * @return int|false The number of rows deleted, or false on error. 2765 2767 */ … … 2968 2970 * 2969 2971 * @param string|null $query Optional. SQL query. Defaults to null, use the result from the previous query. 2970 * @param int $x Optional. Column of value to return. Indexed from 0. 2971 * @param int $y Optional. Row of value to return. Indexed from 0. 2972 * @param int $x Optional. Column of value to return. Indexed from 0. Default 0. 2973 * @param int $y Optional. Row of value to return. Indexed from 0. Default 0. 2972 2974 * @return string|null Database query result (as string), or null on failure. 2973 2975 */ … … 3003 3005 * correspond to an stdClass object, an associative array, or a numeric array, 3004 3006 * respectively. Default OBJECT. 3005 * @param int $y Optional. Row to return. Indexed from 0. 3007 * @param int $y Optional. Row to return. Indexed from 0. Default 0. 3006 3008 * @return array|object|null|void Database query result in format specified by $output or null on failure. 3007 3009 */ … … 3047 3049 * 3048 3050 * @param string|null $query Optional. SQL query. Defaults to previous query. 3049 * @param int $x Optional. Column to return. Indexed from 0. 3051 * @param int $x Optional. Column to return. Indexed from 0. Default 0. 3050 3052 * @return array Database query result. Array indexed from 0 by SQL result row number. 3051 3053 */ … … 3084 3086 * return an associative array of row objects keyed by the value 3085 3087 * of each row's first column's value. Duplicate keys are discarded. 3088 * Default OBJECT. 3086 3089 * @return array|object|null Database query results. 3087 3090 */
Note: See TracChangeset
for help on using the changeset viewer.