@@ -295,6 +295,8 @@ discard block |
||
295 | 295 | * @param array &$query |
296 | 296 | * @param array &$rows |
297 | 297 | * @param array &$readonlys |
298 | + * @param type|null $rows |
|
299 | + * @param type|null $readonlys |
|
298 | 300 | * @return int |
299 | 301 | */ |
300 | 302 | function get_rows(&$query,&$rows,&$readonlys) |
@@ -575,7 +577,6 @@ discard block |
||
575 | 577 | * Hook for timesheet to set some extra data and links |
576 | 578 | * |
577 | 579 | * @param array $data |
578 | - * @param int $data[id] info_id |
|
579 | 580 | * @return array with key => value pairs to set in new timesheet and link_app/link_id arrays |
580 | 581 | */ |
581 | 582 | function timesheet_set($data) |
@@ -601,7 +602,6 @@ discard block |
||
601 | 602 | * Hook for calendar to set some extra data and links |
602 | 603 | * |
603 | 604 | * @param array $data event-array preset by calendar plus |
604 | - * @param int $data[entry_id] info_id |
|
605 | 605 | * @return array with key => value pairs to set in new event and link_app/link_id arrays |
606 | 606 | */ |
607 | 607 | function calendar_set($data) |
@@ -691,9 +691,6 @@ discard block |
||
691 | 691 | * Since the hook has no idea about infolog or preferences, we add the user's |
692 | 692 | * current sorting for infolog here so they're in the expected order |
693 | 693 | * |
694 | - * @param int $args[year], $args[month], $args[day] date of the events |
|
695 | - * @param int $args[owner] owner of the events |
|
696 | - * @param string $args[location] calendar_include_{events|todos} |
|
697 | 694 | * @return array of events (array with keys starttime, endtime, title, view, icon, content) |
698 | 695 | */ |
699 | 696 | public function cal_to_include($args) |
@@ -711,11 +708,11 @@ discard block |
||
711 | 708 | /** |
712 | 709 | * Shows the infolog list |
713 | 710 | * |
714 | - * @param array/string $values etemplate content or 'reset_action_view' if called by index.php to reset an action-view |
|
711 | + * @param integer $values etemplate content or 'reset_action_view' if called by index.php to reset an action-view |
|
715 | 712 | * @param string $action if set only entries liked to that $action:$action_id are shown |
716 | 713 | * @param string $action_id if set only entries liked to that $action:$action_id are shown |
717 | - * @param mixed $called_as is how we got called, for a hook eg. the call-params of that page containing the hook |
|
718 | - * @param boolean $e$extra_app_header * @param boolean $return_html=false |
|
714 | + * @param integer $called_as is how we got called, for a hook eg. the call-params of that page containing the hook |
|
715 | + * @param boolean $extra_app_header * @param boolean $return_html |
|
719 | 716 | * @param string $own_referer='' this is our own referer |
720 | 717 | * @param string $action_title='' app_header for the action, if '' we try the link-title |
721 | 718 | */ |
@@ -1327,7 +1324,7 @@ discard block |
||
1327 | 1324 | * @param array $query get_rows parameter |
1328 | 1325 | * @param string &$msg on return user feedback |
1329 | 1326 | * @param boolean $skip_notifications true to NOT notify users about changes |
1330 | - * @return boolean true if all actions succeded, false otherwise |
|
1327 | + * @return boolean|null true if all actions succeded, false otherwise |
|
1331 | 1328 | */ |
1332 | 1329 | function action($_action, $checked, $use_all, &$success, &$failed, &$action_msg, |
1333 | 1330 | array $query, &$msg, $skip_notifications = false) |
@@ -1572,9 +1569,9 @@ discard block |
||
1572 | 1569 | /** |
1573 | 1570 | * Closes an infolog |
1574 | 1571 | * |
1575 | - * @param int|array $values=0 info_id (default _GET[info_id]) |
|
1572 | + * @param int|array $values info_id (default _GET[info_id]) |
|
1576 | 1573 | * @param string $_referer='' |
1577 | - * @param boolean $closesingle=false |
|
1574 | + * @param boolean $closesingle |
|
1578 | 1575 | */ |
1579 | 1576 | function close($values=0,$_referer='',$closesingle=false,$skip_notification = false) |
1580 | 1577 | { |
@@ -1622,7 +1619,7 @@ discard block |
||
1622 | 1619 | /** |
1623 | 1620 | * Deletes an InfoLog entry |
1624 | 1621 | * |
1625 | - * @param array|int $values info_id (default _GET[info_id]) |
|
1622 | + * @param integer $values info_id (default _GET[info_id]) |
|
1626 | 1623 | * @param string $_referer |
1627 | 1624 | * @param string $called_by |
1628 | 1625 | * @param boolean $skip_notification Do not send notification of deletion |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | * |
43 | 43 | * @param string $country 2-digit iso country code or URL |
44 | 44 | * @param int $year =null default current year |
45 | - * @return array of Ymd => array of array with values for keys 'occurence','month','day','name', (commented out) 'title' |
|
45 | + * @return integer of Ymd => array of array with values for keys 'occurence','month','day','name', (commented out) 'title' |
|
46 | 46 | */ |
47 | 47 | public static function read($country, $year=null) |
48 | 48 | { |
@@ -140,6 +140,9 @@ discard block |
||
140 | 140 | return $until_year ? $years : $years[$year]; |
141 | 141 | } |
142 | 142 | |
143 | + /** |
|
144 | + * @param string $url |
|
145 | + */ |
|
143 | 146 | protected static function is_url($url) |
144 | 147 | { |
145 | 148 | return $url[0] == '/' || strpos($url, '://') !== false; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param string $app |
160 | 160 | * @param boolean $all_private_too =false should all the private fields be returned too, default no |
161 | 161 | * @param string $only_type2 =null if given only return fields of type2 == $only_type2 |
162 | - * @return boolen true: if there is a custom field useing html, false if not |
|
162 | + * @return boolean true: if there is a custom field useing html, false if not |
|
163 | 163 | */ |
164 | 164 | public static function use_html($app, $all_private_too=false, $only_type2=null) |
165 | 165 | { |
@@ -585,6 +585,9 @@ discard block |
||
585 | 585 | } |
586 | 586 | } |
587 | 587 | |
588 | + /** |
|
589 | + * @param string $entry_id |
|
590 | + */ |
|
588 | 591 | protected static function handle_file($entry_id, $field, $value) |
589 | 592 | { |
590 | 593 | $path = Api\Etemplate\Widget\Vfs::get_vfs_path($field['app'].":$entry_id:".$field['label']); |
@@ -1728,7 +1728,7 @@ discard block |
||
1728 | 1728 | * function splitRowID - split the rowID into its parts |
1729 | 1729 | * |
1730 | 1730 | * @param string $_rowID string - a colon separated string in the form accountID:profileID:folder:message_uid |
1731 | - * @return array populated named result array (accountID,profileID,folder,msgUID) |
|
1731 | + * @return string populated named result array (accountID,profileID,folder,msgUID) |
|
1732 | 1732 | */ |
1733 | 1733 | static function splitRowID($_rowID) |
1734 | 1734 | { |
@@ -1814,9 +1814,9 @@ discard block |
||
1814 | 1814 | * function header2gridelements - to populate the grid elements with the collected Data |
1815 | 1815 | * |
1816 | 1816 | * @param array $_headers headerdata to process |
1817 | - * @param array $cols cols to populate |
|
1817 | + * @param string[] $cols cols to populate |
|
1818 | 1818 | * @param array $_folderName to ensure the uniqueness of the uid over all folders |
1819 | - * @param array $_folderType used to determine if we need to populate from/to |
|
1819 | + * @param integer $_folderType used to determine if we need to populate from/to |
|
1820 | 1820 | * @return array populated result array |
1821 | 1821 | */ |
1822 | 1822 | public function header2gridelements($_headers, $cols, $_folderName, $_folderType=0) |
@@ -3060,6 +3060,9 @@ discard block |
||
3060 | 3060 | return $GLOBALS['egw']->framework->header(); |
3061 | 3061 | } |
3062 | 3062 | |
3063 | + /** |
|
3064 | + * @param string $body |
|
3065 | + */ |
|
3063 | 3066 | function showBody(&$body, $print=true,$fullPageTags=true) |
3064 | 3067 | { |
3065 | 3068 | $BeginBody = '<div class="mailDisplayBody"> |
@@ -3302,9 +3305,9 @@ discard block |
||
3302 | 3305 | * Replace CID with proper type of content understandable by browser |
3303 | 3306 | * |
3304 | 3307 | * @param type $_body content of message |
3305 | - * @param type $_mailbox mail box |
|
3306 | - * @param type $_uid uid |
|
3307 | - * @param type $_partID part id |
|
3308 | + * @param string $_mailbox mail box |
|
3309 | + * @param string $_uid uid |
|
3310 | + * @param string $_partID part id |
|
3308 | 3311 | * @param type $_type = 'src' type of inline image that needs to be resolved and replaced |
3309 | 3312 | * - types: {plain|src|url|background} |
3310 | 3313 | * @return string returns body content including all CID replacements |
@@ -3490,7 +3493,7 @@ discard block |
||
3490 | 3493 | * @param string $_folder (passed by reference) will set the folder used. must be set with a folder, but will hold modifications if |
3491 | 3494 | * folder is modified |
3492 | 3495 | * @param string $importID ID for the imported message, used by attachments to identify them unambiguously |
3493 | - * @return mixed $messageUID or exception |
|
3496 | + * @return string $messageUID or exception |
|
3494 | 3497 | */ |
3495 | 3498 | function importMessageToFolder($_formData,&$_folder,$importID='') |
3496 | 3499 | { |
@@ -3651,7 +3654,7 @@ discard block |
||
3651 | 3654 | * |
3652 | 3655 | * @param string _messageID UID |
3653 | 3656 | * |
3654 | - * @return xajax response |
|
3657 | + * @return string|null response |
|
3655 | 3658 | */ |
3656 | 3659 | function loadEmailBody($_messageID=null,$_partID=null,$_htmloptions=null) |
3657 | 3660 | { |
@@ -4206,7 +4209,7 @@ discard block |
||
4206 | 4209 | * ajax_deleteFolder - its called via json, so the function must start with ajax (or the class-name must contain ajax) |
4207 | 4210 | * @param string $_folderName folder to delete |
4208 | 4211 | * @param boolean $_return = false wheter return the success value (true) or send response to client (false) |
4209 | - * @return nothing |
|
4212 | + * @return boolean|null |
|
4210 | 4213 | */ |
4211 | 4214 | function ajax_deleteFolder($_folderName, $_return = false) |
4212 | 4215 | { |
@@ -4977,8 +4980,9 @@ discard block |
||
4977 | 4980 | * @param string _move2ArchiveMarker marker to indicate if a move 2 archive was triggered |
4978 | 4981 | * @param boolean _return if true the function will return the result instead of |
4979 | 4982 | * responding to client |
4983 | + * @param string $_folderName |
|
4980 | 4984 | * |
4981 | - * @return xajax response |
|
4985 | + * @return string|null response |
|
4982 | 4986 | */ |
4983 | 4987 | function ajax_copyMessages($_folderName, $_messageList, $_copyOrMove='copy', $_move2ArchiveMarker='_', $_return = false) |
4984 | 4988 | { |