@@ -1072,7 +1072,7 @@ public function set_prefix( $prefix, $set_table_names = true ) {
1072
1072
* @since 3.0.0
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
*/
1078
1078
public function set_blog_id ( $ blog_id , $ network_id = 0 ) {
@@ -1101,7 +1101,8 @@ public function set_blog_id( $blog_id, $network_id = 0 ) {
1101
1101
*
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
*/
1107
1108
public function get_blog_prefix ( $ blog_id = null ) {
@@ -1220,7 +1221,8 @@ public function tables( $scope = 'all', $prefix = true, $blog_id = 0 ) {
1220
1221
* @since 0.71
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 ) {
1226
1228
if ( is_null ( $ dbh ) ) {
@@ -2561,7 +2563,7 @@ public function remove_placeholder_escape( $query ) {
2561
2563
* If string, that format will be used for all of the values in $data.
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
*/
2567
2569
public function insert ( $ table , $ data , $ format = null ) {
@@ -2591,7 +2593,7 @@ public function insert( $table, $data, $format = null ) {
2591
2593
* If string, that format will be used for all of the values in $data.
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
*/
2597
2599
public function replace ( $ table , $ data , $ format = null ) {
@@ -2618,7 +2620,7 @@ public function replace( $table, $data, $format = null ) {
2618
2620
* If string, that format will be used for all of the values in $data.
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'.
2624
2626
* @return int|false The number of rows affected, or false on error.
@@ -2684,11 +2686,11 @@ public function _insert_replace_helper( $table, $data, $format = null, $type = '
2684
2686
* If string, that format will be used for all of the values in $data.
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
*/
2694
2696
public function update ( $ table , $ data , $ where , $ format = null , $ where_format = null ) {
@@ -2760,7 +2762,7 @@ public function update( $table, $data, $where, $format = null, $where_format = n
2760
2762
* If string, that format will be used for all of the items in $where.
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
*/
2766
2768
public function delete ( $ table , $ where , $ where_format = null ) {
@@ -2967,8 +2969,8 @@ protected function process_field_lengths( $data, $table ) {
2967
2969
* @since 0.71
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
*/
2974
2976
public function get_var ( $ query = null , $ x = 0 , $ y = 0 ) {
@@ -3002,7 +3004,7 @@ public function get_var( $query = null, $x = 0, $y = 0 ) {
3002
3004
* @param string $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
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
*/
3008
3010
public function get_row ( $ query = null , $ output = OBJECT , $ y = 0 ) {
@@ -3046,7 +3048,7 @@ public function get_row( $query = null, $output = OBJECT, $y = 0 ) {
3046
3048
* @since 0.71
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
*/
3052
3054
public function get_col ( $ query = null , $ x = 0 ) {
@@ -3083,6 +3085,7 @@ public function get_col( $query = null, $x = 0 ) {
3083
3085
* or an object ( ->column = value ), respectively. With OBJECT_K,
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
*/
3088
3091
public function get_results ( $ query = null , $ output = OBJECT ) {
0 commit comments