Changeset 5c461ba in github for program/include/rcube_mdb2.php
- Timestamp:
- Sep 29, 2010 12:47:05 PM (3 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 33da0b4
- Parents:
- c609784
- File:
-
- 1 edited
-
program/include/rcube_mdb2.php (modified) (24 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcube_mdb2.php
r8603bbb r5c461ba 53 53 * Object constructor 54 54 * 55 * @param string DSN for read/write operations56 * @param string Optional DSN for read only operations55 * @param string $db_dsnw DSN for read/write operations 56 * @param string $db_dsnr Optional DSN for read only operations 57 57 */ 58 58 function __construct($db_dsnw, $db_dsnr='', $pconn=false) … … 73 73 * Connect to specific database 74 74 * 75 * @param string DSN for DB connections76 * @return objectPEAR database handle75 * @param string $dsn DSN for DB connections 76 * @return MDB2 PEAR database handle 77 77 * @access private 78 78 */ … … 117 117 * Connect to appropiate database depending on the operation 118 118 * 119 * @param string Connection mode (r|w)119 * @param string $mode Connection mode (r|w) 120 120 * @access public 121 121 */ … … 150 150 * Activate/deactivate debug mode 151 151 * 152 * @param boolean True if SQL queries should be logged152 * @param boolean $dbg True if SQL queries should be logged 153 153 * @access public 154 154 */ … … 228 228 * Execute a SQL query with limits 229 229 * 230 * @param string SQL query to execute231 * @param number Offset for LIMIT statement232 * @param number Number of rows for LIMIT statement233 * @param array Values to be inserted in query230 * @param string $query SQL query to execute 231 * @param number $offset Offset for LIMIT statement 232 * @param number $numrows Number of rows for LIMIT statement 233 * @param array $params Values to be inserted in query 234 234 * @return number Query handle identifier 235 235 * @access private … … 280 280 * If no query handle is specified, the last query will be taken as reference 281 281 * 282 * @param number Optional query handle identifier282 * @param number $res_id Optional query handle identifier 283 283 * @return mixed Number of rows or false on failure 284 284 * @access public … … 299 299 * Get number of affected rows for the last query 300 300 * 301 * @param number Optional query handle identifier301 * @param number $res_id Optional query handle identifier 302 302 * @return mixed Number of rows or false on failure 303 303 * @access public … … 316 316 * For Postgres databases, a sequence name is required 317 317 * 318 * @param string Table name (to find the incremented sequence)318 * @param string $table Table name (to find the incremented sequence) 319 319 * @return mixed ID or false on failure 320 320 * @access public … … 344 344 * If no query handle is specified, the last query will be taken as reference 345 345 * 346 * @param number Optional query handle identifier346 * @param number $res_id Optional query handle identifier 347 347 * @return mixed Array with col values or false on failure 348 348 * @access public … … 359 359 * If no query handle is specified, the last query will be taken as reference 360 360 * 361 * @param number Optional query handle identifier361 * @param number $res_id Optional query handle identifier 362 362 * @return mixed Array with col values or false on failure 363 363 * @access public … … 373 373 * Get col values for a result row 374 374 * 375 * @param object Queryresult handle376 * @param number Fetch mode identifier375 * @param MDB2_Result_Common Query $result result handle 376 * @param number $mode Fetch mode identifier 377 377 * @return mixed Array with col values or false on failure 378 378 * @access private … … 412 412 * Formats input so it can be safely used in a query 413 413 * 414 * @param mixed Value to quote415 * @param string Type of data414 * @param mixed $input Value to quote 415 * @param string $type Type of data 416 416 * @return string Quoted/converted string for use in query 417 417 * @access public … … 434 434 * Quotes a string so it can be safely used as a table or column name 435 435 * 436 * @param string Value to quote436 * @param string $str Value to quote 437 437 * @return string Quoted string for use in query 438 438 * @deprecated Replaced by rcube_MDB2::quote_identifier … … 449 449 * Quotes a string so it can be safely used as a table or column name 450 450 * 451 * @param string Value to quote451 * @param string $str Value to quote 452 452 * @return string Quoted string for use in query 453 453 * @access public … … 465 465 * Escapes a string 466 466 * 467 * @param string The string to be escaped467 * @param string $str The string to be escaped 468 468 * @return string The escaped string 469 469 * @access public … … 501 501 * Return list of elements for use with SQL's IN clause 502 502 * 503 * @param array Input array504 * @param string Type of data503 * @param array $arr Input array 504 * @param string $type Type of data 505 505 * @return string Comma-separated list of quoted values for use in query 506 506 * @access public … … 521 521 * Return SQL statement to convert a field value into a unix timestamp 522 522 * 523 * @param string Field name523 * @param string $field Field name 524 524 * @return string SQL statement to use in query 525 525 * @access public … … 544 544 * Return SQL statement to convert from a unix timestamp 545 545 * 546 * @param string Field name546 * @param string $timestamp Field name 547 547 * @return string SQL statement to use in query 548 548 * @access public … … 565 565 * Return SQL statement for case insensitive LIKE 566 566 * 567 * @param string Field name568 * @param string Search value567 * @param string $column Field name 568 * @param string $value Search value 569 569 * @return string SQL statement to use in query 570 570 * @access public … … 585 585 * Encodes non-UTF-8 characters in string/array/object (recursive) 586 586 * 587 * @param mixed Data to fix587 * @param mixed $input Data to fix 588 588 * @return mixed Properly UTF-8 encoded data 589 589 * @access public … … 609 609 * Decodes encoded UTF-8 string/object/array (recursive) 610 610 * 611 * @param mixed Input data611 * @param mixed $input Input data 612 612 * @return mixed Decoded data 613 613 * @access public … … 633 633 * Adds a query result and returns a handle ID 634 634 * 635 * @param object Query handle635 * @param object $res Query handle 636 636 * @return mixed Handle ID 637 637 * @access private … … 661 661 * If no ID is specified, the last resource handle will be returned 662 662 * 663 * @param number Handle ID663 * @param number $res_id Handle ID 664 664 * @return mixed Resource handle or false on failure 665 665 * @access private … … 681 681 * Create a sqlite database from a file 682 682 * 683 * @param objectSQLite database handle684 * @param string File path to use for DB creation683 * @param MDB2 $dbh SQLite database handle 684 * @param string $file_name File path to use for DB creation 685 685 * @access private 686 686 */
Note: See TracChangeset
for help on using the changeset viewer.
