| 1 |
<?php |
| 2 |
|
| 3 |
// Start of mysqli v.0.1 |
| 4 |
|
| 5 |
class mysqli_sql_exception extends RuntimeException { |
| 6 |
protected $message; |
| 7 |
protected $file; |
| 8 |
protected $line; |
| 9 |
protected $code; |
| 10 |
protected $sqlstate; |
| 11 |
|
| 12 |
|
| 13 |
final private function __clone () {} |
| 14 |
|
| 15 |
/** |
| 16 |
* @param message[optional] |
| 17 |
* @param code[optional] |
| 18 |
* @param previous[optional] |
| 19 |
*/ |
| 20 |
public function __construct ($message, $code, $previous) {} |
| 21 |
|
| 22 |
final public function getMessage () {} |
| 23 |
|
| 24 |
final public function getCode () {} |
| 25 |
|
| 26 |
final public function getFile () {} |
| 27 |
|
| 28 |
final public function getLine () {} |
| 29 |
|
| 30 |
final public function getTrace () {} |
| 31 |
|
| 32 |
final public function getPrevious () {} |
| 33 |
|
| 34 |
final public function getTraceAsString () {} |
| 35 |
|
| 36 |
public function __toString () {} |
| 37 |
|
| 38 |
} |
| 39 |
|
| 40 |
final class mysqli_driver { |
| 41 |
public $client_info; |
| 42 |
public $client_version; |
| 43 |
public $driver_version; |
| 44 |
public $embedded; |
| 45 |
public $reconnect; |
| 46 |
public $report_mode; |
| 47 |
|
| 48 |
} |
| 49 |
|
| 50 |
class mysqli { |
| 51 |
public $affected_rows; |
| 52 |
public $client_info; |
| 53 |
public $client_version; |
| 54 |
public $connect_errno; |
| 55 |
public $connect_error; |
| 56 |
public $errno; |
| 57 |
public $error; |
| 58 |
public $error_list; |
| 59 |
public $field_count; |
| 60 |
public $host_info; |
| 61 |
public $info; |
| 62 |
public $insert_id; |
| 63 |
public $server_info; |
| 64 |
public $server_version; |
| 65 |
public $stat; |
| 66 |
public $sqlstate; |
| 67 |
public $protocol_version; |
| 68 |
public $thread_id; |
| 69 |
public $warning_count; |
| 70 |
|
| 71 |
|
| 72 |
/** |
| 73 |
* Turns on or off auto-committing database modifications |
| 74 |
* @link http://www.php.net/manual/en/mysqli.autocommit.php |
| 75 |
* @param link mysqli |
| 76 |
* @param mode bool <p> |
| 77 |
* Whether to turn on auto-commit or not. |
| 78 |
* </p> |
| 79 |
* @return bool Returns true on success, false on failure. |
| 80 |
*/ |
| 81 |
public function autocommit (mysqli $link, $mode) {} |
| 82 |
|
| 83 |
/** |
| 84 |
* Starts a transaction |
| 85 |
* @link http://www.php.net/manual/en/mysqli.begin-transaction.php |
| 86 |
* @param flags int[optional] <p> |
| 87 |
* |
| 88 |
* </p> |
| 89 |
* @param name string[optional] <p> |
| 90 |
* |
| 91 |
* </p> |
| 92 |
* @return bool Returns true on success, false on failure. |
| 93 |
*/ |
| 94 |
public function begin_transaction ($flags = null, $name = null) {} |
| 95 |
|
| 96 |
/** |
| 97 |
* Changes the user of the specified database connection |
| 98 |
* @link http://www.php.net/manual/en/mysqli.change-user.php |
| 99 |
* @param link mysqli |
| 100 |
* @param user string <p> |
| 101 |
* The MySQL user name. |
| 102 |
* </p> |
| 103 |
* @param password string <p> |
| 104 |
* The MySQL password. |
| 105 |
* </p> |
| 106 |
* @param database string <p> |
| 107 |
* The database to change to. |
| 108 |
* </p> |
| 109 |
* <p> |
| 110 |
* If desired, the &null; value may be passed resulting in only changing |
| 111 |
* the user and not selecting a database. To select a database in this |
| 112 |
* case use the mysqli_select_db function. |
| 113 |
* </p> |
| 114 |
* @return bool Returns true on success, false on failure. |
| 115 |
*/ |
| 116 |
public function change_user (mysqli $link, $user, $password, $database) {} |
| 117 |
|
| 118 |
/** |
| 119 |
* Returns the default character set for the database connection |
| 120 |
* @link http://www.php.net/manual/en/mysqli.character-set-name.php |
| 121 |
* @param link mysqli |
| 122 |
* @return string The default character set for the current connection |
| 123 |
*/ |
| 124 |
public function character_set_name (mysqli $link) {} |
| 125 |
|
| 126 |
/** |
| 127 |
* Closes a previously opened database connection |
| 128 |
* @link http://www.php.net/manual/en/mysqli.close.php |
| 129 |
* @param link mysqli |
| 130 |
* @return bool Returns true on success, false on failure. |
| 131 |
*/ |
| 132 |
public function close (mysqli $link) {} |
| 133 |
|
| 134 |
/** |
| 135 |
* Commits the current transaction |
| 136 |
* @link http://www.php.net/manual/en/mysqli.commit.php |
| 137 |
* @param link mysqli |
| 138 |
* @param flags int[optional] <p> |
| 139 |
* A bitmask of MYSQLI_TRANS_COR_* constants. |
| 140 |
* </p> |
| 141 |
* @param name string[optional] <p> |
| 142 |
* If provided then COMMIT/*name*/ is executed. |
| 143 |
* </p> |
| 144 |
* @return bool Returns true on success, false on failure. |
| 145 |
*/ |
| 146 |
public function commit (mysqli $link, $flags = null, $name = null) {} |
| 147 |
|
| 148 |
/** |
| 149 |
* @param host[optional] |
| 150 |
* @param user[optional] |
| 151 |
* @param password[optional] |
| 152 |
* @param database[optional] |
| 153 |
* @param port[optional] |
| 154 |
* @param socket[optional] |
| 155 |
*/ |
| 156 |
public function connect ($host, $user, $password, $database, $port, $socket) {} |
| 157 |
|
| 158 |
/** |
| 159 |
* Dump debugging information into the log |
| 160 |
* @link http://www.php.net/manual/en/mysqli.dump-debug-info.php |
| 161 |
* @param link mysqli |
| 162 |
* @return bool Returns true on success, false on failure. |
| 163 |
*/ |
| 164 |
public function dump_debug_info (mysqli $link) {} |
| 165 |
|
| 166 |
/** |
| 167 |
* Performs debugging operations |
| 168 |
* @link http://www.php.net/manual/en/mysqli.debug.php |
| 169 |
* @param message string <p> |
| 170 |
* A string representing the debugging operation to perform |
| 171 |
* </p> |
| 172 |
* @return bool true. |
| 173 |
*/ |
| 174 |
public function debug ($message) {} |
| 175 |
|
| 176 |
/** |
| 177 |
* Returns a character set object |
| 178 |
* @link http://www.php.net/manual/en/mysqli.get-charset.php |
| 179 |
* @param link mysqli |
| 180 |
* @return object The function returns a character set object with the following properties: |
| 181 |
* |
| 182 |
* |
| 183 |
* charset |
| 184 |
* <p>Character set name</p> |
| 185 |
* |
| 186 |
* |
| 187 |
* collation |
| 188 |
* <p>Collation name</p> |
| 189 |
* |
| 190 |
* |
| 191 |
* dir |
| 192 |
* <p>Directory the charset description was fetched from (?) or "" for built-in character sets</p> |
| 193 |
* |
| 194 |
* |
| 195 |
* min_length |
| 196 |
* <p>Minimum character length in bytes</p> |
| 197 |
* |
| 198 |
* |
| 199 |
* max_length |
| 200 |
* <p>Maximum character length in bytes</p> |
| 201 |
* |
| 202 |
* |
| 203 |
* number |
| 204 |
* <p>Internal character set number</p> |
| 205 |
* |
| 206 |
* |
| 207 |
* state |
| 208 |
* <p>Character set status (?)</p> |
| 209 |
*/ |
| 210 |
public function get_charset (mysqli $link) {} |
| 211 |
|
| 212 |
/** |
| 213 |
* Get MySQL client info |
| 214 |
* @link http://www.php.net/manual/en/mysqli.get-client-info.php |
| 215 |
* @param link mysqli |
| 216 |
* @return string A string that represents the MySQL client library version |
| 217 |
*/ |
| 218 |
public function get_client_info (mysqli $link) {} |
| 219 |
|
| 220 |
/** |
| 221 |
* Returns statistics about the client connection |
| 222 |
* @link http://www.php.net/manual/en/mysqli.get-connection-stats.php |
| 223 |
* @param link mysqli |
| 224 |
* @return array an array with connection stats if success, false otherwise. |
| 225 |
*/ |
| 226 |
public function get_connection_stats (mysqli $link) {} |
| 227 |
|
| 228 |
public function get_server_info () {} |
| 229 |
|
| 230 |
/** |
| 231 |
* Get result of SHOW WARNINGS |
| 232 |
* @link http://www.php.net/manual/en/mysqli.get-warnings.php |
| 233 |
* @param link mysqli |
| 234 |
* @return mysqli_warning |
| 235 |
*/ |
| 236 |
public function get_warnings (mysqli $link) {} |
| 237 |
|
| 238 |
/** |
| 239 |
* Initializes MySQLi and returns a resource for use with mysqli_real_connect() |
| 240 |
* @link http://www.php.net/manual/en/mysqli.init.php |
| 241 |
* @return mysqli an object. |
| 242 |
*/ |
| 243 |
public function init () {} |
| 244 |
|
| 245 |
/** |
| 246 |
* Asks the server to kill a MySQL thread |
| 247 |
* @link http://www.php.net/manual/en/mysqli.kill.php |
| 248 |
* @param link mysqli |
| 249 |
* @param processid int |
| 250 |
* @return bool Returns true on success, false on failure. |
| 251 |
*/ |
| 252 |
public function kill (mysqli $link, $processid) {} |
| 253 |
|
| 254 |
/** |
| 255 |
* Performs a query on the database |
| 256 |
* @link http://www.php.net/manual/en/mysqli.multi-query.php |
| 257 |
* @param link mysqli |
| 258 |
* @param query string <p> |
| 259 |
* The query, as a string. |
| 260 |
* </p> |
| 261 |
* <p> |
| 262 |
* Data inside the query should be properly escaped. |
| 263 |
* </p> |
| 264 |
* @return bool false if the first statement failed. |
| 265 |
* To retrieve subsequent errors from other statements you have to call |
| 266 |
* mysqli_next_result first. |
| 267 |
*/ |
| 268 |
public function multi_query (mysqli $link, $query) {} |
| 269 |
|
| 270 |
/** |
| 271 |
* @param host[optional] |
| 272 |
* @param user[optional] |
| 273 |
* @param password[optional] |
| 274 |
* @param database[optional] |
| 275 |
* @param port[optional] |
| 276 |
* @param socket[optional] |
| 277 |
*/ |
| 278 |
public function mysqli ($host, $user, $password, $database, $port, $socket) {} |
| 279 |
|
| 280 |
/** |
| 281 |
* Check if there are any more query results from a multi query |
| 282 |
* @link http://www.php.net/manual/en/mysqli.more-results.php |
| 283 |
* @param link mysqli |
| 284 |
* @return bool true if one or more result sets are available from a previous call to |
| 285 |
* mysqli_multi_query, otherwise false. |
| 286 |
*/ |
| 287 |
public function more_results (mysqli $link) {} |
| 288 |
|
| 289 |
/** |
| 290 |
* Prepare next result from multi_query |
| 291 |
* @link http://www.php.net/manual/en/mysqli.next-result.php |
| 292 |
* @param link mysqli |
| 293 |
* @return bool Returns true on success, false on failure. |
| 294 |
*/ |
| 295 |
public function next_result (mysqli $link) {} |
| 296 |
|
| 297 |
/** |
| 298 |
* Set options |
| 299 |
* @link http://www.php.net/manual/en/mysqli.options.php |
| 300 |
* @param link mysqli |
| 301 |
* @param option int <p> |
| 302 |
* The option that you want to set. It can be one of the following values: |
| 303 |
* <table> |
| 304 |
* Valid options |
| 305 |
* |
| 306 |
* |
| 307 |
* <tr valign="top"> |
| 308 |
* <td>Name</td> |
| 309 |
* <td>Description</td> |
| 310 |
* </tr> |
| 311 |
* |
| 312 |
* |
| 313 |
* <tr valign="top"> |
| 314 |
* <td>MYSQLI_OPT_CONNECT_TIMEOUT</td> |
| 315 |
* <td>connection timeout in seconds (supported on Windows with TCP/IP since PHP 5.3.1)</td> |
| 316 |
* </tr> |
| 317 |
* <tr valign="top"> |
| 318 |
* <td>MYSQLI_OPT_LOCAL_INFILE</td> |
| 319 |
* <td>enable/disable use of LOAD LOCAL INFILE</td> |
| 320 |
* </tr> |
| 321 |
* <tr valign="top"> |
| 322 |
* <td>MYSQLI_INIT_COMMAND</td> |
| 323 |
* <td>command to execute after when connecting to MySQL server</td> |
| 324 |
* </tr> |
| 325 |
* <tr valign="top"> |
| 326 |
* <td>MYSQLI_READ_DEFAULT_FILE</td> |
| 327 |
* <td> |
| 328 |
* Read options from named option file instead of my.cnf |
| 329 |
* </td> |
| 330 |
* </tr> |
| 331 |
* <tr valign="top"> |
| 332 |
* <td>MYSQLI_READ_DEFAULT_GROUP</td> |
| 333 |
* <td> |
| 334 |
* Read options from the named group from my.cnf |
| 335 |
* or the file specified with MYSQL_READ_DEFAULT_FILE. |
| 336 |
* </td> |
| 337 |
* </tr> |
| 338 |
* <tr valign="top"> |
| 339 |
* <td>MYSQLI_SERVER_PUBLIC_KEY</td> |
| 340 |
* <td> |
| 341 |
* RSA public key file used with the SHA-256 based authentication. |
| 342 |
* </td> |
| 343 |
* </tr> |
| 344 |
* |
| 345 |
* |
| 346 |
* </table> |
| 347 |
* </p> |
| 348 |
* @param value mixed <p> |
| 349 |
* The value for the option. |
| 350 |
* </p> |
| 351 |
* @return bool Returns true on success, false on failure. |
| 352 |
*/ |
| 353 |
public function options (mysqli $link, $option, $value) {} |
| 354 |
|
| 355 |
/** |
| 356 |
* Pings a server connection, or tries to reconnect if the connection has gone down |
| 357 |
* @link http://www.php.net/manual/en/mysqli.ping.php |
| 358 |
* @param link mysqli |
| 359 |
* @return bool Returns true on success, false on failure. |
| 360 |
*/ |
| 361 |
public function ping (mysqli $link) {} |
| 362 |
|
| 363 |
/** |
| 364 |
* Poll connections |
| 365 |
* @link http://www.php.net/manual/en/mysqli.poll.php |
| 366 |
* @param read array <p> |
| 367 |
* List of connections to check for outstanding results that can be read. |
| 368 |
* </p> |
| 369 |
* @param error array <p> |
| 370 |
* List of connections on which an error occurred, for example, query |
| 371 |
* failure or lost connection. |
| 372 |
* </p> |
| 373 |
* @param reject array <p> |
| 374 |
* List of connections rejected because no asynchronous query |
| 375 |
* has been run on for which the function could poll results. |
| 376 |
* </p> |
| 377 |
* @param sec int <p> |
| 378 |
* Number of seconds to wait, must be non-negative. |
| 379 |
* </p> |
| 380 |
* @param usec int[optional] <p> |
| 381 |
* Number of microseconds to wait, must be non-negative. |
| 382 |
* </p> |
| 383 |
* @return int number of ready connections upon success, false otherwise. |
| 384 |
*/ |
| 385 |
public static function poll (array &$read, array &$error, array &$reject, $sec, $usec = null) {} |
| 386 |
|
| 387 |
/** |
| 388 |
* Prepare an SQL statement for execution |
| 389 |
* @link http://www.php.net/manual/en/mysqli.prepare.php |
| 390 |
* @param link mysqli |
| 391 |
* @param query string <p> |
| 392 |
* The query, as a string. |
| 393 |
* </p> |
| 394 |
* |
| 395 |
* <p> |
| 396 |
* You should not add a terminating semicolon or \g |
| 397 |
* to the statement. |
| 398 |
* </p> |
| 399 |
* |
| 400 |
* <p> |
| 401 |
* This parameter can include one or more parameter markers in the SQL |
| 402 |
* statement by embedding question mark (?) characters |
| 403 |
* at the appropriate positions. |
| 404 |
* </p> |
| 405 |
* |
| 406 |
* <p> |
| 407 |
* The markers are legal only in certain places in SQL statements. |
| 408 |
* For example, they are allowed in the VALUES() |
| 409 |
* list of an INSERT statement (to specify column |
| 410 |
* values for a row), or in a comparison with a column in a |
| 411 |
* WHERE clause to specify a comparison value. |
| 412 |
* </p> |
| 413 |
* <p> |
| 414 |
* However, they are not allowed for identifiers (such as table or |
| 415 |
* column names), in the select list that names the columns to be |
| 416 |
* returned by a SELECT statement, or to specify both |
| 417 |
* operands of a binary operator such as the = equal |
| 418 |
* sign. The latter restriction is necessary because it would be |
| 419 |
* impossible to determine the parameter type. It's not allowed to |
| 420 |
* compare marker with NULL by |
| 421 |
* ? IS NULL too. In general, parameters are legal |
| 422 |
* only in Data Manipulation Language (DML) statements, and not in Data |
| 423 |
* Definition Language (DDL) statements. |
| 424 |
* </p> |
| 425 |
* @return mysqli_stmt mysqli_prepare returns a statement object or false if an error occurred. |
| 426 |
*/ |
| 427 |
public function prepare (mysqli $link, $query) {} |
| 428 |
|
| 429 |
/** |
| 430 |
* Performs a query on the database |
| 431 |
* @link http://www.php.net/manual/en/mysqli.query.php |
| 432 |
* @param link mysqli |
| 433 |
* @param query string <p> |
| 434 |
* The query string. |
| 435 |
* </p> |
| 436 |
* <p> |
| 437 |
* Data inside the query should be properly escaped. |
| 438 |
* </p> |
| 439 |
* @param resultmode int[optional] <p> |
| 440 |
* Either the constant MYSQLI_USE_RESULT or |
| 441 |
* MYSQLI_STORE_RESULT depending on the desired |
| 442 |
* behavior. By default, MYSQLI_STORE_RESULT is used. |
| 443 |
* </p> |
| 444 |
* <p> |
| 445 |
* If you use MYSQLI_USE_RESULT all subsequent calls |
| 446 |
* will return error Commands out of sync unless you |
| 447 |
* call mysqli_free_result |
| 448 |
* </p> |
| 449 |
* <p> |
| 450 |
* With MYSQLI_ASYNC (available with mysqlnd), it is |
| 451 |
* possible to perform query asynchronously. |
| 452 |
* mysqli_poll is then used to get results from such |
| 453 |
* queries. |
| 454 |
* </p> |
| 455 |
* @return mixed false on failure. For successful SELECT, SHOW, DESCRIBE or |
| 456 |
* EXPLAIN queries mysqli_query will return |
| 457 |
* a mysqli_result object. For other successful queries mysqli_query will |
| 458 |
* return true. |
| 459 |
*/ |
| 460 |
public function query (mysqli $link, $query, $resultmode = null) {} |
| 461 |
|
| 462 |
/** |
| 463 |
* Opens a connection to a mysql server |
| 464 |
* @link http://www.php.net/manual/en/mysqli.real-connect.php |
| 465 |
* @param link mysqli |
| 466 |
* @param host string[optional] <p> |
| 467 |
* Can be either a host name or an IP address. Passing the &null; value |
| 468 |
* or the string "localhost" to this parameter, the local host is |
| 469 |
* assumed. When possible, pipes will be used instead of the TCP/IP |
| 470 |
* protocol. |
| 471 |
* </p> |
| 472 |
* @param username string[optional] <p> |
| 473 |
* The MySQL user name. |
| 474 |
* </p> |
| 475 |
* @param passwd string[optional] <p> |
| 476 |
* If provided or &null;, the MySQL server will attempt to authenticate |
| 477 |
* the user against those user records which have no password only. This |
| 478 |
* allows one username to be used with different permissions (depending |
| 479 |
* on if a password as provided or not). |
| 480 |
* </p> |
| 481 |
* @param dbname string[optional] <p> |
| 482 |
* If provided will specify the default database to be used when |
| 483 |
* performing queries. |
| 484 |
* </p> |
| 485 |
* @param port int[optional] <p> |
| 486 |
* Specifies the port number to attempt to connect to the MySQL server. |
| 487 |
* </p> |
| 488 |
* @param socket string[optional] <p> |
| 489 |
* Specifies the socket or named pipe that should be used. |
| 490 |
* </p> |
| 491 |
* |
| 492 |
* <p> |
| 493 |
* Specifying the socket parameter will not |
| 494 |
* explicitly determine the type of connection to be used when |
| 495 |
* connecting to the MySQL server. How the connection is made to the |
| 496 |
* MySQL database is determined by the host |
| 497 |
* parameter. |
| 498 |
* </p> |
| 499 |
* @param flags int[optional] <p> |
| 500 |
* With the parameter flags you can set different |
| 501 |
* connection options: |
| 502 |
* </p> |
| 503 |
* <table> |
| 504 |
* Supported flags |
| 505 |
* |
| 506 |
* |
| 507 |
* <tr valign="top"> |
| 508 |
* <td>Name</td> |
| 509 |
* <td>Description</td> |
| 510 |
* </tr> |
| 511 |
* |
| 512 |
* |
| 513 |
* <tr valign="top"> |
| 514 |
* <td>MYSQLI_CLIENT_COMPRESS</td> |
| 515 |
* <td>Use compression protocol</td> |
| 516 |
* </tr> |
| 517 |
* <tr valign="top"> |
| 518 |
* <td>MYSQLI_CLIENT_FOUND_ROWS</td> |
| 519 |
* <td>return number of matched rows, not the number of affected rows</td> |
| 520 |
* </tr> |
| 521 |
* <tr valign="top"> |
| 522 |
* <td>MYSQLI_CLIENT_IGNORE_SPACE</td> |
| 523 |
* <td>Allow spaces after function names. Makes all function names reserved words.</td> |
| 524 |
* </tr> |
| 525 |
* <tr valign="top"> |
| 526 |
* <td>MYSQLI_CLIENT_INTERACTIVE</td> |
| 527 |
* <td> |
| 528 |
* Allow interactive_timeout seconds (instead of |
| 529 |
* wait_timeout seconds) of inactivity before closing the connection |
| 530 |
* </td> |
| 531 |
* </tr> |
| 532 |
* <tr valign="top"> |
| 533 |
* <td>MYSQLI_CLIENT_SSL</td> |
| 534 |
* <td>Use SSL (encryption)</td> |
| 535 |
* </tr> |
| 536 |
* |
| 537 |
* |
| 538 |
* </table> |
| 539 |
* |
| 540 |
* <p> |
| 541 |
* For security reasons the MULTI_STATEMENT flag is |
| 542 |
* not supported in PHP. If you want to execute multiple queries use the |
| 543 |
* mysqli_multi_query function. |
| 544 |
* </p> |
| 545 |
* @return bool Returns true on success, false on failure. |
| 546 |
*/ |
| 547 |
public function real_connect (mysqli $link, $host = null, $username = null, $passwd = null, $dbname = null, $port = null, $socket = null, $flags = null) {} |
| 548 |
|
| 549 |
/** |
| 550 |
* Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection |
| 551 |
* @link http://www.php.net/manual/en/mysqli.real-escape-string.php |
| 552 |
* @param escapestr string <p> |
| 553 |
* The string to be escaped. |
| 554 |
* </p> |
| 555 |
* <p> |
| 556 |
* Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and |
| 557 |
* Control-Z. |
| 558 |
* </p> |
| 559 |
* @return string an escaped string. |
| 560 |
*/ |
| 561 |
public function real_escape_string ($escapestr) {} |
| 562 |
|
| 563 |
/** |
| 564 |
* Get result from async query |
| 565 |
* @link http://www.php.net/manual/en/mysqli.reap-async-query.php |
| 566 |
* @param link mysql |
| 567 |
* @return mysqli_result mysqli_result in success, false otherwise. |
| 568 |
*/ |
| 569 |
public function reap_async_query ($link) {} |
| 570 |
|
| 571 |
/** |
| 572 |
* @param string_to_escape |
| 573 |
*/ |
| 574 |
public function escape_string ($string_to_escape) {} |
| 575 |
|
| 576 |
/** |
| 577 |
* Execute an SQL query |
| 578 |
* @link http://www.php.net/manual/en/mysqli.real-query.php |
| 579 |
* @param link mysqli |
| 580 |
* @param query string <p> |
| 581 |
* The query, as a string. |
| 582 |
* </p> |
| 583 |
* <p> |
| 584 |
* Data inside the query should be properly escaped. |
| 585 |
* </p> |
| 586 |
* @return bool Returns true on success, false on failure. |
| 587 |
*/ |
| 588 |
public function real_query (mysqli $link, $query) {} |
| 589 |
|
| 590 |
/** |
| 591 |
* Rolls back a transaction to the named savepoint |
| 592 |
* @link http://www.php.net/manual/en/mysqli.release-savepoint.php |
| 593 |
* @param name string <p> |
| 594 |
* |
| 595 |
* </p> |
| 596 |
* @return bool Returns true on success, false on failure. |
| 597 |
*/ |
| 598 |
public function release_savepoint ($name) {} |
| 599 |
|
| 600 |
/** |
| 601 |
* Rolls back current transaction |
| 602 |
* @link http://www.php.net/manual/en/mysqli.rollback.php |
| 603 |
* @param link mysqli |
| 604 |
* @param flags int[optional] <p> |
| 605 |
* A bitmask of MYSQLI_TRANS_COR_* constants. |
| 606 |
* </p> |
| 607 |
* @param name string[optional] <p> |
| 608 |
* If provided then ROLLBACK/*name*/ is executed. |
| 609 |
* </p> |
| 610 |
* @return bool Returns true on success, false on failure. |
| 611 |
*/ |
| 612 |
public function rollback (mysqli $link, $flags = null, $name = null) {} |
| 613 |
|
| 614 |
/** |
| 615 |
* Set a named transaction savepoint |
| 616 |
* @link http://www.php.net/manual/en/mysqli.savepoint.php |
| 617 |
* @param name string <p> |
| 618 |
* |
| 619 |
* </p> |
| 620 |
* @return bool Returns true on success, false on failure. |
| 621 |
*/ |
| 622 |
public function savepoint ($name) {} |
| 623 |
|
| 624 |
/** |
| 625 |
* Selects the default database for database queries |
| 626 |
* @link http://www.php.net/manual/en/mysqli.select-db.php |
| 627 |
* @param link mysqli |
| 628 |
* @param dbname string <p> |
| 629 |
* The database name. |
| 630 |
* </p> |
| 631 |
* @return bool Returns true on success, false on failure. |
| 632 |
*/ |
| 633 |
public function select_db (mysqli $link, $dbname) {} |
| 634 |
|
| 635 |
/** |
| 636 |
* Sets the default client character set |
| 637 |
* @link http://www.php.net/manual/en/mysqli.set-charset.php |
| 638 |
* @param link mysqli |
| 639 |
* @param charset string <p> |
| 640 |
* The charset to be set as default. |
| 641 |
* </p> |
| 642 |
* @return bool Returns true on success, false on failure. |
| 643 |
*/ |
| 644 |
public function set_charset (mysqli $link, $charset) {} |
| 645 |
|
| 646 |
/** |
| 647 |
* Alias of <function>mysqli_options</function> |
| 648 |
* @link http://www.php.net/manual/en/function.mysqli-set-opt.php |
| 649 |
* @param option |
| 650 |
* @param value |
| 651 |
*/ |
| 652 |
public function set_opt ($option, $value) {} |
| 653 |
|
| 654 |
/** |
| 655 |
* Used for establishing secure connections using SSL |
| 656 |
* @link http://www.php.net/manual/en/mysqli.ssl-set.php |
| 657 |
* @param link mysqli |
| 658 |
* @param key string <p> |
| 659 |
* The path name to the key file. |
| 660 |
* </p> |
| 661 |
* @param cert string <p> |
| 662 |
* The path name to the certificate file. |
| 663 |
* </p> |
| 664 |
* @param ca string <p> |
| 665 |
* The path name to the certificate authority file. |
| 666 |
* </p> |
| 667 |
* @param capath string <p> |
| 668 |
* The pathname to a directory that contains trusted SSL CA certificates |
| 669 |
* in PEM format. |
| 670 |
* </p> |
| 671 |
* @param cipher string <p> |
| 672 |
* A list of allowable ciphers to use for SSL encryption. |
| 673 |
* </p> |
| 674 |
* @return bool This function always returns true value. If SSL setup is |
| 675 |
* incorrect mysqli_real_connect will return an error |
| 676 |
* when you attempt to connect. |
| 677 |
*/ |
| 678 |
public function ssl_set (mysqli $link, $key, $cert, $ca, $capath, $cipher) {} |
| 679 |
|
| 680 |
/** |
| 681 |
* Gets the current system status |
| 682 |
* @link http://www.php.net/manual/en/mysqli.stat.php |
| 683 |
* @param link mysqli |
| 684 |
* @return string A string describing the server status. false if an error occurred. |
| 685 |
*/ |
| 686 |
public function stat (mysqli $link) {} |
| 687 |
|
| 688 |
/** |
| 689 |
* Initializes a statement and returns an object for use with mysqli_stmt_prepare |
| 690 |
* @link http://www.php.net/manual/en/mysqli.stmt-init.php |
| 691 |
* @param link mysqli |
| 692 |
* @return mysqli_stmt an object. |
| 693 |
*/ |
| 694 |
public function stmt_init (mysqli $link) {} |
| 695 |
|
| 696 |
/** |
| 697 |
* Transfers a result set from the last query |
| 698 |
* @link http://www.php.net/manual/en/mysqli.store-result.php |
| 699 |
* @param option int[optional] <p> |
| 700 |
* The option that you want to set. It can be one of the following values: |
| 701 |
* <table> |
| 702 |
* Valid options |
| 703 |
* |
| 704 |
* |
| 705 |
* <tr valign="top"> |
| 706 |
* <td>Name</td> |
| 707 |
* <td>Description</td> |
| 708 |
* </tr> |
| 709 |
* |
| 710 |
* |
| 711 |
* <tr valign="top"> |
| 712 |
* <td>MYSQLI_STORE_RESULT_COPY_DATA</td> |
| 713 |
* <td>Copy results from the internal mysqlnd buffer into the PHP variables fetched. By default, |
| 714 |
* mysqlnd will use a reference logic to avoid copying and duplicating results held in memory. |
| 715 |
* For certain result sets, for example, result sets with many small rows, the copy approach can |
| 716 |
* reduce the overall memory usage because PHP variables holding results may be |
| 717 |
* released earlier (available with mysqlnd only, since PHP 5.6.0)</td> |
| 718 |
* </tr> |
| 719 |
* |
| 720 |
* |
| 721 |
* </table> |
| 722 |
* </p> |
| 723 |
* @return mysqli_result a buffered result object or false if an error occurred. |
| 724 |
* </p> |
| 725 |
* |
| 726 |
* <p> |
| 727 |
* mysqli_store_result returns false in case the query |
| 728 |
* didn't return a result set (if the query was, for example an INSERT |
| 729 |
* statement). This function also returns false if the reading of the |
| 730 |
* result set failed. You can check if you have got an error by checking |
| 731 |
* if mysqli_error doesn't return an empty string, if |
| 732 |
* mysqli_errno returns a non zero value, or if |
| 733 |
* mysqli_field_count returns a non zero value. |
| 734 |
* Also possible reason for this function returning false after |
| 735 |
* successful call to mysqli_query can be too large |
| 736 |
* result set (memory for it cannot be allocated). If |
| 737 |
* mysqli_field_count returns a non-zero value, the |
| 738 |
* statement should have produced a non-empty result set. |
| 739 |
*/ |
| 740 |
public function store_result ($option = null) {} |
| 741 |
|
| 742 |
/** |
| 743 |
* Returns whether thread safety is given or not |
| 744 |
* @link http://www.php.net/manual/en/mysqli.thread-safe.php |
| 745 |
* @return bool true if the client library is thread-safe, otherwise false. |
| 746 |
*/ |
| 747 |
public function thread_safe () {} |
| 748 |
|
| 749 |
/** |
| 750 |
* Initiate a result set retrieval |
| 751 |
* @link http://www.php.net/manual/en/mysqli.use-result.php |
| 752 |
* @param link mysqli |
| 753 |
* @return mysqli_result an unbuffered result object or false if an error occurred. |
| 754 |
*/ |
| 755 |
public function use_result (mysqli $link) {} |
| 756 |
|
| 757 |
/** |
| 758 |
* Refreshes |
| 759 |
* @link http://www.php.net/manual/en/mysqli.refresh.php |
| 760 |
* @param link resource |
| 761 |
* @param options int <p> |
| 762 |
* The options to refresh, using the MYSQLI_REFRESH_* constants as documented |
| 763 |
* within the MySQLi constants documentation. |
| 764 |
* </p> |
| 765 |
* <p> |
| 766 |
* See also the official MySQL Refresh |
| 767 |
* documentation. |
| 768 |
* </p> |
| 769 |
* @return int true if the refresh was a success, otherwise false |
| 770 |
*/ |
| 771 |
public function refresh ($link, $options) {} |
| 772 |
|
| 773 |
} |
| 774 |
|
| 775 |
final class mysqli_warning { |
| 776 |
public $message; |
| 777 |
public $sqlstate; |
| 778 |
public $errno; |
| 779 |
|
| 780 |
|
| 781 |
/** |
| 782 |
* The __construct purpose |
| 783 |
* @link http://www.php.net/manual/en/mysqli-warning.construct.php |
| 784 |
*/ |
| 785 |
protected function __construct () {} |
| 786 |
|
| 787 |
/** |
| 788 |
* The next purpose |
| 789 |
* @link http://www.php.net/manual/en/mysqli-warning.next.php |
| 790 |
*/ |
| 791 |
public function next () {} |
| 792 |
|
| 793 |
} |
| 794 |
|
| 795 |
class mysqli_result implements Traversable { |
| 796 |
public $current_field; |
| 797 |
public $field_count; |
| 798 |
public $lengths; |
| 799 |
public $num_rows; |
| 800 |
public $type; |
| 801 |
|
| 802 |
|
| 803 |
public function __construct () {} |
| 804 |
|
| 805 |
public function close () {} |
| 806 |
|
| 807 |
/** |
| 808 |
* Frees the memory associated with a result |
| 809 |
* @link http://www.php.net/manual/en/mysqli-result.free.php |
| 810 |
* @return void |
| 811 |
*/ |
| 812 |
public function free () {} |
| 813 |
|
| 814 |
/** |
| 815 |
* Adjusts the result pointer to an arbitrary row in the result |
| 816 |
* @link http://www.php.net/manual/en/mysqli-result.data-seek.php |
| 817 |
* @param result mysqli_result |
| 818 |
* @param offset int <p> |
| 819 |
* The field offset. Must be between zero and the total number of rows |
| 820 |
* minus one (0..mysqli_num_rows - 1). |
| 821 |
* </p> |
| 822 |
* @return bool Returns true on success, false on failure. |
| 823 |
*/ |
| 824 |
public function data_seek (mysqli_result $result, $offset) {} |
| 825 |
|
| 826 |
/** |
| 827 |
* Returns the next field in the result set |
| 828 |
* @link http://www.php.net/manual/en/mysqli-result.fetch-field.php |
| 829 |
* @param result mysqli_result |
| 830 |
* @return object an object which contains field definition information or false |
| 831 |
* if no field information is available. |
| 832 |
* </p> |
| 833 |
* <p> |
| 834 |
* <table> |
| 835 |
* Object properties |
| 836 |
* |
| 837 |
* |
| 838 |
* <tr valign="top"> |
| 839 |
* <td>Property</td> |
| 840 |
* <td>Description</td> |
| 841 |
* </tr> |
| 842 |
* |
| 843 |
* |
| 844 |
* <tr valign="top"> |
| 845 |
* <td>name</td> |
| 846 |
* <td>The name of the column</td> |
| 847 |
* </tr> |
| 848 |
* <tr valign="top"> |
| 849 |
* <td>orgname</td> |
| 850 |
* <td>Original column name if an alias was specified</td> |
| 851 |
* </tr> |
| 852 |
* <tr valign="top"> |
| 853 |
* <td>table</td> |
| 854 |
* <td>The name of the table this field belongs to (if not calculated)</td> |
| 855 |
* </tr> |
| 856 |
* <tr valign="top"> |
| 857 |
* <td>orgtable</td> |
| 858 |
* <td>Original table name if an alias was specified</td> |
| 859 |
* </tr> |
| 860 |
* <tr valign="top"> |
| 861 |
* <td>def</td> |
| 862 |
* <td>Reserved for default value, currently always ""</td> |
| 863 |
* </tr> |
| 864 |
* <tr valign="top"> |
| 865 |
* <td>db</td> |
| 866 |
* <td>Database (since PHP 5.3.6)</td> |
| 867 |
* </tr> |
| 868 |
* <tr valign="top"> |
| 869 |
* <td>catalog</td> |
| 870 |
* <td>The catalog name, always "def" (since PHP 5.3.6)</td> |
| 871 |
* </tr> |
| 872 |
* <tr valign="top"> |
| 873 |
* <td>max_length</td> |
| 874 |
* <td>The maximum width of the field for the result set.</td> |
| 875 |
* </tr> |
| 876 |
* <tr valign="top"> |
| 877 |
* <td>length</td> |
| 878 |
* <td>The width of the field, as specified in the table definition.</td> |
| 879 |
* </tr> |
| 880 |
* <tr valign="top"> |
| 881 |
* <td>charsetnr</td> |
| 882 |
* <td>The character set number for the field.</td> |
| 883 |
* </tr> |
| 884 |
* <tr valign="top"> |
| 885 |
* <td>flags</td> |
| 886 |
* <td>An integer representing the bit-flags for the field.</td> |
| 887 |
* </tr> |
| 888 |
* <tr valign="top"> |
| 889 |
* <td>type</td> |
| 890 |
* <td>The data type used for this field</td> |
| 891 |
* </tr> |
| 892 |
* <tr valign="top"> |
| 893 |
* <td>decimals</td> |
| 894 |
* <td>The number of decimals used (for integer fields)</td> |
| 895 |
* </tr> |
| 896 |
* |
| 897 |
* |
| 898 |
* </table> |
| 899 |
*/ |
| 900 |
public function fetch_field (mysqli_result $result) {} |
| 901 |
|
| 902 |
/** |
| 903 |
* Returns an array of objects representing the fields in a result set |
| 904 |
* @link http://www.php.net/manual/en/mysqli-result.fetch-fields.php |
| 905 |
* @param result mysqli_result |
| 906 |
* @return array an array of objects which contains field definition information or |
| 907 |
* false if no field information is available. |
| 908 |
* </p> |
| 909 |
* <p> |
| 910 |
* <table> |
| 911 |
* Object properties |
| 912 |
* |
| 913 |
* |
| 914 |
* <tr valign="top"> |
| 915 |
* <td>Property</td> |
| 916 |
* <td>Description</td> |
| 917 |
* </tr> |
| 918 |
* |
| 919 |
* |
| 920 |
* <tr valign="top"> |
| 921 |
* <td>name</td> |
| 922 |
* <td>The name of the column</td> |
| 923 |
* </tr> |
| 924 |
* <tr valign="top"> |
| 925 |
* <td>orgname</td> |
| 926 |
* <td>Original column name if an alias was specified</td> |
| 927 |
* </tr> |
| 928 |
* <tr valign="top"> |
| 929 |
* <td>table</td> |
| 930 |
* <td>The name of the table this field belongs to (if not calculated)</td> |
| 931 |
* </tr> |
| 932 |
* <tr valign="top"> |
| 933 |
* <td>orgtable</td> |
| 934 |
* <td>Original table name if an alias was specified</td> |
| 935 |
* </tr> |
| 936 |
* <tr valign="top"> |
| 937 |
* <td>max_length</td> |
| 938 |
* <td>The maximum width of the field for the result set.</td> |
| 939 |
* </tr> |
| 940 |
* <tr valign="top"> |
| 941 |
* <td>length</td> |
| 942 |
* <td>The width of the field, as specified in the table definition.</td> |
| 943 |
* </tr> |
| 944 |
* <tr valign="top"> |
| 945 |
* <td>charsetnr</td> |
| 946 |
* <td>The character set number for the field.</td> |
| 947 |
* </tr> |
| 948 |
* <tr valign="top"> |
| 949 |
* <td>flags</td> |
| 950 |
* <td>An integer representing the bit-flags for the field.</td> |
| 951 |
* </tr> |
| 952 |
* <tr valign="top"> |
| 953 |
* <td>type</td> |
| 954 |
* <td>The data type used for this field</td> |
| 955 |
* </tr> |
| 956 |
* <tr valign="top"> |
| 957 |
* <td>decimals</td> |
| 958 |
* <td>The number of decimals used (for integer fields)</td> |
| 959 |
* </tr> |
| 960 |
* |
| 961 |
* |
| 962 |
* </table> |
| 963 |
*/ |
| 964 |
public function fetch_fields (mysqli_result $result) {} |
| 965 |
|
| 966 |
/** |
| 967 |
* Fetch meta-data for a single field |
| 968 |
* @link http://www.php.net/manual/en/mysqli-result.fetch-field-direct.php |
| 969 |
* @param result mysqli_result |
| 970 |
* @param fieldnr int <p> |
| 971 |
* The field number. This value must be in the range from |
| 972 |
* 0 to number of fields - 1. |
| 973 |
* </p> |
| 974 |
* @return object an object which contains field definition information or false |
| 975 |
* if no field information for specified fieldnr is |
| 976 |
* available. |
| 977 |
* </p> |
| 978 |
* <p> |
| 979 |
* <table> |
| 980 |
* Object attributes |
| 981 |
* |
| 982 |
* |
| 983 |
* <tr valign="top"> |
| 984 |
* <td>Attribute</td> |
| 985 |
* <td>Description</td> |
| 986 |
* </tr> |
| 987 |
* |
| 988 |
* |
| 989 |
* <tr valign="top"> |
| 990 |
* <td>name</td> |
| 991 |
* <td>The name of the column</td> |
| 992 |
* </tr> |
| 993 |
* <tr valign="top"> |
| 994 |
* <td>orgname</td> |
| 995 |
* <td>Original column name if an alias was specified</td> |
| 996 |
* </tr> |
| 997 |
* <tr valign="top"> |
| 998 |
* <td>table</td> |
| 999 |
* <td>The name of the table this field belongs to (if not calculated)</td> |
| 1000 |
* </tr> |
| 1001 |
* <tr valign="top"> |
| 1002 |
* <td>orgtable</td> |
| 1003 |
* <td>Original table name if an alias was specified</td> |
| 1004 |
* </tr> |
| 1005 |
* <tr valign="top"> |
| 1006 |
* <td>def</td> |
| 1007 |
* <td>The default value for this field, represented as a string</td> |
| 1008 |
* </tr> |
| 1009 |
* <tr valign="top"> |
| 1010 |
* <td>max_length</td> |
| 1011 |
* <td>The maximum width of the field for the result set.</td> |
| 1012 |
* </tr> |
| 1013 |
* <tr valign="top"> |
| 1014 |
* <td>length</td> |
| 1015 |
* <td>The width of the field, as specified in the table definition.</td> |
| 1016 |
* </tr> |
| 1017 |
* <tr valign="top"> |
| 1018 |
* <td>charsetnr</td> |
| 1019 |
* <td>The character set number for the field.</td> |
| 1020 |
* </tr> |
| 1021 |
* <tr valign="top"> |
| 1022 |
* <td>flags</td> |
| 1023 |
* <td>An integer representing the bit-flags for the field.</td> |
| 1024 |
* </tr> |
| 1025 |
* <tr valign="top"> |
| 1026 |
* <td>type</td> |
| 1027 |
* <td>The data type used for this field</td> |
| 1028 |
* </tr> |
| 1029 |
* <tr valign="top"> |
| 1030 |
* <td>decimals</td> |
| 1031 |
* <td>The number of decimals used (for integer fields)</td> |
| 1032 |
* </tr> |
| 1033 |
* |
| 1034 |
* |
| 1035 |
* </table> |
| 1036 |
*/ |
| 1037 |
public function fetch_field_direct (mysqli_result $result, $fieldnr) {} |
| 1038 |
|
| 1039 |
/** |
| 1040 |
* Fetches all result rows as an associative array, a numeric array, or both |
| 1041 |
* @link http://www.php.net/manual/en/mysqli-result.fetch-all.php |
| 1042 |
* @param result mysqli_result |
| 1043 |
* @param resulttype int[optional] <p> |
| 1044 |
* This optional parameter is a constant indicating what type of array |
| 1045 |
* should be produced from the current row data. The possible values for |
| 1046 |
* this parameter are the constants MYSQLI_ASSOC, |
| 1047 |
* MYSQLI_NUM, or MYSQLI_BOTH. |
| 1048 |
* </p> |
| 1049 |
* @return mixed an array of associative or numeric arrays holding result rows. |
| 1050 |
*/ |
| 1051 |
public function fetch_all (mysqli_result $result, $resulttype = null) {} |
| 1052 |
|
| 1053 |
/** |
| 1054 |
* Fetch a result row as an associative, a numeric array, or both |
| 1055 |
* @link http://www.php.net/manual/en/mysqli-result.fetch-array.php |
| 1056 |
* @param result mysqli_result |
| 1057 |
* @param resulttype int[optional] <p> |
| 1058 |
* This optional parameter is a constant indicating what type of array |
| 1059 |
* should be produced from the current row data. The possible values for |
| 1060 |
* this parameter are the constants MYSQLI_ASSOC, |
| 1061 |
* MYSQLI_NUM, or MYSQLI_BOTH. |
| 1062 |
* </p> |
| 1063 |
* <p> |
| 1064 |
* By using the MYSQLI_ASSOC constant this function |
| 1065 |
* will behave identically to the mysqli_fetch_assoc, |
| 1066 |
* while MYSQLI_NUM will behave identically to the |
| 1067 |
* mysqli_fetch_row function. The final option |
| 1068 |
* MYSQLI_BOTH will create a single array with the |
| 1069 |
* attributes of both. |
| 1070 |
* </p> |
| 1071 |
* @return mixed an array of strings that corresponds to the fetched row or &null; if there |
| 1072 |
* are no more rows in resultset. |
| 1073 |
*/ |
| 1074 |
public function fetch_array (mysqli_result $result, $resulttype = null) {} |
| 1075 |
|
| 1076 |
/** |
| 1077 |
* Fetch a result row as an associative array |
| 1078 |
* @link http://www.php.net/manual/en/mysqli-result.fetch-assoc.php |
| 1079 |
* @param result mysqli_result |
| 1080 |
* @return array an associative array of strings representing the fetched row in the result |
| 1081 |
* set, where each key in the array represents the name of one of the result |
| 1082 |
* set's columns or &null; if there are no more rows in resultset. |
| 1083 |
* </p> |
| 1084 |
* <p> |
| 1085 |
* If two or more columns of the result have the same field names, the last |
| 1086 |
* column will take precedence. To access the other column(s) of the same |
| 1087 |
* name, you either need to access the result with numeric indices by using |
| 1088 |
* mysqli_fetch_row or add alias names. |
| 1089 |
*/ |
| 1090 |
public function fetch_assoc (mysqli_result $result) {} |
| 1091 |
|
| 1092 |
/** |
| 1093 |
* Returns the current row of a result set as an object |
| 1094 |
* @link http://www.php.net/manual/en/mysqli-result.fetch-object.php |
| 1095 |
* @param result mysqli_result |
| 1096 |
* @param class_name string[optional] <p> |
| 1097 |
* The name of the class to instantiate, set the properties of and return. |
| 1098 |
* If not specified, a stdClass object is returned. |
| 1099 |
* </p> |
| 1100 |
* @param params array[optional] <p> |
| 1101 |
* An optional array of parameters to pass to the constructor |
| 1102 |
* for class_name objects. |
| 1103 |
* </p> |
| 1104 |
* @return object an object with string properties that corresponds to the fetched |
| 1105 |
* row or &null; if there are no more rows in resultset. |
| 1106 |
*/ |
| 1107 |
public function fetch_object (mysqli_result $result, $class_name = null, array $params = null) {} |
| 1108 |
|
| 1109 |
/** |
| 1110 |
* Get a result row as an enumerated array |
| 1111 |
* @link http://www.php.net/manual/en/mysqli-result.fetch-row.php |
| 1112 |
* @param result mysqli_result |
| 1113 |
* @return mixed mysqli_fetch_row returns an array of strings that corresponds to the fetched row |
| 1114 |
* or &null; if there are no more rows in result set. |
| 1115 |
*/ |
| 1116 |
public function fetch_row (mysqli_result $result) {} |
| 1117 |
|
| 1118 |
/** |
| 1119 |
* Set result pointer to a specified field offset |
| 1120 |
* @link http://www.php.net/manual/en/mysqli-result.field-seek.php |
| 1121 |
* @param result mysqli_result |
| 1122 |
* @param fieldnr int <p> |
| 1123 |
* The field number. This value must be in the range from |
| 1124 |
* 0 to number of fields - 1. |
| 1125 |
* </p> |
| 1126 |
* @return bool Returns true on success, false on failure. |
| 1127 |
*/ |
| 1128 |
public function field_seek (mysqli_result $result, $fieldnr) {} |
| 1129 |
|
| 1130 |
public function free_result () {} |
| 1131 |
|
| 1132 |
} |
| 1133 |
|
| 1134 |
class mysqli_stmt { |
| 1135 |
public $affected_rows; |
| 1136 |
public $insert_id; |
| 1137 |
public $num_rows; |
| 1138 |
public $param_count; |
| 1139 |
public $field_count; |
| 1140 |
public $errno; |
| 1141 |
public $error; |
| 1142 |
public $error_list; |
| 1143 |
public $sqlstate; |
| 1144 |
public $id; |
| 1145 |
|
| 1146 |
|
| 1147 |
public function __construct () {} |
| 1148 |
|
| 1149 |
/** |
| 1150 |
* Used to get the current value of a statement attribute |
| 1151 |
* @link http://www.php.net/manual/en/mysqli-stmt.attr-get.php |
| 1152 |
* @param stmt mysqli_stmt |
| 1153 |
* @param attr int <p> |
| 1154 |
* The attribute that you want to get. |
| 1155 |
* </p> |
| 1156 |
* @return int false if the attribute is not found, otherwise returns the value of the attribute. |
| 1157 |
*/ |
| 1158 |
public function attr_get (mysqli_stmt $stmt, $attr) {} |
| 1159 |
|
| 1160 |
/** |
| 1161 |
* Used to modify the behavior of a prepared statement |
| 1162 |
* @link http://www.php.net/manual/en/mysqli-stmt.attr-set.php |
| 1163 |
* @param stmt mysqli_stmt |
| 1164 |
* @param attr int <p> |
| 1165 |
* The attribute that you want to set. It can have one of the following values: |
| 1166 |
* <table> |
| 1167 |
* Attribute values |
| 1168 |
* |
| 1169 |
* |
| 1170 |
* <tr valign="top"> |
| 1171 |
* <td>Character</td> |
| 1172 |
* <td>Description</td> |
| 1173 |
* </tr> |
| 1174 |
* |
| 1175 |
* |
| 1176 |
* <tr valign="top"> |
| 1177 |
* <td>MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH</td> |
| 1178 |
* <td> |
| 1179 |
* Setting to true causes mysqli_stmt_store_result to |
| 1180 |
* update the metadata MYSQL_FIELD->max_length value. |
| 1181 |
* </td> |
| 1182 |
* </tr> |
| 1183 |
* <tr valign="top"> |
| 1184 |
* <td>MYSQLI_STMT_ATTR_CURSOR_TYPE</td> |
| 1185 |
* <td> |
| 1186 |
* Type of cursor to open for statement when mysqli_stmt_execute |
| 1187 |
* is invoked. mode can be MYSQLI_CURSOR_TYPE_NO_CURSOR |
| 1188 |
* (the default) or MYSQLI_CURSOR_TYPE_READ_ONLY. |
| 1189 |
* </td> |
| 1190 |
* </tr> |
| 1191 |
* <tr valign="top"> |
| 1192 |
* <td>MYSQLI_STMT_ATTR_PREFETCH_ROWS</td> |
| 1193 |
* <td> |
| 1194 |
* Number of rows to fetch from server at a time when using a cursor. |
| 1195 |
* mode can be in the range from 1 to the maximum |
| 1196 |
* value of unsigned long. The default is 1. |
| 1197 |
* </td> |
| 1198 |
* </tr> |
| 1199 |
* |
| 1200 |
* |
| 1201 |
* </table> |
| 1202 |
* </p> |
| 1203 |
* <p> |
| 1204 |
* If you use the MYSQLI_STMT_ATTR_CURSOR_TYPE option with |
| 1205 |
* MYSQLI_CURSOR_TYPE_READ_ONLY, a cursor is opened for the |
| 1206 |
* statement when you invoke mysqli_stmt_execute. If there |
| 1207 |
* is already an open cursor from a previous mysqli_stmt_execute call, |
| 1208 |
* it closes the cursor before opening a new one. mysqli_stmt_reset |
| 1209 |
* also closes any open cursor before preparing the statement for re-execution. |
| 1210 |
* mysqli_stmt_free_result closes any open cursor. |
| 1211 |
* </p> |
| 1212 |
* <p> |
| 1213 |
* If you open a cursor for a prepared statement, mysqli_stmt_store_result |
| 1214 |
* is unnecessary. |
| 1215 |
* </p> |
| 1216 |
* @param mode int <p>The value to assign to the attribute.</p> |
| 1217 |
* @return bool |
| 1218 |
*/ |
| 1219 |
public function attr_set (mysqli_stmt $stmt, $attr, $mode) {} |
| 1220 |
|
| 1221 |
/** |
| 1222 |
* Binds variables to a prepared statement as parameters |
| 1223 |
* @link http://www.php.net/manual/en/mysqli-stmt.bind-param.php |
| 1224 |
* @param stmt mysqli_stmt |
| 1225 |
* @param types string <p> |
| 1226 |
* A string that contains one or more characters which specify the types |
| 1227 |
* for the corresponding bind variables: |
| 1228 |
* <table> |
| 1229 |
* Type specification chars |
| 1230 |
* |
| 1231 |
* |
| 1232 |
* <tr valign="top"> |
| 1233 |
* <td>Character</td> |
| 1234 |
* <td>Description</td> |
| 1235 |
* </tr> |
| 1236 |
* |
| 1237 |
* |
| 1238 |
* <tr valign="top"> |
| 1239 |
* <td>i</td> |
| 1240 |
* <td>corresponding variable has type integer</td> |
| 1241 |
* </tr> |
| 1242 |
* <tr valign="top"> |
| 1243 |
* <td>d</td> |
| 1244 |
* <td>corresponding variable has type double</td> |
| 1245 |
* </tr> |
| 1246 |
* <tr valign="top"> |
| 1247 |
* <td>s</td> |
| 1248 |
* <td>corresponding variable has type string</td> |
| 1249 |
* </tr> |
| 1250 |
* <tr valign="top"> |
| 1251 |
* <td>b</td> |
| 1252 |
* <td>corresponding variable is a blob and will be sent in packets</td> |
| 1253 |
* </tr> |
| 1254 |
* |
| 1255 |
* |
| 1256 |
* </table> |
| 1257 |
* </p> |
| 1258 |
* @param var1 mixed <p> |
| 1259 |
* The number of variables and length of string |
| 1260 |
* types must match the parameters in the statement. |
| 1261 |
* </p> |
| 1262 |
* @param _ mixed[optional] |
| 1263 |
* @return bool Returns true on success, false on failure. |
| 1264 |
*/ |
| 1265 |
public function bind_param (mysqli_stmt $stmt, $types, &$var1, &$_ = null) {} |
| 1266 |
|
| 1267 |
/** |
| 1268 |
* Binds variables to a prepared statement for result storage |
| 1269 |
* @link http://www.php.net/manual/en/mysqli-stmt.bind-result.php |
| 1270 |
* @param stmt mysqli_stmt |
| 1271 |
* @param var1 mixed <p> |
| 1272 |
* The variable to be bound. |
| 1273 |
* </p> |
| 1274 |
* @param _ mixed[optional] |
| 1275 |
* @return bool Returns true on success, false on failure. |
| 1276 |
*/ |
| 1277 |
public function bind_result (mysqli_stmt $stmt, &$var1, &$_ = null) {} |
| 1278 |
|
| 1279 |
/** |
| 1280 |
* Closes a prepared statement |
| 1281 |
* @link http://www.php.net/manual/en/mysqli-stmt.close.php |
| 1282 |
* @param stmt mysqli_stmt |
| 1283 |
* @return bool Returns true on success, false on failure. |
| 1284 |
*/ |
| 1285 |
public function close (mysqli_stmt $stmt) {} |
| 1286 |
|
| 1287 |
/** |
| 1288 |
* Seeks to an arbitrary row in statement result set |
| 1289 |
* @link http://www.php.net/manual/en/mysqli-stmt.data-seek.php |
| 1290 |
* @param stmt mysqli_stmt |
| 1291 |
* @param offset int <p> |
| 1292 |
* Must be between zero and the total number of rows minus one (0.. |
| 1293 |
* mysqli_stmt_num_rows - 1). |
| 1294 |
* </p> |
| 1295 |
* @return void |
| 1296 |
*/ |
| 1297 |
public function data_seek (mysqli_stmt $stmt, $offset) {} |
| 1298 |
|
| 1299 |
/** |
| 1300 |
* Executes a prepared Query |
| 1301 |
* @link http://www.php.net/manual/en/mysqli-stmt.execute.php |
| 1302 |
* @param stmt mysqli_stmt |
| 1303 |
* @return bool Returns true on success, false on failure. |
| 1304 |
*/ |
| 1305 |
public function execute (mysqli_stmt $stmt) {} |
| 1306 |
|
| 1307 |
/** |
| 1308 |
* Fetch results from a prepared statement into the bound variables |
| 1309 |
* @link http://www.php.net/manual/en/mysqli-stmt.fetch.php |
| 1310 |
* @param stmt mysqli_stmt |
| 1311 |
* @return bool |
| 1312 |
*/ |
| 1313 |
public function fetch (mysqli_stmt $stmt) {} |
| 1314 |
|
| 1315 |
/** |
| 1316 |
* Get result of SHOW WARNINGS |
| 1317 |
* @link http://www.php.net/manual/en/mysqli-stmt.get-warnings.php |
| 1318 |
* @param stmt mysqli_stmt |
| 1319 |
* @return object |
| 1320 |
*/ |
| 1321 |
public function get_warnings (mysqli_stmt $stmt) {} |
| 1322 |
|
| 1323 |
/** |
| 1324 |
* Returns result set metadata from a prepared statement |
| 1325 |
* @link http://www.php.net/manual/en/mysqli-stmt.result-metadata.php |
| 1326 |
* @param stmt mysqli_stmt |
| 1327 |
* @return mysqli_result a result object or false if an error occurred. |
| 1328 |
*/ |
| 1329 |
public function result_metadata (mysqli_stmt $stmt) {} |
| 1330 |
|
| 1331 |
/** |
| 1332 |
* Check if there are more query results from a multiple query |
| 1333 |
* @link http://www.php.net/manual/en/mysqli-stmt.more-results.php |
| 1334 |
* @return bool true if more results exist, otherwise false. |
| 1335 |
*/ |
| 1336 |
public function more_results () {} |
| 1337 |
|
| 1338 |
/** |
| 1339 |
* Reads the next result from a multiple query |
| 1340 |
* @link http://www.php.net/manual/en/mysqli-stmt.next-result.php |
| 1341 |
* @return bool Returns true on success, false on failure. |
| 1342 |
*/ |
| 1343 |
public function next_result () {} |
| 1344 |
|
| 1345 |
public function num_rows () {} |
| 1346 |
|
| 1347 |
/** |
| 1348 |
* Send data in blocks |
| 1349 |
* @link http://www.php.net/manual/en/mysqli-stmt.send-long-data.php |
| 1350 |
* @param stmt mysqli_stmt |
| 1351 |
* @param param_nr int <p> |
| 1352 |
* Indicates which parameter to associate the data with. Parameters are |
| 1353 |
* numbered beginning with 0. |
| 1354 |
* </p> |
| 1355 |
* @param data string <p> |
| 1356 |
* A string containing data to be sent. |
| 1357 |
* </p> |
| 1358 |
* @return bool Returns true on success, false on failure. |
| 1359 |
*/ |
| 1360 |
public function send_long_data (mysqli_stmt $stmt, $param_nr, $data) {} |
| 1361 |
|
| 1362 |
/** |
| 1363 |
* Frees stored result memory for the given statement handle |
| 1364 |
* @link http://www.php.net/manual/en/mysqli-stmt.free-result.php |
| 1365 |
* @param stmt mysqli_stmt |
| 1366 |
* @return void |
| 1367 |
*/ |
| 1368 |
public function free_result (mysqli_stmt $stmt) {} |
| 1369 |
|
| 1370 |
/** |
| 1371 |
* Resets a prepared statement |
| 1372 |
* @link http://www.php.net/manual/en/mysqli-stmt.reset.php |
| 1373 |
* @param stmt mysqli_stmt |
| 1374 |
* @return bool Returns true on success, false on failure. |
| 1375 |
*/ |
| 1376 |
public function reset (mysqli_stmt $stmt) {} |
| 1377 |
|
| 1378 |
/** |
| 1379 |
* Prepare an SQL statement for execution |
| 1380 |
* @link http://www.php.net/manual/en/mysqli-stmt.prepare.php |
| 1381 |
* @param stmt mysqli_stmt |
| 1382 |
* @param query string <p> |
| 1383 |
* The query, as a string. It must consist of a single SQL statement. |
| 1384 |
* </p> |
| 1385 |
* <p> |
| 1386 |
* You can include one or more parameter markers in the SQL statement by |
| 1387 |
* embedding question mark (?) characters at the |
| 1388 |
* appropriate positions. |
| 1389 |
* </p> |
| 1390 |
* |
| 1391 |
* <p> |
| 1392 |
* You should not add a terminating semicolon or \g |
| 1393 |
* to the statement. |
| 1394 |
* </p> |
| 1395 |
* |
| 1396 |
* |
| 1397 |
* <p> |
| 1398 |
* The markers are legal only in certain places in SQL statements. |
| 1399 |
* For example, they are allowed in the VALUES() list of an INSERT statement |
| 1400 |
* (to specify column values for a row), or in a comparison with a column in |
| 1401 |
* a WHERE clause to specify a comparison value. |
| 1402 |
* </p> |
| 1403 |
* <p> |
| 1404 |
* However, they are not allowed for identifiers (such as table or column names), |
| 1405 |
* in the select list that names the columns to be returned by a SELECT statement), |
| 1406 |
* or to specify both operands of a binary operator such as the = |
| 1407 |
* equal sign. The latter restriction is necessary because it would be impossible |
| 1408 |
* to determine the parameter type. In general, parameters are legal only in Data |
| 1409 |
* Manipulation Language (DML) statements, and not in Data Definition Language |
| 1410 |
* (DDL) statements. |
| 1411 |
* </p> |
| 1412 |
* @return bool Returns true on success, false on failure. |
| 1413 |
*/ |
| 1414 |
public function prepare (mysqli_stmt $stmt, $query) {} |
| 1415 |
|
| 1416 |
/** |
| 1417 |
* Transfers a result set from a prepared statement |
| 1418 |
* @link http://www.php.net/manual/en/mysqli-stmt.store-result.php |
| 1419 |
* @param stmt mysqli_stmt |
| 1420 |
* @return bool Returns true on success, false on failure. |
| 1421 |
*/ |
| 1422 |
public function store_result (mysqli_stmt $stmt) {} |
| 1423 |
|
| 1424 |
/** |
| 1425 |
* Gets a result set from a prepared statement |
| 1426 |
* @link http://www.php.net/manual/en/mysqli-stmt.get-result.php |
| 1427 |
* @param stmt mysqli_stmt |
| 1428 |
* @return mysqli_result a resultset &return.falseforfailure;. |
| 1429 |
*/ |
| 1430 |
public function get_result (mysqli_stmt $stmt) {} |
| 1431 |
|
| 1432 |
} |
| 1433 |
|
| 1434 |
/** |
| 1435 |
* @param link |
| 1436 |
*/ |
| 1437 |
function mysqli_affected_rows ($link) {} |
| 1438 |
|
| 1439 |
/** |
| 1440 |
* @param link |
| 1441 |
* @param mode |
| 1442 |
*/ |
| 1443 |
function mysqli_autocommit ($link, $mode) {} |
| 1444 |
|
| 1445 |
/** |
| 1446 |
* @param link |
| 1447 |
* @param flags[optional] |
| 1448 |
* @param name[optional] |
| 1449 |
*/ |
| 1450 |
function mysqli_begin_transaction ($link, $flags, $name) {} |
| 1451 |
|
| 1452 |
/** |
| 1453 |
* @param link |
| 1454 |
* @param user |
| 1455 |
* @param password |
| 1456 |
* @param database |
| 1457 |
*/ |
| 1458 |
function mysqli_change_user ($link, $user, $password, $database) {} |
| 1459 |
|
| 1460 |
/** |
| 1461 |
* @param link |
| 1462 |
*/ |
| 1463 |
function mysqli_character_set_name ($link) {} |
| 1464 |
|
| 1465 |
/** |
| 1466 |
* @param link |
| 1467 |
*/ |
| 1468 |
function mysqli_close ($link) {} |
| 1469 |
|
| 1470 |
/** |
| 1471 |
* @param link |
| 1472 |
* @param flags[optional] |
| 1473 |
* @param name[optional] |
| 1474 |
*/ |
| 1475 |
function mysqli_commit ($link, $flags, $name) {} |
| 1476 |
|
| 1477 |
/** |
| 1478 |
* &Alias; <methodname>mysqli::__construct</methodname> |
| 1479 |
* @link http://www.php.net/manual/en/function.mysqli-connect.php |
| 1480 |
* @param host[optional] |
| 1481 |
* @param user[optional] |
| 1482 |
* @param password[optional] |
| 1483 |
* @param database[optional] |
| 1484 |
* @param port[optional] |
| 1485 |
* @param socket[optional] |
| 1486 |
*/ |
| 1487 |
function mysqli_connect ($host, $user, $password, $database, $port, $socket) {} |
| 1488 |
|
| 1489 |
function mysqli_connect_errno () {} |
| 1490 |
|
| 1491 |
function mysqli_connect_error () {} |
| 1492 |
|
| 1493 |
/** |
| 1494 |
* @param result |
| 1495 |
* @param offset |
| 1496 |
*/ |
| 1497 |
function mysqli_data_seek ($result, $offset) {} |
| 1498 |
|
| 1499 |
/** |
| 1500 |
* @param link |
| 1501 |
*/ |
| 1502 |
function mysqli_dump_debug_info ($link) {} |
| 1503 |
|
| 1504 |
/** |
| 1505 |
* @param debug_options |
| 1506 |
*/ |
| 1507 |
function mysqli_debug ($debug_options) {} |
| 1508 |
|
| 1509 |
/** |
| 1510 |
* @param link |
| 1511 |
*/ |
| 1512 |
function mysqli_errno ($link) {} |
| 1513 |
|
| 1514 |
/** |
| 1515 |
* @param link |
| 1516 |
*/ |
| 1517 |
function mysqli_error ($link) {} |
| 1518 |
|
| 1519 |
/** |
| 1520 |
* @param link |
| 1521 |
*/ |
| 1522 |
function mysqli_error_list ($link) {} |
| 1523 |
|
| 1524 |
/** |
| 1525 |
* @param stmt |
| 1526 |
*/ |
| 1527 |
function mysqli_stmt_execute ($stmt) {} |
| 1528 |
|
| 1529 |
/** |
| 1530 |
* Alias for <function>mysqli_stmt_execute</function> |
| 1531 |
* @link http://www.php.net/manual/en/function.mysqli-execute.php |
| 1532 |
* @param stmt |
| 1533 |
*/ |
| 1534 |
function mysqli_execute ($stmt) {} |
| 1535 |
|
| 1536 |
/** |
| 1537 |
* @param result |
| 1538 |
*/ |
| 1539 |
function mysqli_fetch_field ($result) {} |
| 1540 |
|
| 1541 |
/** |
| 1542 |
* @param result |
| 1543 |
*/ |
| 1544 |
function mysqli_fetch_fields ($result) {} |
| 1545 |
|
| 1546 |
/** |
| 1547 |
* @param result |
| 1548 |
* @param field_nr |
| 1549 |
*/ |
| 1550 |
function mysqli_fetch_field_direct ($result, $field_nr) {} |
| 1551 |
|
| 1552 |
/** |
| 1553 |
* @param result |
| 1554 |
*/ |
| 1555 |
function mysqli_fetch_lengths ($result) {} |
| 1556 |
|
| 1557 |
/** |
| 1558 |
* @param result |
| 1559 |
*/ |
| 1560 |
function mysqli_fetch_all ($result) {} |
| 1561 |
|
| 1562 |
/** |
| 1563 |
* @param result |
| 1564 |
* @param result_type[optional] |
| 1565 |
*/ |
| 1566 |
function mysqli_fetch_array ($result, $result_type) {} |
| 1567 |
|
| 1568 |
/** |
| 1569 |
* @param result |
| 1570 |
*/ |
| 1571 |
function mysqli_fetch_assoc ($result) {} |
| 1572 |
|
| 1573 |
/** |
| 1574 |
* @param result |
| 1575 |
* @param class_name[optional] |
| 1576 |
* @param params[optional] |
| 1577 |
*/ |
| 1578 |
function mysqli_fetch_object ($result, $class_namearray , $params) {} |
| 1579 |
|
| 1580 |
/** |
| 1581 |
* @param result |
| 1582 |
*/ |
| 1583 |
function mysqli_fetch_row ($result) {} |
| 1584 |
|
| 1585 |
/** |
| 1586 |
* @param link |
| 1587 |
*/ |
| 1588 |
function mysqli_field_count ($link) {} |
| 1589 |
|
| 1590 |
/** |
| 1591 |
* @param result |
| 1592 |
* @param field_nr |
| 1593 |
*/ |
| 1594 |
function mysqli_field_seek ($result, $field_nr) {} |
| 1595 |
|
| 1596 |
/** |
| 1597 |
* @param result |
| 1598 |
*/ |
| 1599 |
function mysqli_field_tell ($result) {} |
| 1600 |
|
| 1601 |
/** |
| 1602 |
* @param result |
| 1603 |
*/ |
| 1604 |
function mysqli_free_result ($result) {} |
| 1605 |
|
| 1606 |
/** |
| 1607 |
* @param link |
| 1608 |
*/ |
| 1609 |
function mysqli_get_connection_stats ($link) {} |
| 1610 |
|
| 1611 |
/** |
| 1612 |
* Returns client per-process statistics |
| 1613 |
* @link http://www.php.net/manual/en/mysqli.get-client-stats.php |
| 1614 |
* @return array an array with client stats if success, false otherwise. |
| 1615 |
*/ |
| 1616 |
function mysqli_get_client_stats () {} |
| 1617 |
|
| 1618 |
/** |
| 1619 |
* @param link |
| 1620 |
*/ |
| 1621 |
function mysqli_get_charset ($link) {} |
| 1622 |
|
| 1623 |
/** |
| 1624 |
* @param link |
| 1625 |
*/ |
| 1626 |
function mysqli_get_client_info ($link) {} |
| 1627 |
|
| 1628 |
/** |
| 1629 |
* Returns the MySQL client version as an integer |
| 1630 |
* @link http://www.php.net/manual/en/mysqli.get-client-version.php |
| 1631 |
* @param link mysqli |
| 1632 |
* @return int A number that represents the MySQL client library version in format: |
| 1633 |
* main_version*10000 + minor_version *100 + sub_version. |
| 1634 |
* For example, 4.1.0 is returned as 40100. |
| 1635 |
* </p> |
| 1636 |
* <p> |
| 1637 |
* This is useful to quickly determine the version of the client library |
| 1638 |
* to know if some capability exits. |
| 1639 |
*/ |
| 1640 |
function mysqli_get_client_version (mysqli $link) {} |
| 1641 |
|
| 1642 |
/** |
| 1643 |
* Return information about open and cached links |
| 1644 |
* @link http://www.php.net/manual/en/function.mysqli-get-links-stats.php |
| 1645 |
* @return array mysqli_get_links_stats returns an associative array |
| 1646 |
* with three elements, keyed as follows: |
| 1647 |
* |
| 1648 |
* |
| 1649 |
* total |
| 1650 |
* |
| 1651 |
* <p> |
| 1652 |
* An integer indicating the total number of open links in |
| 1653 |
* any state. |
| 1654 |
* </p> |
| 1655 |
* |
| 1656 |
* |
| 1657 |
* |
| 1658 |
* active_plinks |
| 1659 |
* |
| 1660 |
* <p> |
| 1661 |
* An integer representing the number of active persistent |
| 1662 |
* connections. |
| 1663 |
* </p> |
| 1664 |
* |
| 1665 |
* |
| 1666 |
* |
| 1667 |
* cached_plinks |
| 1668 |
* |
| 1669 |
* <p> |
| 1670 |
* An integer representing the number of inactive persistent |
| 1671 |
* connections. |
| 1672 |
* </p> |
| 1673 |
*/ |
| 1674 |
function mysqli_get_links_stats () {} |
| 1675 |
|
| 1676 |
/** |
| 1677 |
* @param link |
| 1678 |
*/ |
| 1679 |
function mysqli_get_host_info ($link) {} |
| 1680 |
|
| 1681 |
/** |
| 1682 |
* @param link |
| 1683 |
*/ |
| 1684 |
function mysqli_get_proto_info ($link) {} |
| 1685 |
|
| 1686 |
/** |
| 1687 |
* @param link |
| 1688 |
*/ |
| 1689 |
function mysqli_get_server_info ($link) {} |
| 1690 |
|
| 1691 |
/** |
| 1692 |
* @param link |
| 1693 |
*/ |
| 1694 |
function mysqli_get_server_version ($link) {} |
| 1695 |
|
| 1696 |
/** |
| 1697 |
* @param link |
| 1698 |
*/ |
| 1699 |
function mysqli_get_warnings ($link) {} |
| 1700 |
|
| 1701 |
function mysqli_init () {} |
| 1702 |
|
| 1703 |
/** |
| 1704 |
* @param link |
| 1705 |
*/ |
| 1706 |
function mysqli_info ($link) {} |
| 1707 |
|
| 1708 |
/** |
| 1709 |
* @param link |
| 1710 |
*/ |
| 1711 |
function mysqli_insert_id ($link) {} |
| 1712 |
|
| 1713 |
/** |
| 1714 |
* @param link |
| 1715 |
* @param connection_id |
| 1716 |
*/ |
| 1717 |
function mysqli_kill ($link, $connection_id) {} |
| 1718 |
|
| 1719 |
/** |
| 1720 |
* @param link |
| 1721 |
*/ |
| 1722 |
function mysqli_more_results ($link) {} |
| 1723 |
|
| 1724 |
/** |
| 1725 |
* @param link |
| 1726 |
* @param query |
| 1727 |
*/ |
| 1728 |
function mysqli_multi_query ($link, $query) {} |
| 1729 |
|
| 1730 |
/** |
| 1731 |
* @param link |
| 1732 |
*/ |
| 1733 |
function mysqli_next_result ($link) {} |
| 1734 |
|
| 1735 |
/** |
| 1736 |
* @param result |
| 1737 |
*/ |
| 1738 |
function mysqli_num_fields ($result) {} |
| 1739 |
|
| 1740 |
/** |
| 1741 |
* @param result |
| 1742 |
*/ |
| 1743 |
function mysqli_num_rows ($result) {} |
| 1744 |
|
| 1745 |
/** |
| 1746 |
* @param link |
| 1747 |
* @param option |
| 1748 |
* @param value |
| 1749 |
*/ |
| 1750 |
function mysqli_options ($link, $option, $value) {} |
| 1751 |
|
| 1752 |
/** |
| 1753 |
* @param link |
| 1754 |
*/ |
| 1755 |
function mysqli_ping ($link) {} |
| 1756 |
|
| 1757 |
/** |
| 1758 |
* @param read |
| 1759 |
* @param write |
| 1760 |
* @param error |
| 1761 |
* @param sec |
| 1762 |
* @param usec[optional] |
| 1763 |
*/ |
| 1764 |
function mysqli_poll (array &$read = nullarray , &$write = nullarray , &$error = null, $sec, $usec) {} |
| 1765 |
|
| 1766 |
/** |
| 1767 |
* @param link |
| 1768 |
* @param query |
| 1769 |
*/ |
| 1770 |
function mysqli_prepare ($link, $query) {} |
| 1771 |
|
| 1772 |
/** |
| 1773 |
* &Alias; of <link linkend="mysqli-driver.report-mode">mysqli_driver->report_mode</link> |
| 1774 |
* @link http://www.php.net/manual/en/function.mysqli-report.php |
| 1775 |
* @param flags |
| 1776 |
*/ |
| 1777 |
function mysqli_report ($flags) {} |
| 1778 |
|
| 1779 |
/** |
| 1780 |
* @param link |
| 1781 |
* @param query |
| 1782 |
*/ |
| 1783 |
function mysqli_query ($link, $query) {} |
| 1784 |
|
| 1785 |
/** |
| 1786 |
* @param link |
| 1787 |
* @param host[optional] |
| 1788 |
* @param user[optional] |
| 1789 |
* @param password[optional] |
| 1790 |
* @param database[optional] |
| 1791 |
* @param port[optional] |
| 1792 |
* @param socket[optional] |
| 1793 |
* @param flags[optional] |
| 1794 |
*/ |
| 1795 |
function mysqli_real_connect ($link, $host, $user, $password, $database, $port, $socket, $flags) {} |
| 1796 |
|
| 1797 |
/** |
| 1798 |
* @param link |
| 1799 |
* @param string_to_escape |
| 1800 |
*/ |
| 1801 |
function mysqli_real_escape_string ($link, $string_to_escape) {} |
| 1802 |
|
| 1803 |
/** |
| 1804 |
* @param link |
| 1805 |
* @param query |
| 1806 |
*/ |
| 1807 |
function mysqli_real_query ($link, $query) {} |
| 1808 |
|
| 1809 |
/** |
| 1810 |
* @param link |
| 1811 |
*/ |
| 1812 |
function mysqli_reap_async_query ($link) {} |
| 1813 |
|
| 1814 |
/** |
| 1815 |
* @param link |
| 1816 |
* @param name |
| 1817 |
*/ |
| 1818 |
function mysqli_release_savepoint ($link, $name) {} |
| 1819 |
|
| 1820 |
/** |
| 1821 |
* @param link |
| 1822 |
* @param flags[optional] |
| 1823 |
* @param name[optional] |
| 1824 |
*/ |
| 1825 |
function mysqli_rollback ($link, $flags, $name) {} |
| 1826 |
|
| 1827 |
/** |
| 1828 |
* @param link |
| 1829 |
* @param name |
| 1830 |
*/ |
| 1831 |
function mysqli_savepoint ($link, $name) {} |
| 1832 |
|
| 1833 |
/** |
| 1834 |
* @param link |
| 1835 |
* @param database |
| 1836 |
*/ |
| 1837 |
function mysqli_select_db ($link, $database) {} |
| 1838 |
|
| 1839 |
/** |
| 1840 |
* @param link |
| 1841 |
* @param charset |
| 1842 |
*/ |
| 1843 |
function mysqli_set_charset ($link, $charset) {} |
| 1844 |
|
| 1845 |
/** |
| 1846 |
* @param stmt |
| 1847 |
*/ |
| 1848 |
function mysqli_stmt_affected_rows ($stmt) {} |
| 1849 |
|
| 1850 |
/** |
| 1851 |
* @param stmt |
| 1852 |
* @param attribute |
| 1853 |
*/ |
| 1854 |
function mysqli_stmt_attr_get ($stmt, $attribute) {} |
| 1855 |
|
| 1856 |
/** |
| 1857 |
* @param stmt |
| 1858 |
* @param attribute |
| 1859 |
* @param value |
| 1860 |
*/ |
| 1861 |
function mysqli_stmt_attr_set ($stmt, $attribute, $value) {} |
| 1862 |
|
| 1863 |
/** |
| 1864 |
* @param stmt |
| 1865 |
* @param types |
| 1866 |
* @param vars |
| 1867 |
*/ |
| 1868 |
function mysqli_stmt_bind_param ($stmt, $types, &$vars) {} |
| 1869 |
|
| 1870 |
/** |
| 1871 |
* @param stmt |
| 1872 |
* @param vars |
| 1873 |
*/ |
| 1874 |
function mysqli_stmt_bind_result ($stmt, &$vars) {} |
| 1875 |
|
| 1876 |
/** |
| 1877 |
* @param stmt |
| 1878 |
*/ |
| 1879 |
function mysqli_stmt_close ($stmt) {} |
| 1880 |
|
| 1881 |
/** |
| 1882 |
* @param stmt |
| 1883 |
* @param offset |
| 1884 |
*/ |
| 1885 |
function mysqli_stmt_data_seek ($stmt, $offset) {} |
| 1886 |
|
| 1887 |
/** |
| 1888 |
* @param stmt |
| 1889 |
*/ |
| 1890 |
function mysqli_stmt_errno ($stmt) {} |
| 1891 |
|
| 1892 |
/** |
| 1893 |
* @param stmt |
| 1894 |
*/ |
| 1895 |
function mysqli_stmt_error ($stmt) {} |
| 1896 |
|
| 1897 |
/** |
| 1898 |
* @param stmt |
| 1899 |
*/ |
| 1900 |
function mysqli_stmt_error_list ($stmt) {} |
| 1901 |
|
| 1902 |
/** |
| 1903 |
* @param stmt |
| 1904 |
*/ |
| 1905 |
function mysqli_stmt_fetch ($stmt) {} |
| 1906 |
|
| 1907 |
/** |
| 1908 |
* @param stmt |
| 1909 |
*/ |
| 1910 |
function mysqli_stmt_field_count ($stmt) {} |
| 1911 |
|
| 1912 |
/** |
| 1913 |
* @param stmt |
| 1914 |
*/ |
| 1915 |
function mysqli_stmt_free_result ($stmt) {} |
| 1916 |
|
| 1917 |
/** |
| 1918 |
* @param stmt |
| 1919 |
*/ |
| 1920 |
function mysqli_stmt_get_result ($stmt) {} |
| 1921 |
|
| 1922 |
/** |
| 1923 |
* @param stmt |
| 1924 |
*/ |
| 1925 |
function mysqli_stmt_get_warnings ($stmt) {} |
| 1926 |
|
| 1927 |
/** |
| 1928 |
* @param link |
| 1929 |
*/ |
| 1930 |
function mysqli_stmt_init ($link) {} |
| 1931 |
|
| 1932 |
/** |
| 1933 |
* @param stmt |
| 1934 |
*/ |
| 1935 |
function mysqli_stmt_insert_id ($stmt) {} |
| 1936 |
|
| 1937 |
/** |
| 1938 |
* @param stmt |
| 1939 |
*/ |
| 1940 |
function mysqli_stmt_more_results ($stmt) {} |
| 1941 |
|
| 1942 |
/** |
| 1943 |
* @param stmt |
| 1944 |
*/ |
| 1945 |
function mysqli_stmt_next_result ($stmt) {} |
| 1946 |
|
| 1947 |
/** |
| 1948 |
* @param stmt |
| 1949 |
*/ |
| 1950 |
function mysqli_stmt_num_rows ($stmt) {} |
| 1951 |
|
| 1952 |
/** |
| 1953 |
* @param stmt |
| 1954 |
*/ |
| 1955 |
function mysqli_stmt_param_count ($stmt) {} |
| 1956 |
|
| 1957 |
/** |
| 1958 |
* @param stmt |
| 1959 |
* @param query |
| 1960 |
*/ |
| 1961 |
function mysqli_stmt_prepare ($stmt, $query) {} |
| 1962 |
|
| 1963 |
/** |
| 1964 |
* @param stmt |
| 1965 |
*/ |
| 1966 |
function mysqli_stmt_reset ($stmt) {} |
| 1967 |
|
| 1968 |
/** |
| 1969 |
* @param stmt |
| 1970 |
*/ |
| 1971 |
function mysqli_stmt_result_metadata ($stmt) {} |
| 1972 |
|
| 1973 |
/** |
| 1974 |
* @param stmt |
| 1975 |
* @param param_nr |
| 1976 |
* @param data |
| 1977 |
*/ |
| 1978 |
function mysqli_stmt_send_long_data ($stmt, $param_nr, $data) {} |
| 1979 |
|
| 1980 |
/** |
| 1981 |
* @param stmt |
| 1982 |
*/ |
| 1983 |
function mysqli_stmt_store_result ($stmt) {} |
| 1984 |
|
| 1985 |
/** |
| 1986 |
* @param stmt |
| 1987 |
*/ |
| 1988 |
function mysqli_stmt_sqlstate ($stmt) {} |
| 1989 |
|
| 1990 |
/** |
| 1991 |
* @param link |
| 1992 |
*/ |
| 1993 |
function mysqli_sqlstate ($link) {} |
| 1994 |
|
| 1995 |
/** |
| 1996 |
* @param link |
| 1997 |
* @param key |
| 1998 |
* @param cert |
| 1999 |
* @param certificate_authority |
| 2000 |
* @param certificate_authority_path |
| 2001 |
* @param cipher |
| 2002 |
*/ |
| 2003 |
function mysqli_ssl_set ($link, $key, $cert, $certificate_authority, $certificate_authority_path, $cipher) {} |
| 2004 |
|
| 2005 |
/** |
| 2006 |
* @param link |
| 2007 |
*/ |
| 2008 |
function mysqli_stat ($link) {} |
| 2009 |
|
| 2010 |
/** |
| 2011 |
* @param link |
| 2012 |
* @param flags[optional] |
| 2013 |
*/ |
| 2014 |
function mysqli_store_result ($link, $flags) {} |
| 2015 |
|
| 2016 |
/** |
| 2017 |
* @param link |
| 2018 |
*/ |
| 2019 |
function mysqli_thread_id ($link) {} |
| 2020 |
|
| 2021 |
function mysqli_thread_safe () {} |
| 2022 |
|
| 2023 |
/** |
| 2024 |
* @param link |
| 2025 |
*/ |
| 2026 |
function mysqli_use_result ($link) {} |
| 2027 |
|
| 2028 |
/** |
| 2029 |
* @param link |
| 2030 |
*/ |
| 2031 |
function mysqli_warning_count ($link) {} |
| 2032 |
|
| 2033 |
/** |
| 2034 |
* @param link |
| 2035 |
* @param options |
| 2036 |
*/ |
| 2037 |
function mysqli_refresh ($link, $options) {} |
| 2038 |
|
| 2039 |
/** |
| 2040 |
* &Alias; <function>mysqli_real_escape_string</function> |
| 2041 |
* @link http://www.php.net/manual/en/function.mysqli-escape-string.php |
| 2042 |
* @param link |
| 2043 |
* @param query |
| 2044 |
*/ |
| 2045 |
function mysqli_escape_string ($link, $query) {} |
| 2046 |
|
| 2047 |
function mysqli_set_opt () {} |
| 2048 |
|
| 2049 |
|
| 2050 |
/** |
| 2051 |
* <p> |
| 2052 |
* Read options from the named group from my.cnf |
| 2053 |
* or the file specified with MYSQLI_READ_DEFAULT_FILE |
| 2054 |
* </p> |
| 2055 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2056 |
*/ |
| 2057 |
define ('MYSQLI_READ_DEFAULT_GROUP', 5); |
| 2058 |
|
| 2059 |
/** |
| 2060 |
* <p> |
| 2061 |
* Read options from the named option file instead of from my.cnf |
| 2062 |
* </p> |
| 2063 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2064 |
*/ |
| 2065 |
define ('MYSQLI_READ_DEFAULT_FILE', 4); |
| 2066 |
|
| 2067 |
/** |
| 2068 |
* <p> |
| 2069 |
* Connect timeout in seconds |
| 2070 |
* </p> |
| 2071 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2072 |
*/ |
| 2073 |
define ('MYSQLI_OPT_CONNECT_TIMEOUT', 0); |
| 2074 |
|
| 2075 |
/** |
| 2076 |
* <p> |
| 2077 |
* Enables command LOAD LOCAL INFILE |
| 2078 |
* </p> |
| 2079 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2080 |
*/ |
| 2081 |
define ('MYSQLI_OPT_LOCAL_INFILE', 8); |
| 2082 |
|
| 2083 |
/** |
| 2084 |
* <p> |
| 2085 |
* Command to execute when connecting to MySQL server. Will automatically be re-executed when reconnecting. |
| 2086 |
* </p> |
| 2087 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2088 |
*/ |
| 2089 |
define ('MYSQLI_INIT_COMMAND', 3); |
| 2090 |
define ('MYSQLI_OPT_NET_CMD_BUFFER_SIZE', 202); |
| 2091 |
define ('MYSQLI_OPT_NET_READ_BUFFER_SIZE', 203); |
| 2092 |
define ('MYSQLI_OPT_INT_AND_FLOAT_NATIVE', 201); |
| 2093 |
define ('MYSQLI_OPT_SSL_VERIFY_SERVER_CERT', 21); |
| 2094 |
define ('MYSQLI_SERVER_PUBLIC_KEY', 27); |
| 2095 |
|
| 2096 |
/** |
| 2097 |
* <p> |
| 2098 |
* Use SSL (encrypted protocol). This option should not be set by application programs; |
| 2099 |
* it is set internally in the MySQL client library |
| 2100 |
* </p> |
| 2101 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2102 |
*/ |
| 2103 |
define ('MYSQLI_CLIENT_SSL', 2048); |
| 2104 |
|
| 2105 |
/** |
| 2106 |
* <p> |
| 2107 |
* Use compression protocol |
| 2108 |
* </p> |
| 2109 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2110 |
*/ |
| 2111 |
define ('MYSQLI_CLIENT_COMPRESS', 32); |
| 2112 |
|
| 2113 |
/** |
| 2114 |
* <p> |
| 2115 |
* Allow interactive_timeout seconds |
| 2116 |
* (instead of wait_timeout seconds) of inactivity before |
| 2117 |
* closing the connection. The client's session |
| 2118 |
* wait_timeout variable will be set to |
| 2119 |
* the value of the session interactive_timeout variable. |
| 2120 |
* </p> |
| 2121 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2122 |
*/ |
| 2123 |
define ('MYSQLI_CLIENT_INTERACTIVE', 1024); |
| 2124 |
|
| 2125 |
/** |
| 2126 |
* <p> |
| 2127 |
* Allow spaces after function names. Makes all functions names reserved words. |
| 2128 |
* </p> |
| 2129 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2130 |
*/ |
| 2131 |
define ('MYSQLI_CLIENT_IGNORE_SPACE', 256); |
| 2132 |
|
| 2133 |
/** |
| 2134 |
* <p> |
| 2135 |
* Don't allow the db_name.tbl_name.col_name syntax. |
| 2136 |
* </p> |
| 2137 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2138 |
*/ |
| 2139 |
define ('MYSQLI_CLIENT_NO_SCHEMA', 16); |
| 2140 |
define ('MYSQLI_CLIENT_FOUND_ROWS', 2); |
| 2141 |
define ('MYSQLI_CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS', 4194304); |
| 2142 |
define ('MYSQLI_OPT_CAN_HANDLE_EXPIRED_PASSWORDS', 29); |
| 2143 |
|
| 2144 |
/** |
| 2145 |
* <p> |
| 2146 |
* For using buffered resultsets |
| 2147 |
* </p> |
| 2148 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2149 |
*/ |
| 2150 |
define ('MYSQLI_STORE_RESULT', 0); |
| 2151 |
|
| 2152 |
/** |
| 2153 |
* <p> |
| 2154 |
* For using unbuffered resultsets |
| 2155 |
* </p> |
| 2156 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2157 |
*/ |
| 2158 |
define ('MYSQLI_USE_RESULT', 1); |
| 2159 |
define ('MYSQLI_ASYNC', 8); |
| 2160 |
define ('MYSQLI_STORE_RESULT_COPY_DATA', 16); |
| 2161 |
|
| 2162 |
/** |
| 2163 |
* <p> |
| 2164 |
* Columns are returned into the array having the fieldname as the array index. |
| 2165 |
* </p> |
| 2166 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2167 |
*/ |
| 2168 |
define ('MYSQLI_ASSOC', 1); |
| 2169 |
|
| 2170 |
/** |
| 2171 |
* <p> |
| 2172 |
* Columns are returned into the array having an enumerated index. |
| 2173 |
* </p> |
| 2174 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2175 |
*/ |
| 2176 |
define ('MYSQLI_NUM', 2); |
| 2177 |
|
| 2178 |
/** |
| 2179 |
* <p> |
| 2180 |
* Columns are returned into the array having both a numerical index and the fieldname as the associative index. |
| 2181 |
* </p> |
| 2182 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2183 |
*/ |
| 2184 |
define ('MYSQLI_BOTH', 3); |
| 2185 |
|
| 2186 |
/** |
| 2187 |
* <p> |
| 2188 |
* </p> |
| 2189 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2190 |
*/ |
| 2191 |
define ('MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH', 0); |
| 2192 |
|
| 2193 |
/** |
| 2194 |
* <p> |
| 2195 |
* </p> |
| 2196 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2197 |
*/ |
| 2198 |
define ('MYSQLI_STMT_ATTR_CURSOR_TYPE', 1); |
| 2199 |
|
| 2200 |
/** |
| 2201 |
* <p> |
| 2202 |
* </p> |
| 2203 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2204 |
*/ |
| 2205 |
define ('MYSQLI_CURSOR_TYPE_NO_CURSOR', 0); |
| 2206 |
|
| 2207 |
/** |
| 2208 |
* <p> |
| 2209 |
* </p> |
| 2210 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2211 |
*/ |
| 2212 |
define ('MYSQLI_CURSOR_TYPE_READ_ONLY', 1); |
| 2213 |
|
| 2214 |
/** |
| 2215 |
* <p> |
| 2216 |
* </p> |
| 2217 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2218 |
*/ |
| 2219 |
define ('MYSQLI_CURSOR_TYPE_FOR_UPDATE', 2); |
| 2220 |
|
| 2221 |
/** |
| 2222 |
* <p> |
| 2223 |
* </p> |
| 2224 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2225 |
*/ |
| 2226 |
define ('MYSQLI_CURSOR_TYPE_SCROLLABLE', 4); |
| 2227 |
|
| 2228 |
/** |
| 2229 |
* <p> |
| 2230 |
* </p> |
| 2231 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2232 |
*/ |
| 2233 |
define ('MYSQLI_STMT_ATTR_PREFETCH_ROWS', 2); |
| 2234 |
|
| 2235 |
/** |
| 2236 |
* <p> |
| 2237 |
* Indicates that a field is defined as NOT NULL |
| 2238 |
* </p> |
| 2239 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2240 |
*/ |
| 2241 |
define ('MYSQLI_NOT_NULL_FLAG', 1); |
| 2242 |
|
| 2243 |
/** |
| 2244 |
* <p> |
| 2245 |
* Field is part of a primary index |
| 2246 |
* </p> |
| 2247 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2248 |
*/ |
| 2249 |
define ('MYSQLI_PRI_KEY_FLAG', 2); |
| 2250 |
|
| 2251 |
/** |
| 2252 |
* <p> |
| 2253 |
* Field is part of a unique index. |
| 2254 |
* </p> |
| 2255 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2256 |
*/ |
| 2257 |
define ('MYSQLI_UNIQUE_KEY_FLAG', 4); |
| 2258 |
|
| 2259 |
/** |
| 2260 |
* <p> |
| 2261 |
* Field is part of an index. |
| 2262 |
* </p> |
| 2263 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2264 |
*/ |
| 2265 |
define ('MYSQLI_MULTIPLE_KEY_FLAG', 8); |
| 2266 |
|
| 2267 |
/** |
| 2268 |
* <p> |
| 2269 |
* Field is defined as BLOB |
| 2270 |
* </p> |
| 2271 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2272 |
*/ |
| 2273 |
define ('MYSQLI_BLOB_FLAG', 16); |
| 2274 |
|
| 2275 |
/** |
| 2276 |
* <p> |
| 2277 |
* Field is defined as UNSIGNED |
| 2278 |
* </p> |
| 2279 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2280 |
*/ |
| 2281 |
define ('MYSQLI_UNSIGNED_FLAG', 32); |
| 2282 |
|
| 2283 |
/** |
| 2284 |
* <p> |
| 2285 |
* Field is defined as ZEROFILL |
| 2286 |
* </p> |
| 2287 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2288 |
*/ |
| 2289 |
define ('MYSQLI_ZEROFILL_FLAG', 64); |
| 2290 |
|
| 2291 |
/** |
| 2292 |
* <p> |
| 2293 |
* Field is defined as AUTO_INCREMENT |
| 2294 |
* </p> |
| 2295 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2296 |
*/ |
| 2297 |
define ('MYSQLI_AUTO_INCREMENT_FLAG', 512); |
| 2298 |
|
| 2299 |
/** |
| 2300 |
* <p> |
| 2301 |
* Field is defined as TIMESTAMP |
| 2302 |
* </p> |
| 2303 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2304 |
*/ |
| 2305 |
define ('MYSQLI_TIMESTAMP_FLAG', 1024); |
| 2306 |
|
| 2307 |
/** |
| 2308 |
* <p> |
| 2309 |
* Field is defined as SET |
| 2310 |
* </p> |
| 2311 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2312 |
*/ |
| 2313 |
define ('MYSQLI_SET_FLAG', 2048); |
| 2314 |
|
| 2315 |
/** |
| 2316 |
* <p> |
| 2317 |
* Field is defined as NUMERIC |
| 2318 |
* </p> |
| 2319 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2320 |
*/ |
| 2321 |
define ('MYSQLI_NUM_FLAG', 32768); |
| 2322 |
|
| 2323 |
/** |
| 2324 |
* <p> |
| 2325 |
* Field is part of an multi-index |
| 2326 |
* </p> |
| 2327 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2328 |
*/ |
| 2329 |
define ('MYSQLI_PART_KEY_FLAG', 16384); |
| 2330 |
|
| 2331 |
/** |
| 2332 |
* <p> |
| 2333 |
* Field is part of GROUP BY |
| 2334 |
* </p> |
| 2335 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2336 |
*/ |
| 2337 |
define ('MYSQLI_GROUP_FLAG', 32768); |
| 2338 |
|
| 2339 |
/** |
| 2340 |
* <p> |
| 2341 |
* Field is defined as ENUM. Available since PHP 5.3.0. |
| 2342 |
* </p> |
| 2343 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2344 |
*/ |
| 2345 |
define ('MYSQLI_ENUM_FLAG', 256); |
| 2346 |
|
| 2347 |
/** |
| 2348 |
* <p> |
| 2349 |
* Field is defined as BINARY. Available since PHP 5.3.0. |
| 2350 |
* </p> |
| 2351 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2352 |
*/ |
| 2353 |
define ('MYSQLI_BINARY_FLAG', 128); |
| 2354 |
define ('MYSQLI_NO_DEFAULT_VALUE_FLAG', 4096); |
| 2355 |
define ('MYSQLI_ON_UPDATE_NOW_FLAG', 8192); |
| 2356 |
|
| 2357 |
/** |
| 2358 |
* <p> |
| 2359 |
* Field is defined as DECIMAL |
| 2360 |
* </p> |
| 2361 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2362 |
*/ |
| 2363 |
define ('MYSQLI_TYPE_DECIMAL', 0); |
| 2364 |
|
| 2365 |
/** |
| 2366 |
* <p> |
| 2367 |
* Field is defined as TINYINT |
| 2368 |
* </p> |
| 2369 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2370 |
*/ |
| 2371 |
define ('MYSQLI_TYPE_TINY', 1); |
| 2372 |
|
| 2373 |
/** |
| 2374 |
* <p> |
| 2375 |
* Field is defined as SMALLINT |
| 2376 |
* </p> |
| 2377 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2378 |
*/ |
| 2379 |
define ('MYSQLI_TYPE_SHORT', 2); |
| 2380 |
|
| 2381 |
/** |
| 2382 |
* <p> |
| 2383 |
* Field is defined as INT |
| 2384 |
* </p> |
| 2385 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2386 |
*/ |
| 2387 |
define ('MYSQLI_TYPE_LONG', 3); |
| 2388 |
|
| 2389 |
/** |
| 2390 |
* <p> |
| 2391 |
* Field is defined as FLOAT |
| 2392 |
* </p> |
| 2393 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2394 |
*/ |
| 2395 |
define ('MYSQLI_TYPE_FLOAT', 4); |
| 2396 |
|
| 2397 |
/** |
| 2398 |
* <p> |
| 2399 |
* Field is defined as DOUBLE |
| 2400 |
* </p> |
| 2401 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2402 |
*/ |
| 2403 |
define ('MYSQLI_TYPE_DOUBLE', 5); |
| 2404 |
|
| 2405 |
/** |
| 2406 |
* <p> |
| 2407 |
* Field is defined as DEFAULT NULL |
| 2408 |
* </p> |
| 2409 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2410 |
*/ |
| 2411 |
define ('MYSQLI_TYPE_NULL', 6); |
| 2412 |
|
| 2413 |
/** |
| 2414 |
* <p> |
| 2415 |
* Field is defined as TIMESTAMP |
| 2416 |
* </p> |
| 2417 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2418 |
*/ |
| 2419 |
define ('MYSQLI_TYPE_TIMESTAMP', 7); |
| 2420 |
|
| 2421 |
/** |
| 2422 |
* <p> |
| 2423 |
* Field is defined as BIGINT |
| 2424 |
* </p> |
| 2425 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2426 |
*/ |
| 2427 |
define ('MYSQLI_TYPE_LONGLONG', 8); |
| 2428 |
|
| 2429 |
/** |
| 2430 |
* <p> |
| 2431 |
* Field is defined as MEDIUMINT |
| 2432 |
* </p> |
| 2433 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2434 |
*/ |
| 2435 |
define ('MYSQLI_TYPE_INT24', 9); |
| 2436 |
|
| 2437 |
/** |
| 2438 |
* <p> |
| 2439 |
* Field is defined as DATE |
| 2440 |
* </p> |
| 2441 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2442 |
*/ |
| 2443 |
define ('MYSQLI_TYPE_DATE', 10); |
| 2444 |
|
| 2445 |
/** |
| 2446 |
* <p> |
| 2447 |
* Field is defined as TIME |
| 2448 |
* </p> |
| 2449 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2450 |
*/ |
| 2451 |
define ('MYSQLI_TYPE_TIME', 11); |
| 2452 |
|
| 2453 |
/** |
| 2454 |
* <p> |
| 2455 |
* Field is defined as DATETIME |
| 2456 |
* </p> |
| 2457 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2458 |
*/ |
| 2459 |
define ('MYSQLI_TYPE_DATETIME', 12); |
| 2460 |
|
| 2461 |
/** |
| 2462 |
* <p> |
| 2463 |
* Field is defined as YEAR |
| 2464 |
* </p> |
| 2465 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2466 |
*/ |
| 2467 |
define ('MYSQLI_TYPE_YEAR', 13); |
| 2468 |
|
| 2469 |
/** |
| 2470 |
* <p> |
| 2471 |
* Field is defined as DATE |
| 2472 |
* </p> |
| 2473 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2474 |
*/ |
| 2475 |
define ('MYSQLI_TYPE_NEWDATE', 14); |
| 2476 |
|
| 2477 |
/** |
| 2478 |
* <p> |
| 2479 |
* Field is defined as ENUM |
| 2480 |
* </p> |
| 2481 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2482 |
*/ |
| 2483 |
define ('MYSQLI_TYPE_ENUM', 247); |
| 2484 |
|
| 2485 |
/** |
| 2486 |
* <p> |
| 2487 |
* Field is defined as SET |
| 2488 |
* </p> |
| 2489 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2490 |
*/ |
| 2491 |
define ('MYSQLI_TYPE_SET', 248); |
| 2492 |
|
| 2493 |
/** |
| 2494 |
* <p> |
| 2495 |
* Field is defined as TINYBLOB |
| 2496 |
* </p> |
| 2497 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2498 |
*/ |
| 2499 |
define ('MYSQLI_TYPE_TINY_BLOB', 249); |
| 2500 |
|
| 2501 |
/** |
| 2502 |
* <p> |
| 2503 |
* Field is defined as MEDIUMBLOB |
| 2504 |
* </p> |
| 2505 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2506 |
*/ |
| 2507 |
define ('MYSQLI_TYPE_MEDIUM_BLOB', 250); |
| 2508 |
|
| 2509 |
/** |
| 2510 |
* <p> |
| 2511 |
* Field is defined as LONGBLOB |
| 2512 |
* </p> |
| 2513 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2514 |
*/ |
| 2515 |
define ('MYSQLI_TYPE_LONG_BLOB', 251); |
| 2516 |
|
| 2517 |
/** |
| 2518 |
* <p> |
| 2519 |
* Field is defined as BLOB |
| 2520 |
* </p> |
| 2521 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2522 |
*/ |
| 2523 |
define ('MYSQLI_TYPE_BLOB', 252); |
| 2524 |
|
| 2525 |
/** |
| 2526 |
* <p> |
| 2527 |
* Field is defined as VARCHAR |
| 2528 |
* </p> |
| 2529 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2530 |
*/ |
| 2531 |
define ('MYSQLI_TYPE_VAR_STRING', 253); |
| 2532 |
|
| 2533 |
/** |
| 2534 |
* <p> |
| 2535 |
* Field is defined as CHAR or BINARY |
| 2536 |
* </p> |
| 2537 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2538 |
*/ |
| 2539 |
define ('MYSQLI_TYPE_STRING', 254); |
| 2540 |
|
| 2541 |
/** |
| 2542 |
* <p> |
| 2543 |
* Field is defined as TINYINT. |
| 2544 |
* For CHAR, see MYSQLI_TYPE_STRING |
| 2545 |
* </p> |
| 2546 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2547 |
*/ |
| 2548 |
define ('MYSQLI_TYPE_CHAR', 1); |
| 2549 |
|
| 2550 |
/** |
| 2551 |
* <p> |
| 2552 |
* Field is defined as INTERVAL |
| 2553 |
* </p> |
| 2554 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2555 |
*/ |
| 2556 |
define ('MYSQLI_TYPE_INTERVAL', 247); |
| 2557 |
|
| 2558 |
/** |
| 2559 |
* <p> |
| 2560 |
* Field is defined as GEOMETRY |
| 2561 |
* </p> |
| 2562 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2563 |
*/ |
| 2564 |
define ('MYSQLI_TYPE_GEOMETRY', 255); |
| 2565 |
|
| 2566 |
/** |
| 2567 |
* <p> |
| 2568 |
* Precision math DECIMAL or NUMERIC field (MySQL 5.0.3 and up) |
| 2569 |
* </p> |
| 2570 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2571 |
*/ |
| 2572 |
define ('MYSQLI_TYPE_NEWDECIMAL', 246); |
| 2573 |
|
| 2574 |
/** |
| 2575 |
* <p> |
| 2576 |
* Field is defined as BIT (MySQL 5.0.3 and up) |
| 2577 |
* </p> |
| 2578 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2579 |
*/ |
| 2580 |
define ('MYSQLI_TYPE_BIT', 16); |
| 2581 |
|
| 2582 |
/** |
| 2583 |
* <p> |
| 2584 |
* </p> |
| 2585 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2586 |
*/ |
| 2587 |
define ('MYSQLI_SET_CHARSET_NAME', 7); |
| 2588 |
define ('MYSQLI_SET_CHARSET_DIR', 6); |
| 2589 |
|
| 2590 |
/** |
| 2591 |
* <p> |
| 2592 |
* No more data available for bind variable |
| 2593 |
* </p> |
| 2594 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2595 |
*/ |
| 2596 |
define ('MYSQLI_NO_DATA', 100); |
| 2597 |
|
| 2598 |
/** |
| 2599 |
* <p> |
| 2600 |
* Data truncation occurred. Available since PHP 5.1.0 and MySQL 5.0.5. |
| 2601 |
* </p> |
| 2602 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2603 |
*/ |
| 2604 |
define ('MYSQLI_DATA_TRUNCATED', 101); |
| 2605 |
|
| 2606 |
/** |
| 2607 |
* <p> |
| 2608 |
* Report if no index or bad index was used in a query. |
| 2609 |
* </p> |
| 2610 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2611 |
*/ |
| 2612 |
define ('MYSQLI_REPORT_INDEX', 4); |
| 2613 |
|
| 2614 |
/** |
| 2615 |
* <p> |
| 2616 |
* Report errors from mysqli function calls. |
| 2617 |
* </p> |
| 2618 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2619 |
*/ |
| 2620 |
define ('MYSQLI_REPORT_ERROR', 1); |
| 2621 |
|
| 2622 |
/** |
| 2623 |
* <p> |
| 2624 |
* Throw a mysqli_sql_exception for errors instead of warnings. |
| 2625 |
* </p> |
| 2626 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2627 |
*/ |
| 2628 |
define ('MYSQLI_REPORT_STRICT', 2); |
| 2629 |
|
| 2630 |
/** |
| 2631 |
* <p> |
| 2632 |
* Set all options on (report all). |
| 2633 |
* </p> |
| 2634 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2635 |
*/ |
| 2636 |
define ('MYSQLI_REPORT_ALL', 255); |
| 2637 |
|
| 2638 |
/** |
| 2639 |
* <p> |
| 2640 |
* Turns reporting off. |
| 2641 |
* </p> |
| 2642 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2643 |
*/ |
| 2644 |
define ('MYSQLI_REPORT_OFF', 0); |
| 2645 |
|
| 2646 |
/** |
| 2647 |
* <p> |
| 2648 |
* Is set to 1 if mysqli_debug functionality is enabled. |
| 2649 |
* </p> |
| 2650 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2651 |
*/ |
| 2652 |
define ('MYSQLI_DEBUG_TRACE_ENABLED', 0); |
| 2653 |
|
| 2654 |
/** |
| 2655 |
* <p> |
| 2656 |
* </p> |
| 2657 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2658 |
*/ |
| 2659 |
define ('MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED', 16); |
| 2660 |
|
| 2661 |
/** |
| 2662 |
* <p> |
| 2663 |
* </p> |
| 2664 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2665 |
*/ |
| 2666 |
define ('MYSQLI_SERVER_QUERY_NO_INDEX_USED', 32); |
| 2667 |
define ('MYSQLI_SERVER_QUERY_WAS_SLOW', 2048); |
| 2668 |
define ('MYSQLI_SERVER_PS_OUT_PARAMS', 4096); |
| 2669 |
|
| 2670 |
/** |
| 2671 |
* <p> |
| 2672 |
* Refreshes the grant tables. |
| 2673 |
* </p> |
| 2674 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2675 |
*/ |
| 2676 |
define ('MYSQLI_REFRESH_GRANT', 1); |
| 2677 |
|
| 2678 |
/** |
| 2679 |
* <p> |
| 2680 |
* Flushes the logs, like executing the |
| 2681 |
* FLUSH LOGS SQL statement. |
| 2682 |
* </p> |
| 2683 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2684 |
*/ |
| 2685 |
define ('MYSQLI_REFRESH_LOG', 2); |
| 2686 |
|
| 2687 |
/** |
| 2688 |
* <p> |
| 2689 |
* Flushes the table cache, like executing the |
| 2690 |
* FLUSH TABLES SQL statement. |
| 2691 |
* </p> |
| 2692 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2693 |
*/ |
| 2694 |
define ('MYSQLI_REFRESH_TABLES', 4); |
| 2695 |
|
| 2696 |
/** |
| 2697 |
* <p> |
| 2698 |
* Flushes the host cache, like executing the |
| 2699 |
* FLUSH HOSTS SQL statement. |
| 2700 |
* </p> |
| 2701 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2702 |
*/ |
| 2703 |
define ('MYSQLI_REFRESH_HOSTS', 8); |
| 2704 |
|
| 2705 |
/** |
| 2706 |
* <p> |
| 2707 |
* Reset the status variables, like executing the |
| 2708 |
* FLUSH STATUS SQL statement. |
| 2709 |
* </p> |
| 2710 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2711 |
*/ |
| 2712 |
define ('MYSQLI_REFRESH_STATUS', 16); |
| 2713 |
|
| 2714 |
/** |
| 2715 |
* <p> |
| 2716 |
* Flushes the thread cache. |
| 2717 |
* </p> |
| 2718 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2719 |
*/ |
| 2720 |
define ('MYSQLI_REFRESH_THREADS', 32); |
| 2721 |
|
| 2722 |
/** |
| 2723 |
* <p> |
| 2724 |
* On a slave replication server: resets the master server information, and |
| 2725 |
* restarts the slave. Like executing the RESET SLAVE |
| 2726 |
* SQL statement. |
| 2727 |
* </p> |
| 2728 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2729 |
*/ |
| 2730 |
define ('MYSQLI_REFRESH_SLAVE', 64); |
| 2731 |
|
| 2732 |
/** |
| 2733 |
* <p> |
| 2734 |
* On a master replication server: removes the binary log files listed in the |
| 2735 |
* binary log index, and truncates the index file. Like executing the |
| 2736 |
* RESET MASTER SQL statement. |
| 2737 |
* </p> |
| 2738 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2739 |
*/ |
| 2740 |
define ('MYSQLI_REFRESH_MASTER', 128); |
| 2741 |
define ('MYSQLI_REFRESH_BACKUP_LOG', 2097152); |
| 2742 |
define ('MYSQLI_TRANS_START_WITH_CONSISTENT_SNAPSHOT', 1); |
| 2743 |
define ('MYSQLI_TRANS_START_READ_WRITE', 2); |
| 2744 |
define ('MYSQLI_TRANS_START_READ_ONLY', 4); |
| 2745 |
|
| 2746 |
/** |
| 2747 |
* <p> |
| 2748 |
* Appends "AND CHAIN" to mysqli_commit or |
| 2749 |
* mysqli_rollback. |
| 2750 |
* </p> |
| 2751 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2752 |
*/ |
| 2753 |
define ('MYSQLI_TRANS_COR_AND_CHAIN', 1); |
| 2754 |
|
| 2755 |
/** |
| 2756 |
* <p> |
| 2757 |
* Appends "AND NO CHAIN" to mysqli_commit or |
| 2758 |
* mysqli_rollback. |
| 2759 |
* </p> |
| 2760 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2761 |
*/ |
| 2762 |
define ('MYSQLI_TRANS_COR_AND_NO_CHAIN', 2); |
| 2763 |
|
| 2764 |
/** |
| 2765 |
* <p> |
| 2766 |
* Appends "RELEASE" to mysqli_commit or |
| 2767 |
* mysqli_rollback. |
| 2768 |
* </p> |
| 2769 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2770 |
*/ |
| 2771 |
define ('MYSQLI_TRANS_COR_RELEASE', 4); |
| 2772 |
|
| 2773 |
/** |
| 2774 |
* <p> |
| 2775 |
* Appends "NO RELEASE" to mysqli_commit or |
| 2776 |
* mysqli_rollback. |
| 2777 |
* </p> |
| 2778 |
* @link http://www.php.net/manual/en/mysqli.constants.php |
| 2779 |
*/ |
| 2780 |
define ('MYSQLI_TRANS_COR_NO_RELEASE', 8); |
| 2781 |
|
| 2782 |
// End of mysqli v.0.1 |
| 2783 |
?> |