@@ -169,10 +169,6 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * establish an HTTP connection |
| 171 | 171 | * |
| 172 | - * @param integer $timeout set connection timeout in seconds |
|
| 173 | - * @param integer $response_timeout set response timeout in seconds |
|
| 174 | - * @return boolean true if connected, false if not |
|
| 175 | - * @access private |
|
| 176 | 172 | */ |
| 177 | 173 | function connect($connection_timeout=0,$response_timeout=30){
|
| 178 | 174 | // For PHP 4.3 with OpenSSL, change https scheme to ssl, then treat like |
@@ -731,7 +727,7 @@ discard block |
||
| 731 | 727 | * |
| 732 | 728 | * @param string $data message data |
| 733 | 729 | * @param array $cookies cookies to send |
| 734 | - * @return boolean true if OK, false if problem |
|
| 730 | + * @return boolean|null true if OK, false if problem |
|
| 735 | 731 | * @access private |
| 736 | 732 | */ |
| 737 | 733 | function sendRequest($data, $cookies = NULL) {
|
@@ -1166,7 +1162,7 @@ discard block |
||
| 1166 | 1162 | * sets the content-type for the SOAP message to be sent |
| 1167 | 1163 | * |
| 1168 | 1164 | * @param string $type the content type, MIME style |
| 1169 | - * @param mixed $charset character set used for encoding (or false) |
|
| 1165 | + * @param string $charset character set used for encoding (or false) |
|
| 1170 | 1166 | * @access public |
| 1171 | 1167 | */ |
| 1172 | 1168 | function setContentType($type, $charset = false) {
|
@@ -1199,6 +1195,10 @@ discard block |
||
| 1199 | 1195 | /* |
| 1200 | 1196 | * TODO: allow a Set-Cookie string to be parsed into multiple cookies |
| 1201 | 1197 | */ |
| 1198 | + |
|
| 1199 | + /** |
|
| 1200 | + * @param string $cookie_str |
|
| 1201 | + */ |
|
| 1202 | 1202 | function parseCookie($cookie_str) {
|
| 1203 | 1203 | $cookie_str = str_replace('; ', ';', $cookie_str) . ';';
|
| 1204 | 1204 | $data = preg_split('/;/', $cookie_str);
|
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * |
| 64 | 64 | * @param string $name optional name |
| 65 | 65 | * @param mixed $type optional type name |
| 66 | - * @param mixed $value optional value |
|
| 66 | + * @param integer $value optional value |
|
| 67 | 67 | * @param mixed $element_ns optional namespace of value |
| 68 | 68 | * @param mixed $type_ns optional namespace of type |
| 69 | 69 | * @param mixed $attributes associative array of attributes to add to element serialization |
@@ -743,6 +743,7 @@ |
||
| 743 | 743 | /** |
| 744 | 744 | * dynamically creates proxy class code |
| 745 | 745 | * |
| 746 | + * @param integer $r |
|
| 746 | 747 | * @return string PHP/NuSOAP code for the proxy class |
| 747 | 748 | * @access private |
| 748 | 749 | */ |
@@ -883,7 +883,7 @@ discard block |
||
| 883 | 883 | /** |
| 884 | 884 | * serialize the parsed wsdl |
| 885 | 885 | * |
| 886 | - * @param mixed $debug whether to put debug=1 in endpoint URL |
|
| 886 | + * @param integer $debug whether to put debug=1 in endpoint URL |
|
| 887 | 887 | * @return string serialization of WSDL |
| 888 | 888 | * @access public |
| 889 | 889 | */ |
@@ -1106,7 +1106,7 @@ discard block |
||
| 1106 | 1106 | * @param string $direction (input|output) |
| 1107 | 1107 | * @param mixed $parameters parameter value(s) |
| 1108 | 1108 | * @param string $bindingType (soap|soap12) |
| 1109 | - * @return mixed parameters serialized as XML or false on error (e.g. operation not found) |
|
| 1109 | + * @return false|string parameters serialized as XML or false on error (e.g. operation not found) |
|
| 1110 | 1110 | * @access public |
| 1111 | 1111 | */ |
| 1112 | 1112 | function serializeRPCParameters($operation, $direction, $parameters, $bindingType = 'soap') {
|
@@ -1206,7 +1206,7 @@ discard block |
||
| 1206 | 1206 | * @param string $operation operation name |
| 1207 | 1207 | * @param string $direction (input|output) |
| 1208 | 1208 | * @param mixed $parameters parameter value(s) |
| 1209 | - * @return mixed parameters serialized as XML or false on error (e.g. operation not found) |
|
| 1209 | + * @return false|string parameters serialized as XML or false on error (e.g. operation not found) |
|
| 1210 | 1210 | * @access public |
| 1211 | 1211 | * @deprecated |
| 1212 | 1212 | */ |
@@ -791,7 +791,7 @@ |
||
| 791 | 791 | * returns a sample serialization of a given type, or false if no type by the given name |
| 792 | 792 | * |
| 793 | 793 | * @param string $type name of type |
| 794 | - * @return mixed |
|
| 794 | + * @return string|false |
|
| 795 | 795 | * @access public |
| 796 | 796 | * @deprecated |
| 797 | 797 | */ |
@@ -447,7 +447,7 @@ |
||
| 447 | 447 | * |
| 448 | 448 | * @param array $headers The HTTP headers |
| 449 | 449 | * @param string $data unprocessed request data from client |
| 450 | - * @return mixed value of the message, decoded into a PHP type |
|
| 450 | + * @return false|null value of the message, decoded into a PHP type |
|
| 451 | 451 | * @access private |
| 452 | 452 | */ |
| 453 | 453 | function parseRequest($headers, $data) {
|
@@ -208,6 +208,8 @@ discard block |
||
| 208 | 208 | } |
| 209 | 209 | /** |
| 210 | 210 | * Gives a list of people online now (and in the last $valid minutes) |
| 211 | + * @param integer $from |
|
| 212 | + * @param integer $time_limit |
|
| 211 | 213 | * @return array For each line, a list of user IDs and login dates, or FALSE on error or empty results |
| 212 | 214 | */ |
| 213 | 215 | function who_is_online($from, $number_of_items, $column = null, $direction = null, $time_limit = null, $friends = false) |
@@ -424,6 +426,9 @@ discard block |
||
| 424 | 426 | } |
| 425 | 427 | } |
| 426 | 428 | |
| 429 | +/** |
|
| 430 | + * @param integer $uid |
|
| 431 | + */ |
|
| 427 | 432 | function who_is_online_in_this_course_count($uid, $time_limit, $coursecode=null) |
| 428 | 433 | { |
| 429 | 434 | if (empty($coursecode)) { |
@@ -39,6 +39,11 @@ discard block |
||
| 39 | 39 | // http://php.net/manual/en/function.gzopen.php |
| 40 | 40 | // -------------------------------------------------------------------------------- |
| 41 | 41 | if (!function_exists('gzopen') && function_exists('gzopen64')) {
|
| 42 | + |
|
| 43 | + /** |
|
| 44 | + * @param string $filename |
|
| 45 | + * @param string $mode |
|
| 46 | + */ |
|
| 42 | 47 | function gzopen($filename, $mode, $use_include_path = 0) {
|
| 43 | 48 | return gzopen64($filename, $mode, $use_include_path); |
| 44 | 49 | } |
@@ -288,6 +293,10 @@ discard block |
||
| 288 | 293 | // The list of the added files, with a status of the add action. |
| 289 | 294 | // (see PclZip::listContent() for list entry format) |
| 290 | 295 | // -------------------------------------------------------------------------------- |
| 296 | + |
|
| 297 | + /** |
|
| 298 | + * @param string $p_filelist |
|
| 299 | + */ |
|
| 291 | 300 | function create($p_filelist) |
| 292 | 301 | {
|
| 293 | 302 | $v_result=1; |
@@ -2355,6 +2364,10 @@ discard block |
||
| 2355 | 2364 | // Description : |
| 2356 | 2365 | // Parameters : |
| 2357 | 2366 | // -------------------------------------------------------------------------------- |
| 2367 | + |
|
| 2368 | + /** |
|
| 2369 | + * @param string $p_mode |
|
| 2370 | + */ |
|
| 2358 | 2371 | function privOpenFd($p_mode) |
| 2359 | 2372 | {
|
| 2360 | 2373 | $v_result=1; |
@@ -4171,6 +4184,10 @@ discard block |
||
| 4171 | 4184 | // Parameters : |
| 4172 | 4185 | // Return Values : |
| 4173 | 4186 | // -------------------------------------------------------------------------------- |
| 4187 | + |
|
| 4188 | + /** |
|
| 4189 | + * @param string $p_string |
|
| 4190 | + */ |
|
| 4174 | 4191 | function privExtractFileAsString(&$p_entry, &$p_string, &$p_options) |
| 4175 | 4192 | {
|
| 4176 | 4193 | $v_result=1; |
@@ -5071,6 +5088,10 @@ discard block |
||
| 5071 | 5088 | // Parameters : |
| 5072 | 5089 | // Return Values : |
| 5073 | 5090 | // -------------------------------------------------------------------------------- |
| 5091 | + |
|
| 5092 | + /** |
|
| 5093 | + * @param PclZip $p_archive_to_add |
|
| 5094 | + */ |
|
| 5074 | 5095 | function privMerge(&$p_archive_to_add) |
| 5075 | 5096 | {
|
| 5076 | 5097 | $v_result=1; |
@@ -5578,6 +5599,11 @@ discard block |
||
| 5578 | 5599 | // 3 : src & dest gzip |
| 5579 | 5600 | // Return Values : |
| 5580 | 5601 | // -------------------------------------------------------------------------------- |
| 5602 | + |
|
| 5603 | + /** |
|
| 5604 | + * @param integer $p_src |
|
| 5605 | + * @param integer $p_dest |
|
| 5606 | + */ |
|
| 5581 | 5607 | function PclZipUtilCopyBlock($p_src, $p_dest, $p_size, $p_mode=0) |
| 5582 | 5608 | {
|
| 5583 | 5609 | $v_result = 1; |
@@ -5640,6 +5666,11 @@ discard block |
||
| 5640 | 5666 | // Return Values : |
| 5641 | 5667 | // 1 on success, 0 on failure. |
| 5642 | 5668 | // -------------------------------------------------------------------------------- |
| 5669 | + |
|
| 5670 | + /** |
|
| 5671 | + * @param string $p_src |
|
| 5672 | + * @param string $p_dest |
|
| 5673 | + */ |
|
| 5643 | 5674 | function PclZipUtilRename($p_src, $p_dest) |
| 5644 | 5675 | {
|
| 5645 | 5676 | $v_result = 1; |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * |
| 75 | 75 | * @uses export/table_pdf.tpl |
| 76 | 76 | |
| 77 | - * @param $content |
|
| 77 | + * @param string $content |
|
| 78 | 78 | * @param bool|false $saveToFile |
| 79 | 79 | * @param bool|false $returnHtml |
| 80 | 80 | * |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | * @param string pdf name |
| 193 | 193 | * @param string course code (if you are using html that are located in the document tool you must provide this) |
| 194 | 194 | * @param bool Whether to print the header, footer and watermark (true) or just the content (false) |
| 195 | - * @return bool |
|
| 195 | + * @return false|null |
|
| 196 | 196 | */ |
| 197 | 197 | public function html_to_pdf( |
| 198 | 198 | $html_file_array, |