@@ -43,7 +43,7 @@ |
||
43 | 43 | * @param string $faultcode (SOAP-ENV:Client | SOAP-ENV:Server) |
44 | 44 | * @param string $faultactor only used when msg routed between multiple actors |
45 | 45 | * @param string $faultstring human readable error message |
46 | - * @param mixed $faultdetail detail, typically a string or array of string |
|
46 | + * @param string $faultdetail detail, typically a string or array of string |
|
47 | 47 | */ |
48 | 48 | function nusoap_fault($faultcode,$faultactor='',$faultstring='',$faultdetail=''){ |
49 | 49 | parent::nusoap_base(); |
@@ -843,7 +843,7 @@ discard block |
||
843 | 843 | * |
844 | 844 | * @param array $headers The HTTP headers |
845 | 845 | * @param string $data unprocessed request data from client |
846 | - * @return mixed value of the message, decoded into a PHP type |
|
846 | + * @return false|null value of the message, decoded into a PHP type |
|
847 | 847 | * @access private |
848 | 848 | */ |
849 | 849 | function parseRequest($headers, $data) { |
@@ -951,10 +951,10 @@ discard block |
||
951 | 951 | * @param string $name the name of the PHP function, class.method or class..method |
952 | 952 | * @param array $in assoc array of input values: key = param name, value = param type |
953 | 953 | * @param array $out assoc array of output values: key = param name, value = param type |
954 | - * @param mixed $namespace the element namespace for the method or false |
|
955 | - * @param mixed $soapaction the soapaction for the method or false |
|
956 | - * @param mixed $style optional (rpc|document) or false Note: when 'document' is specified, parameter and return wrappers are created for you automatically |
|
957 | - * @param mixed $use optional (encoded|literal) or false |
|
954 | + * @param string $namespace the element namespace for the method or false |
|
955 | + * @param string $soapaction the soapaction for the method or false |
|
956 | + * @param string $style optional (rpc|document) or false Note: when 'document' is specified, parameter and return wrappers are created for you automatically |
|
957 | + * @param string $use optional (encoded|literal) or false |
|
958 | 958 | * @param string $documentation optional Description to include in WSDL |
959 | 959 | * @param string $encodingStyle optional (usually 'http://schemas.xmlsoap.org/soap/encoding/' for encoded) |
960 | 960 | * @access public |
@@ -1041,11 +1041,12 @@ discard block |
||
1041 | 1041 | * Acts as a flag to enable internal WSDL generation |
1042 | 1042 | * |
1043 | 1043 | * @param string $serviceName, name of the service |
1044 | - * @param mixed $namespace optional 'tns' service namespace or false |
|
1044 | + * @param string $namespace optional 'tns' service namespace or false |
|
1045 | 1045 | * @param mixed $endpoint optional URL of service endpoint or false |
1046 | 1046 | * @param string $style optional (rpc|document) WSDL style (also specified by operation) |
1047 | 1047 | * @param string $transport optional SOAP transport |
1048 | - * @param mixed $schemaTargetNamespace optional 'types' targetNamespace for service schema or false |
|
1048 | + * @param mixed $schemaTargetNamespace optional 'types' targetNamespace for service schema or false |
|
1049 | + * @param string $serviceName |
|
1049 | 1050 | */ |
1050 | 1051 | function configureWSDL($serviceName,$namespace = false,$endpoint = false,$style='rpc', $transport = 'http://schemas.xmlsoap.org/soap/http', $schemaTargetNamespace = false) |
1051 | 1052 | { |
@@ -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) { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | /** |
145 | 145 | * Returns the contents of the CSS defined by the plugin |
146 | - * @return array |
|
146 | + * @return string |
|
147 | 147 | */ |
148 | 148 | public function get_css() |
149 | 149 | { |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | |
162 | 162 | /** |
163 | 163 | * Returns an HTML form (generated by FormValidator) of the plugin settings |
164 | - * @return string FormValidator-generated form |
|
164 | + * @return FormValidator FormValidator-generated form |
|
165 | 165 | */ |
166 | 166 | public function get_settings_form() |
167 | 167 | { |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | * @param boolean $add_tool_link Whether to add a tool link or not |
384 | 384 | * (some tools might just offer a configuration section and act on the backend) |
385 | 385 | * |
386 | - * @return boolean False on error, null otherwise |
|
386 | + * @return boolean|null False on error, null otherwise |
|
387 | 387 | */ |
388 | 388 | public function install_course_fields($courseId, $add_tool_link = true) |
389 | 389 | { |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | * tool on the course's homepage |
492 | 492 | * @param int $courseId |
493 | 493 | * |
494 | - * @return void |
|
494 | + * @return false|null |
|
495 | 495 | */ |
496 | 496 | public function uninstall_course_fields($courseId) |
497 | 497 | { |
@@ -596,7 +596,7 @@ discard block |
||
596 | 596 | * @param string $tabName |
597 | 597 | * @param string $url |
598 | 598 | * |
599 | - * @return boolean |
|
599 | + * @return false|string |
|
600 | 600 | */ |
601 | 601 | public function addTab($tabName, $url) |
602 | 602 | { |