@@ -524,6 +524,9 @@ discard block |
||
524 | 524 | return array($sql,$this->qstr($sql2),$max); |
525 | 525 | } |
526 | 526 | |
527 | + /** |
|
528 | + * @param string $sql |
|
529 | + */ |
|
527 | 530 | function PrepareSP($sql) |
528 | 531 | { |
529 | 532 | if (!$this->_has_mssql_init) { |
@@ -577,6 +580,11 @@ discard block |
||
577 | 580 | |
578 | 581 | See mssql_bind documentation at php.net. |
579 | 582 | */ |
583 | + |
|
584 | + /** |
|
585 | + * @param integer $var |
|
586 | + * @param string $name |
|
587 | + */ |
|
580 | 588 | function Parameter(&$stmt, &$var, $name, $isOutput=false, $maxLen=4000, $type=false) |
581 | 589 | { |
582 | 590 | if (!$this->_has_mssql_init) { |
@@ -40,6 +40,9 @@ discard block |
||
40 | 40 | |
41 | 41 | # define the LOB descriptor type for the given type |
42 | 42 | # returns false if no LOB descriptor |
43 | +/** |
|
44 | + * @param boolean $type |
|
45 | + */ |
|
43 | 46 | function oci_lob_desc($type) { |
44 | 47 | switch ($type) { |
45 | 48 | case OCI_B_BFILE: $result = OCI_D_FILE; break; |
@@ -1152,7 +1155,7 @@ discard block |
||
1152 | 1155 | * @param [magic_quotes] if $s is GET/POST var, set to get_magic_quotes_gpc(). |
1153 | 1156 | * This undoes the stupidity of magic quotes for GPC. |
1154 | 1157 | * |
1155 | - * @return quoted string to be sent back to database |
|
1158 | + * @return string string to be sent back to database |
|
1156 | 1159 | */ |
1157 | 1160 | function qstr($s,$magic_quotes=false) |
1158 | 1161 | { |
@@ -155,6 +155,10 @@ |
||
155 | 155 | |
156 | 156 | |
157 | 157 | // returns query ID if successful, otherwise false |
158 | + |
|
159 | + /** |
|
160 | + * @param string $sql |
|
161 | + */ |
|
158 | 162 | function _query($sql,$inputarr=false) |
159 | 163 | { |
160 | 164 | // <G. Giunta 2003/03/03/> Reset error messages before executing |
@@ -373,6 +373,9 @@ |
||
373 | 373 | var $_stmt; |
374 | 374 | var $_connectionID; |
375 | 375 | |
376 | + /** |
|
377 | + * @param ADODB_pdo $connection |
|
378 | + */ |
|
376 | 379 | function ADOPDOStatement($stmt,$connection) |
377 | 380 | { |
378 | 381 | $this->_stmt = $stmt; |
@@ -702,6 +702,10 @@ discard block |
||
702 | 702 | |
703 | 703 | |
704 | 704 | // returns queryID or false |
705 | + |
|
706 | + /** |
|
707 | + * @param boolean $inputarr |
|
708 | + */ |
|
705 | 709 | function _query($sql,$inputarr) |
706 | 710 | { |
707 | 711 | |
@@ -782,6 +786,10 @@ discard block |
||
782 | 786 | |
783 | 787 | |
784 | 788 | /* Returns: the last error message from previous database operation */ |
789 | + |
|
790 | + /** |
|
791 | + * @return boolean|string |
|
792 | + */ |
|
785 | 793 | function ErrorMsg() |
786 | 794 | { |
787 | 795 | if ($this->_errorMsg !== false) return $this->_errorMsg; |
@@ -65,11 +65,17 @@ discard block |
||
65 | 65 | return $this->GetOne('select @@identity'); |
66 | 66 | } |
67 | 67 | |
68 | + /** |
|
69 | + * @param string $blobVarName |
|
70 | + */ |
|
68 | 71 | function create_blobvar($blobVarName) { |
69 | 72 | $this->Execute("create variable $blobVarName long binary"); |
70 | 73 | return; |
71 | 74 | } |
72 | 75 | |
76 | + /** |
|
77 | + * @param string $blobVarName |
|
78 | + */ |
|
73 | 79 | function drop_blobvar($blobVarName) { |
74 | 80 | $this->Execute("drop variable $blobVarName"); |
75 | 81 | return; |
@@ -105,6 +111,9 @@ discard block |
||
105 | 111 | return; |
106 | 112 | } |
107 | 113 | |
114 | + /** |
|
115 | + * @param string $blobVarName |
|
116 | + */ |
|
108 | 117 | function load_blobvar_from_var($blobVarName, &$varName) { |
109 | 118 | $chunk_size = 1000; |
110 | 119 |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * the database. If that's not the case, a new connection is opened. |
132 | 132 | * |
133 | 133 | * @access private |
134 | - * @return mixed True or a DB error object. |
|
134 | + * @return boolean True or a DB error object. |
|
135 | 135 | */ |
136 | 136 | function _prepare() |
137 | 137 | { |
@@ -153,6 +153,7 @@ discard block |
||
153 | 153 | * |
154 | 154 | * @access public |
155 | 155 | * @param string Query string |
156 | + * @param string $query |
|
156 | 157 | * @return mixed a DB_result object or DB_OK on success, a DB |
157 | 158 | * or PEAR error on failure |
158 | 159 | */ |
@@ -320,6 +320,10 @@ |
||
320 | 320 | /* |
321 | 321 | Generate html for suspicious/expensive sql |
322 | 322 | */ |
323 | + |
|
324 | + /** |
|
325 | + * @param string $type |
|
326 | + */ |
|
323 | 327 | function tohtml(&$rs,$type) |
324 | 328 | { |
325 | 329 | $o1 = $rs->FetchField(0); |
@@ -124,6 +124,10 @@ discard block |
||
124 | 124 | */ |
125 | 125 | /*! |
126 | 126 | */ |
127 | + |
|
128 | + /** |
|
129 | + * @return string |
|
130 | + */ |
|
127 | 131 | function driver($driver = null) { |
128 | 132 | static $_driver = 'mysql'; |
129 | 133 | static $set = false; |
@@ -302,6 +306,10 @@ discard block |
||
302 | 306 | |
303 | 307 | /*! |
304 | 308 | */ |
309 | + |
|
310 | + /** |
|
311 | + * @return string |
|
312 | + */ |
|
305 | 313 | function table($table = null) { |
306 | 314 | static $_table = 'sessions'; |
307 | 315 | static $set = false; |
@@ -359,6 +367,10 @@ discard block |
||
359 | 367 | |
360 | 368 | /*! |
361 | 369 | */ |
370 | + |
|
371 | + /** |
|
372 | + * @return string |
|
373 | + */ |
|
362 | 374 | function clob($clob = null) { |
363 | 375 | static $_clob = false; |
364 | 376 | static $set = false; |
@@ -405,6 +417,10 @@ discard block |
||
405 | 417 | |
406 | 418 | /*! |
407 | 419 | */ |
420 | + |
|
421 | + /** |
|
422 | + * @return string |
|
423 | + */ |
|
408 | 424 | function encryptionKey($encryption_key = null) { |
409 | 425 | static $_encryption_key = 'CRYPTED ADODB SESSIONS ROCK!'; |
410 | 426 | |
@@ -427,6 +443,12 @@ discard block |
||
427 | 443 | |
428 | 444 | /*! |
429 | 445 | */ |
446 | + |
|
447 | + /** |
|
448 | + * @param string $crc |
|
449 | + * |
|
450 | + * @return string |
|
451 | + */ |
|
430 | 452 | function _crc($crc = null) { |
431 | 453 | static $_crc = false; |
432 | 454 | |
@@ -498,6 +520,10 @@ discard block |
||
498 | 520 | |
499 | 521 | If $conn already exists, reuse that connection |
500 | 522 | */ |
523 | + |
|
524 | + /** |
|
525 | + * @param boolean $persist |
|
526 | + */ |
|
501 | 527 | function open($save_path, $session_name, $persist = null) { |
502 | 528 | $conn =& ADODB_Session::_conn(); |
503 | 529 |