Changeset 52373 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 12/14/2021 04:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r52294 r52373 133 133 * @since 0.71 134 134 * 135 * @var array|null135 * @var stdClass[]|null 136 136 */ 137 137 public $last_result; 138 138 139 139 /** 140 * MySQL result, which is either a resource or boolean. 140 * MySQL query result. 141 * 142 * Possible values: 143 * 144 * - `null` if a query is yet to be made or if the result has since been flushed 145 * - `mysqli_result` instance when the MySQLi driver is in use, or `resource` when the older 146 * MySQL driver is in use, for successful SELECT, SHOW, DESCRIBE, or EXPLAIN queries 147 * - `true` for other query types that were successful 148 * - `false` if the query returned an error 141 149 * 142 150 * @since 0.71 143 151 * 144 * @var m ixed152 * @var mysqli_result|resource|bool|null 145 153 */ 146 154 protected $result; … … 280 288 * 281 289 * @see wpdb::tables() 282 * @var array290 * @var string[] 283 291 */ 284 292 public $tables = array( … … 303 311 * 304 312 * @see wpdb::tables() 305 * @var array313 * @var string[] 306 314 */ 307 315 public $old_tables = array( 'categories', 'post2cat', 'link2cat' ); … … 313 321 * 314 322 * @see wpdb::tables() 315 * @var array323 * @var string[] 316 324 */ 317 325 public $global_tables = array( 'users', 'usermeta' ); … … 323 331 * 324 332 * @see wpdb::tables() 325 * @var array333 * @var string[] 326 334 */ 327 335 public $ms_global_tables = array( … … 582 590 583 591 /** 584 * Database Handle. 592 * Database handle. 593 * 594 * Possible values: 595 * 596 * - `null` if the connection is yet to be made or has been closed 597 * - `mysqli` instance when the MySQLi driver is in use 598 * - `resource` when the older MySQL driver is in use 599 * - `false` if the connection has failed 585 600 * 586 601 * @since 0.71 587 602 * 588 * @var string603 * @var mysqli|resource|false|null 589 604 */ 590 605 protected $dbh; … … 618 633 * @since 3.9.0 619 634 * 620 * @var array635 * @var string[] 621 636 */ 622 637 protected $incompatible_modes = array( … … 850 865 * @since 3.1.0 851 866 * 852 * @param resource $dbh The resource given by mysql_connect.853 * @param string $charset Optional. The character set. Default null.854 * @param string $collate Optional. The collation. Default null.867 * @param mysqli|resource $dbh The connection returned by `mysqli_connect()` or `mysql_connect()`. 868 * @param string $charset Optional. The character set. Default null. 869 * @param string $collate Optional. The collation. Default null. 855 870 */ 856 871 public function set_charset( $dbh, $charset = null, $collate = null ) { … … 1142 1157 1143 1158 /** 1144 * Selects a database using the current database connection.1159 * Selects a database using the current or provided database connection. 1145 1160 * 1146 1161 * The database name will be changed based on the current database connection. … … 1149 1164 * @since 0.71 1150 1165 * 1151 * @param string $db MySQL database name.1152 * @param resource|null $dbh Optional link identifier.1166 * @param string $db MySQL database name. 1167 * @param mysqli|resource $dbh Optional database connection. 1153 1168 */ 1154 1169 public function select( $db, $dbh = null ) {
Note: See TracChangeset
for help on using the changeset viewer.