@@ -374,6 +374,11 @@ discard block |
||
| 374 | 374 | } |
| 375 | 375 | |
| 376 | 376 | // Function which returns the value based on result type (array / ADODB ResultSet) |
| 377 | + |
|
| 378 | + /** |
|
| 379 | + * @param integer $index |
|
| 380 | + * @param string $columnname |
|
| 381 | + */ |
|
| 377 | 382 | private function resolve_query_result_value($result, $index, $columnname) |
| 378 | 383 | { |
| 379 | 384 | $adb = PearDatabase::getInstance(); |
@@ -633,7 +638,7 @@ discard block |
||
| 633 | 638 | } |
| 634 | 639 | |
| 635 | 640 | /** Function to delete a record in the specifed table |
| 636 | - * @param $table_name -- table name:: Type varchar |
|
| 641 | + * @param string $table_name -- table name:: Type varchar |
|
| 637 | 642 | * The function will delete a record .The id is obtained from the class variable $this->id and the columnname got from $this->tab_name_index[$table_name] |
| 638 | 643 | */ |
| 639 | 644 | public function deleteRelation($table_name) |
@@ -817,6 +822,7 @@ discard block |
||
| 817 | 822 | |
| 818 | 823 | /** Function to saves the values in all the tables mentioned in the class variable $tab_name for the specified module |
| 819 | 824 | * @param $module -- module:: Type varchar |
| 825 | + * @param string $module_name |
|
| 820 | 826 | */ |
| 821 | 827 | public function save($module_name, $fileid = '') |
| 822 | 828 | { |
@@ -2562,10 +2568,10 @@ discard block |
||
| 2562 | 2568 | |
| 2563 | 2569 | /** |
| 2564 | 2570 | * |
| 2565 | - * @param <type> $module |
|
| 2566 | - * @param <type> $user |
|
| 2571 | + * @param Users $user |
|
| 2567 | 2572 | * @param <type> $parentRole |
| 2568 | 2573 | * @param <type> $userGroups |
| 2574 | + * @param string $tableName |
|
| 2569 | 2575 | */ |
| 2570 | 2576 | protected function setupTemporaryTable($tableName, $tabId, $user, $parentRole, $userGroups) |
| 2571 | 2577 | { |
@@ -206,6 +206,9 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | /* Mailhide related code */ |
| 208 | 208 | |
| 209 | +/** |
|
| 210 | + * @param string $ky |
|
| 211 | + */ |
|
| 209 | 212 | function _recaptcha_aes_encrypt($val, $ky) |
| 210 | 213 | { |
| 211 | 214 | if (!function_exists("mcrypt_encrypt")) { |
@@ -217,6 +220,9 @@ discard block |
||
| 217 | 220 | return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"); |
| 218 | 221 | } |
| 219 | 222 | |
| 223 | +/** |
|
| 224 | + * @param null|string $x |
|
| 225 | + */ |
|
| 220 | 226 | function _recaptcha_mailhide_urlbase64($x) |
| 221 | 227 | { |
| 222 | 228 | return strtr(base64_encode($x), '+/', '-_'); |
@@ -59,6 +59,8 @@ |
||
| 59 | 59 | * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. |
| 60 | 60 | * All Rights Reserved. |
| 61 | 61 | * Contributor(s): ______________________________________.. |
| 62 | + * @param string $item_id |
|
| 63 | + * @param string $item_summary |
|
| 62 | 64 | */ |
| 63 | 65 | public function track_view($user_id, $current_module, $item_id, $item_summary) |
| 64 | 66 | { |
@@ -405,6 +405,7 @@ discard block |
||
| 405 | 405 | * @param int The unique ID of the person who tagged the object with this tag. |
| 406 | 406 | * @param int The unique ID of the object in question. |
| 407 | 407 | * @param string A raw string from a web form containing tags. |
| 408 | + * @param string $tag |
|
| 408 | 409 | * |
| 409 | 410 | * @return boolean Returns true if successful, false otherwise. Does not operate as a transaction. |
| 410 | 411 | */ |
@@ -662,7 +663,7 @@ discard block |
||
| 662 | 663 | * @param string The raw string form of the tag to delete. See above for vtiger_notes. |
| 663 | 664 | * @param int Whether to skip the update portion for objects that haven't been tagged. (Default: 1) |
| 664 | 665 | * |
| 665 | - * @return string Returns the tag in normalized form. |
|
| 666 | + * @return boolean Returns the tag in normalized form. |
|
| 666 | 667 | */ |
| 667 | 668 | public function tag_object($tagger_id, $object_id, $tag_string, $module, $skip_updates = 1) { |
| 668 | 669 | if($tag_string == '') { |
@@ -1127,6 +1128,10 @@ discard block |
||
| 1127 | 1128 | * @param string The text to output |
| 1128 | 1129 | * @return boolean Always returns true |
| 1129 | 1130 | */ |
| 1131 | + |
|
| 1132 | + /** |
|
| 1133 | + * @param string $text |
|
| 1134 | + */ |
|
| 1130 | 1135 | public function debug_text($text) { |
| 1131 | 1136 | if ($this->_debug) { |
| 1132 | 1137 | echo "$text<br>\n"; |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | /** |
| 307 | 307 | * gets the current debug data for this instance |
| 308 | 308 | * |
| 309 | - * @return debug data |
|
| 309 | + * @return string data |
|
| 310 | 310 | * @access public |
| 311 | 311 | */ |
| 312 | 312 | public function &getDebug() { |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | * gets the current debug data for this instance as an XML comment |
| 320 | 320 | * this may change the contents of the debug data |
| 321 | 321 | * |
| 322 | - * @return debug data as an XML comment |
|
| 322 | + * @return string data as an XML comment |
|
| 323 | 323 | * @access public |
| 324 | 324 | */ |
| 325 | 325 | public function &getDebugAsXMLComment() { |
@@ -352,7 +352,7 @@ discard block |
||
| 352 | 352 | /** |
| 353 | 353 | * returns error string if present |
| 354 | 354 | * |
| 355 | - * @return mixed error string or false |
|
| 355 | + * @return string|false error string or false |
|
| 356 | 356 | * @access public |
| 357 | 357 | */ |
| 358 | 358 | public function getError(){ |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | /** |
| 366 | 366 | * sets error string |
| 367 | 367 | * |
| 368 | - * @return boolean $string error string |
|
| 368 | + * @return boolean|null $string error string |
|
| 369 | 369 | * @access private |
| 370 | 370 | */ |
| 371 | 371 | public function setError($str){ |
@@ -800,7 +800,7 @@ discard block |
||
| 800 | 800 | * returns false, if not prefixed |
| 801 | 801 | * |
| 802 | 802 | * @param string $str The prefixed string |
| 803 | - * @return mixed The prefix or false if there is no prefix |
|
| 803 | + * @return string|false The prefix or false if there is no prefix |
|
| 804 | 804 | * @access public |
| 805 | 805 | */ |
| 806 | 806 | public function getPrefix($str){ |
@@ -830,7 +830,7 @@ discard block |
||
| 830 | 830 | * or false if no prefixes registered for the given namespace |
| 831 | 831 | * |
| 832 | 832 | * @param string $ns The namespace |
| 833 | - * @return mixed The prefix, false if the namespace has no prefixes |
|
| 833 | + * @return string The prefix, false if the namespace has no prefixes |
|
| 834 | 834 | * @access public |
| 835 | 835 | */ |
| 836 | 836 | public function getPrefixFromNamespace($ns) { |
@@ -896,7 +896,7 @@ discard block |
||
| 896 | 896 | * |
| 897 | 897 | * @param int $timestamp Unix time stamp |
| 898 | 898 | * @param boolean $utc Whether the time stamp is UTC or local |
| 899 | -* @return mixed ISO 8601 date string or false |
|
| 899 | +* @return string|false ISO 8601 date string or false |
|
| 900 | 900 | * @access public |
| 901 | 901 | */ |
| 902 | 902 | function timestamp_to_iso8601($timestamp,$utc=true){ |
@@ -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 | public function nusoap_fault($faultcode,$faultactor='',$faultstring='',$faultdetail=''){ |
| 49 | 49 | parent::nusoap_base(); |
@@ -839,7 +839,7 @@ |
||
| 839 | 839 | * |
| 840 | 840 | * @param array $headers The HTTP headers |
| 841 | 841 | * @param string $data unprocessed request data from client |
| 842 | - * @return mixed value of the message, decoded into a PHP type |
|
| 842 | + * @return false|null value of the message, decoded into a PHP type |
|
| 843 | 843 | * @access private |
| 844 | 844 | */ |
| 845 | 845 | public function parseRequest($headers, $data) |
@@ -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 |
@@ -88,6 +88,7 @@ discard block |
||
| 88 | 88 | * fetches the WSDL document and parses it |
| 89 | 89 | * |
| 90 | 90 | * @access public |
| 91 | + * @param string $wsdl |
|
| 91 | 92 | */ |
| 92 | 93 | public function fetchWSDL($wsdl) { |
| 93 | 94 | $this->debug("parse and process WSDL path=$wsdl"); |
@@ -882,7 +883,7 @@ discard block |
||
| 882 | 883 | /** |
| 883 | 884 | * serialize the parsed wsdl |
| 884 | 885 | * |
| 885 | - * @param mixed $debug whether to put debug=1 in endpoint URL |
|
| 886 | + * @param integer $debug whether to put debug=1 in endpoint URL |
|
| 886 | 887 | * @return string serialization of WSDL |
| 887 | 888 | * @access public |
| 888 | 889 | */ |
@@ -1105,7 +1106,7 @@ discard block |
||
| 1105 | 1106 | * @param string $direction (input|output) |
| 1106 | 1107 | * @param mixed $parameters parameter value(s) |
| 1107 | 1108 | * @param string $bindingType (soap|soap12) |
| 1108 | - * @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) |
|
| 1109 | 1110 | * @access public |
| 1110 | 1111 | */ |
| 1111 | 1112 | public function serializeRPCParameters($operation, $direction, $parameters, $bindingType = 'soap') { |
@@ -1205,7 +1206,7 @@ discard block |
||
| 1205 | 1206 | * @param string $operation operation name |
| 1206 | 1207 | * @param string $direction (input|output) |
| 1207 | 1208 | * @param mixed $parameters parameter value(s) |
| 1208 | - * @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) |
|
| 1209 | 1210 | * @access public |
| 1210 | 1211 | * @deprecated |
| 1211 | 1212 | */ |