@@ -32,9 +32,16 @@ |
||
| 32 | 32 | function getBody($i) { |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param integer $i |
|
| 37 | + */ |
|
| 35 | 38 | function getMsg($i) { |
| 36 | 39 | } |
| 37 | 40 | // |
| 41 | + |
|
| 42 | + /** |
|
| 43 | + * @param integer $i |
|
| 44 | + */ |
|
| 38 | 45 | function deleteMessage($i) { |
| 39 | 46 | } |
| 40 | 47 | // |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | /** |
| 86 | 86 | * Get Message Body |
| 87 | 87 | * @param $msg_id Message number |
| 88 | - * @return mixed Either message body or false on error |
|
| 88 | + * @return string|false Either message body or false on error |
|
| 89 | 89 | */ |
| 90 | 90 | function getBody($i) |
| 91 | 91 | { |
@@ -96,7 +96,8 @@ discard block |
||
| 96 | 96 | * Returns the entire message with given message number. |
| 97 | 97 | * |
| 98 | 98 | * @param $msg_id Message number |
| 99 | - * @return mixed Either entire message or false on error |
|
| 99 | + * @param integer $i |
|
| 100 | + * @return string|false Either entire message or false on error |
|
| 100 | 101 | */ |
| 101 | 102 | function getMsg($i) |
| 102 | 103 | { |
@@ -108,6 +109,7 @@ discard block |
||
| 108 | 109 | * disconnect() method is called. |
| 109 | 110 | * |
| 110 | 111 | * @param $msg_id Message to delete |
| 112 | + * @param integer $i |
|
| 111 | 113 | * @return bool Success/Failure |
| 112 | 114 | */ |
| 113 | 115 | function deleteMessage($i) |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | * |
| 216 | 216 | * @param mixed $staff single or array of uids or {@link xhelpStaff} objects |
| 217 | 217 | * @param int $deptid Department ID |
| 218 | - * @return bool True if successful, False if not |
|
| 218 | + * @return boolean|null True if successful, False if not |
|
| 219 | 219 | * @access public |
| 220 | 220 | */ |
| 221 | 221 | function addStaffToDept(&$staff, $deptid) |
@@ -263,7 +263,7 @@ discard block |
||
| 263 | 263 | * |
| 264 | 264 | * @param mixed $staff single or array of uids or {@link xhelpStaff} objects |
| 265 | 265 | * @param int $deptid Department ID |
| 266 | - * @return bool True if successful, False if not |
|
| 266 | + * @return boolean|null True if successful, False if not |
|
| 267 | 267 | * @access public |
| 268 | 268 | */ |
| 269 | 269 | function removeStaffFromDept(&$staff, $deptid) |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | * |
| 288 | 288 | * @param mixed $dept single or array of department id's or {@link xhelpDepartment} objects |
| 289 | 289 | * @param int $uid User ID |
| 290 | - * @return bool True if successful, False if not |
|
| 290 | + * @return boolean|null True if successful, False if not |
|
| 291 | 291 | * @access public |
| 292 | 292 | */ |
| 293 | 293 | function removeDeptFromStaff(&$dept, $uid) |
@@ -154,6 +154,9 @@ discard block |
||
| 154 | 154 | return implode("\r\n",$msg); |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | + /** |
|
| 158 | + * @param string $msg |
|
| 159 | + */ |
|
| 157 | 160 | function _stripMd5Key($msg) |
| 158 | 161 | { |
| 159 | 162 | $pattern = '/^\*{4}\s'. _XHELP_TICKET_MD5SIGNATURE . '\s(.)*\*{4}/im'; |
@@ -262,6 +265,9 @@ discard block |
||
| 262 | 265 | return $this->_name; |
| 263 | 266 | } |
| 264 | 267 | |
| 268 | + /** |
|
| 269 | + * @param string $header |
|
| 270 | + */ |
|
| 265 | 271 | function getHeader($header) |
| 266 | 272 | { |
| 267 | 273 | if (isset($this->_headers[$header])) { |
@@ -17,6 +17,9 @@ discard block |
||
| 17 | 17 | $this->_errors = array(); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param string $desc |
|
| 22 | + */ |
|
| 20 | 23 | function _setError($desc) |
| 21 | 24 | { |
| 22 | 25 | if(is_array($desc)){ |
@@ -178,6 +181,9 @@ discard block |
||
| 178 | 181 | } |
| 179 | 182 | } |
| 180 | 183 | |
| 184 | + /** |
|
| 185 | + * @param string $fname |
|
| 186 | + */ |
|
| 181 | 187 | function _addAttachmentError($errors, $msg, $fname) |
| 182 | 188 | { |
| 183 | 189 | if($errors <> 0){ |
@@ -239,7 +239,6 @@ discard block |
||
| 239 | 239 | /** |
| 240 | 240 | * Returns emails of staff belonging to an event |
| 241 | 241 | * |
| 242 | - * @param int $dept ID of department |
|
| 243 | 242 | * @param int $event_id bit_value of event |
| 244 | 243 | * @param int $submittedBy ID of user submitting event - should only be used when there is a response |
| 245 | 244 | * |
@@ -649,7 +648,7 @@ discard block |
||
| 649 | 648 | /** |
| 650 | 649 | * Confirm submission to user and notify staff members when new_ticket is triggered |
| 651 | 650 | * @param xhelpTicket $ticket Ticket that was added |
| 652 | - * @return bool True on success, false on error |
|
| 651 | + * @return boolean|null True on success, false on error |
|
| 653 | 652 | * @access public |
| 654 | 653 | */ |
| 655 | 654 | function new_ticket(&$ticket) |
@@ -1211,7 +1210,7 @@ discard block |
||
| 1211 | 1210 | * Event: edit_response |
| 1212 | 1211 | * Triggered after a response has been modified |
| 1213 | 1212 | * Also See: new_response |
| 1214 | - * @param xhelpTicket $nticket Ticket after modifications |
|
| 1213 | + * @param xhelpTicket $ticket Ticket after modifications |
|
| 1215 | 1214 | * @param xhelpResponses $response Modified response |
| 1216 | 1215 | * @param xhelpTicket $oldticket Ticket before modifications |
| 1217 | 1216 | * @param xhelpResponses $oldresponse Response modifications |
@@ -277,6 +277,10 @@ discard block |
||
| 277 | 277 | * @return object The text mimePart object |
| 278 | 278 | * @access private |
| 279 | 279 | */ |
| 280 | + |
|
| 281 | + /** |
|
| 282 | + * @param string $text |
|
| 283 | + */ |
|
| 280 | 284 | function &_addTextPart(&$obj, $text){ |
| 281 | 285 | |
| 282 | 286 | $params['content_type'] = 'text/plain'; |
@@ -335,6 +339,10 @@ discard block |
||
| 335 | 339 | * @return object The multipart/mixed mimePart object |
| 336 | 340 | * @access private |
| 337 | 341 | */ |
| 342 | + |
|
| 343 | + /** |
|
| 344 | + * @param null|Mail_mimePart $obj |
|
| 345 | + */ |
|
| 338 | 346 | function &_addAlternativePart(&$obj){ |
| 339 | 347 | |
| 340 | 348 | $params['content_type'] = 'multipart/alternative'; |
@@ -196,6 +196,8 @@ discard block |
||
| 196 | 196 | * |
| 197 | 197 | * @param string Header section |
| 198 | 198 | * @param string Body section |
| 199 | + * @param string $headers |
|
| 200 | + * @param string $body |
|
| 199 | 201 | * @return object Results of decoding process |
| 200 | 202 | * @access private |
| 201 | 203 | */ |
@@ -477,6 +479,7 @@ discard block |
||
| 477 | 479 | * examples (in RFC2047). |
| 478 | 480 | * |
| 479 | 481 | * @param string Input header value to decode |
| 482 | + * @param string $input |
|
| 480 | 483 | * @return string Decoded header value |
| 481 | 484 | * @access private |
| 482 | 485 | */ |
@@ -762,6 +765,7 @@ discard block |
||
| 762 | 765 | * @param string Name of header |
| 763 | 766 | * @param string Value of header |
| 764 | 767 | * @param integer Number of tabs to indent |
| 768 | + * @param integer $indent |
|
| 765 | 769 | * @return string XML version of input |
| 766 | 770 | * @access private |
| 767 | 771 | */ |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | * Encodes and returns the email. Also stores |
| 209 | 209 | * it in the encoded member variable |
| 210 | 210 | * |
| 211 | - * @return An associative array containing two elements, |
|
| 211 | + * @return string associative array containing two elements, |
|
| 212 | 212 | * body and headers. The headers element is itself |
| 213 | 213 | * an indexed array. |
| 214 | 214 | * @access public |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | * @param $body The body of the subpart, if any. |
| 256 | 256 | * @param $params The parameters for the subpart, same |
| 257 | 257 | * as the $params argument for constructor. |
| 258 | - * @return A reference to the part you just added. It is |
|
| 258 | + * @return Mail_mimePart reference to the part you just added. It is |
|
| 259 | 259 | * crucial if using multipart/* in your subparts that |
| 260 | 260 | * you use =& in your script when calling this function, |
| 261 | 261 | * otherwise you will not be able to add further subparts. |
@@ -273,8 +273,8 @@ discard block |
||
| 273 | 273 | * |
| 274 | 274 | * Returns encoded data based upon encoding passed to it |
| 275 | 275 | * |
| 276 | - * @param $data The data to encode. |
|
| 277 | - * @param $encoding The encoding type to use, 7bit, base64, |
|
| 276 | + * @param string $data The data to encode. |
|
| 277 | + * @param string $encoding The encoding type to use, 7bit, base64, |
|
| 278 | 278 | * or quoted-printable. |
| 279 | 279 | * @access private |
| 280 | 280 | */ |