Changeset 55694 for trunk/src/wp-includes/class-wpdb.php
- Timestamp:
- 04/27/2023 11:13:36 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wpdb.php
r55431 r55694 2557 2557 * @param string $table Table name. 2558 2558 * @param array $data Data to insert (in column => value pairs). 2559 * Both $data columns and $datavalues should be "raw" (neither should be SQL escaped).2559 * Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped). 2560 2560 * Sending a null value will cause the column to be set to NULL - the corresponding 2561 2561 * format is ignored in this case. 2562 * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data.2563 * If string, that format will be used for all of the values in $data.2562 * @param array|string $format Optional. An array of formats to be mapped to each of the value in `$data`. 2563 * If string, that format will be used for all of the values in `$data`. 2564 2564 * A format is one of '%d', '%f', '%s' (integer, float, string). 2565 * If omitted, all values in $datawill be treated as strings unless otherwise2565 * If omitted, all values in `$data` will be treated as strings unless otherwise 2566 2566 * specified in wpdb::$field_types. Default null. 2567 2567 * @return int|false The number of rows inserted, or false on error. … … 2587 2587 * @param string $table Table name. 2588 2588 * @param array $data Data to insert (in column => value pairs). 2589 * Both $data columns and $datavalues should be "raw" (neither should be SQL escaped).2589 * Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped). 2590 2590 * Sending a null value will cause the column to be set to NULL - the corresponding 2591 2591 * format is ignored in this case. 2592 * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data.2593 * If string, that format will be used for all of the values in $data.2592 * @param array|string $format Optional. An array of formats to be mapped to each of the value in `$data`. 2593 * If string, that format will be used for all of the values in `$data`. 2594 2594 * A format is one of '%d', '%f', '%s' (integer, float, string). 2595 * If omitted, all values in $datawill be treated as strings unless otherwise2595 * If omitted, all values in `$data` will be treated as strings unless otherwise 2596 2596 * specified in wpdb::$field_types. Default null. 2597 2597 * @return int|false The number of rows affected, or false on error. … … 2604 2604 * Helper function for insert and replace. 2605 2605 * 2606 * Runs an insert or replace query based on $typeargument.2606 * Runs an insert or replace query based on `$type` argument. 2607 2607 * 2608 2608 * @since 3.0.0 … … 2614 2614 * @param string $table Table name. 2615 2615 * @param array $data Data to insert (in column => value pairs). 2616 * Both $data columns and $datavalues should be "raw" (neither should be SQL escaped).2616 * Both `$data` columns and `$data` values should be "raw" (neither should be SQL escaped). 2617 2617 * Sending a null value will cause the column to be set to NULL - the corresponding 2618 2618 * format is ignored in this case. 2619 * @param array|string $format Optional. An array of formats to be mapped to each of the value in $data.2620 * If string, that format will be used for all of the values in $data.2619 * @param array|string $format Optional. An array of formats to be mapped to each of the value in `$data`. 2620 * If string, that format will be used for all of the values in `$data`. 2621 2621 * A format is one of '%d', '%f', '%s' (integer, float, string). 2622 * If omitted, all values in $datawill be treated as strings unless otherwise2622 * If omitted, all values in `$data` will be treated as strings unless otherwise 2623 2623 * specified in wpdb::$field_types. Default null. 2624 * @param string $type Optional. Type of operation. Possible values include'INSERT' or 'REPLACE'.2624 * @param string $type Optional. Type of operation. Either 'INSERT' or 'REPLACE'. 2625 2625 * Default 'INSERT'. 2626 2626 * @return int|false The number of rows affected, or false on error.
Note: See TracChangeset
for help on using the changeset viewer.