@@ -362,6 +362,10 @@ discard block |
||
| 362 | 362 | * @access private |
| 363 | 363 | * @since 1.0 |
| 364 | 364 | */ |
| 365 | + |
|
| 366 | + /** |
|
| 367 | + * @param boolean $userMethod |
|
| 368 | + */ |
|
| 365 | 369 | function _cmdAuthenticate($uid , $pwd , $userMethod = null ) |
| 366 | 370 | { |
| 367 | 371 | |
@@ -958,6 +962,10 @@ discard block |
||
| 958 | 962 | * @param $num_lines Number of lines to retrieve |
| 959 | 963 | * @return mixed Message data or false on error |
| 960 | 964 | */ |
| 965 | + |
|
| 966 | + /** |
|
| 967 | + * @param integer $num_lines |
|
| 968 | + */ |
|
| 961 | 969 | function _cmdTop($msg_id, $num_lines) |
| 962 | 970 | { |
| 963 | 971 | if ($this->_state == NET_POP3_STATE_TRANSACTION) { |
@@ -1011,6 +1019,10 @@ discard block |
||
| 1011 | 1019 | * @param $cmd Command to send (\r\n will be appended) |
| 1012 | 1020 | * @return mixed First line of response if successful, otherwise false |
| 1013 | 1021 | */ |
| 1022 | + |
|
| 1023 | + /** |
|
| 1024 | + * @param string $cmd |
|
| 1025 | + */ |
|
| 1014 | 1026 | function _sendCmd($cmd) |
| 1015 | 1027 | { |
| 1016 | 1028 | $result = $this->_send($cmd); |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | * if there is no data available, whereas it will block until there |
| 157 | 157 | * is data for blocking sockets. |
| 158 | 158 | * |
| 159 | - * @param $mode bool true for blocking sockets, false for nonblocking |
|
| 159 | + * @param boolean $mode bool true for blocking sockets, false for nonblocking |
|
| 160 | 160 | * @access public |
| 161 | 161 | * @return mixed true on success or an error object otherwise |
| 162 | 162 | */ |
@@ -222,6 +222,7 @@ discard block |
||
| 222 | 222 | * Get a specified line of data |
| 223 | 223 | * |
| 224 | 224 | * @access public |
| 225 | + * @param integer $size |
|
| 225 | 226 | * @return $size bytes of data from the socket, or a PEAR_Error if |
| 226 | 227 | * not connected. |
| 227 | 228 | */ |
@@ -241,7 +242,7 @@ discard block |
||
| 241 | 242 | * chunk; if you know the size of the data you're getting |
| 242 | 243 | * beforehand, this is definitely the way to go. |
| 243 | 244 | * |
| 244 | - * @param $size The number of bytes to read from the socket. |
|
| 245 | + * @param integer $size The number of bytes to read from the socket. |
|
| 245 | 246 | * @access public |
| 246 | 247 | * @return $size bytes of data from the socket, or a PEAR_Error if |
| 247 | 248 | * not connected. |
@@ -260,6 +261,7 @@ discard block |
||
| 260 | 261 | * Write a specified amount of data. |
| 261 | 262 | * |
| 262 | 263 | * @access public |
| 264 | + * @param string $data |
|
| 263 | 265 | * @return mixed true on success or an error object otherwise |
| 264 | 266 | */ |
| 265 | 267 | function write($data) { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | /** |
| 64 | 64 | * Generate graph to go along with report |
| 65 | 65 | * |
| 66 | - * @return mixed bool false on no graph / draw graph |
|
| 66 | + * @return false|null bool false on no graph / draw graph |
|
| 67 | 67 | * @access public |
| 68 | 68 | */ |
| 69 | 69 | function generateGraph() |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Set SQL query to be run, and set results for class |
| 78 | 78 | * |
| 79 | - * @return bool true on success / false on failure |
|
| 79 | + * @return boolean|null true on success / false on failure |
|
| 80 | 80 | * @access public |
| 81 | 81 | */ |
| 82 | 82 | function _setResults() |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Create a new xhelpReportParameter |
| 34 | 34 | * |
| 35 | - * @return object {@link xhelpReportParameter} |
|
| 35 | + * @return xhelpReportParameter {@link xhelpReportParameter} |
|
| 36 | 36 | * @access public |
| 37 | 37 | */ |
| 38 | 38 | function &create() |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | * @param string $dbfield |
| 55 | 55 | * @param string $dbaction |
| 56 | 56 | * |
| 57 | - * @return object {@link xhelpReportParameter} |
|
| 57 | + * @return xhelpReportParameter {@link xhelpReportParameter} |
|
| 58 | 58 | * @access public |
| 59 | 59 | */ |
| 60 | 60 | function addParam($controltype, $name, $fieldname, $value, $values, $fieldlength, $dbfield, $dbaction) |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | // Constructor |
| 12 | 12 | } |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $type |
|
| 16 | + */ |
|
| 14 | 17 | function &getRenderer($type, &$report) |
| 15 | 18 | { |
| 16 | 19 | $ret = false; |
@@ -51,9 +51,9 @@ discard block |
||
| 51 | 51 | * Used to make sure that the user has rights to do an action |
| 52 | 52 | * |
| 53 | 53 | * @param int $task |
| 54 | - * @param mixed $depts integer/array of department id(s) |
|
| 54 | + * @param integer $depts integer/array of department id(s) |
|
| 55 | 55 | * |
| 56 | - * @return TRUE if success, FALSE if failure |
|
| 56 | + * @return boolean if success, FALSE if failure |
|
| 57 | 57 | * |
| 58 | 58 | * @access public |
| 59 | 59 | */ |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | * @param int $roleid role id |
| 197 | 197 | * @param int $deptid department id |
| 198 | 198 | * |
| 199 | - * @return TRUE if success, FALSE if failure |
|
| 199 | + * @return boolean if success, FALSE if failure |
|
| 200 | 200 | * @access public |
| 201 | 201 | */ |
| 202 | 202 | function addStaffRole($uid, $roleid, $deptid) |
@@ -272,8 +272,6 @@ discard block |
||
| 272 | 272 | * Remove user from a role |
| 273 | 273 | * |
| 274 | 274 | * @param int $uid user id |
| 275 | - * @param int $roleid role id |
|
| 276 | - * @param int $deptid department id |
|
| 277 | 275 | * |
| 278 | 276 | * @return TRUE if success, FALSE if failure |
| 279 | 277 | * @access public |
@@ -292,7 +290,7 @@ discard block |
||
| 292 | 290 | * @param int $uid user id |
| 293 | 291 | * @param int $roleid role id |
| 294 | 292 | * |
| 295 | - * @return TRUE on success, FALSE on failure |
|
| 293 | + * @return boolean on success, FALSE on failure |
|
| 296 | 294 | * @access public |
| 297 | 295 | */ |
| 298 | 296 | function staffInRole($uid, $roleid) |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * Update staff response time if first staff response |
| 38 | 38 | * @param xhelpTicket $ticket Ticket for response |
| 39 | 39 | * @param xhelpResponses $response Response |
| 40 | - * @return bool True on success, false on error |
|
| 40 | + * @return boolean|null True on success, false on error |
|
| 41 | 41 | * @access public |
| 42 | 42 | */ |
| 43 | 43 | function new_response($ticket, $response) |
@@ -58,11 +58,9 @@ discard block |
||
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * Update staff response time if first staff response |
| 61 | - * @param xhelpTicket $ticket Ticket for response |
|
| 61 | + * @param xhelpTicket $tickets Ticket for response |
|
| 62 | 62 | * @param xhelpResponses $response Response |
| 63 | - * @param int $timespent Number of minutes spent on ticket |
|
| 64 | - * @param bool $private Is the response private? |
|
| 65 | - * @return bool True on success, false on error |
|
| 63 | + * @return boolean|null True on success, false on error |
|
| 66 | 64 | * @access public |
| 67 | 65 | */ |
| 68 | 66 | function batch_response($tickets, $response) |
@@ -88,7 +86,7 @@ discard block |
||
| 88 | 86 | * Handler for the 'batch_status' event |
| 89 | 87 | * @param array $tickets Array of xhelpTicket objects |
| 90 | 88 | * @param int $newstatus New Status of all tickets |
| 91 | - * @return bool True on success, false on error |
|
| 89 | + * @return boolean|null True on success, false on error |
|
| 92 | 90 | * @access public |
| 93 | 91 | */ |
| 94 | 92 | function batch_status($tickets, $newstatus) |
@@ -123,7 +121,6 @@ discard block |
||
| 123 | 121 | |
| 124 | 122 | /** |
| 125 | 123 | * Callback function for the 'reopen_ticket' event |
| 126 | - * @param array $args Array of arguments passed to EventService |
|
| 127 | 124 | * @return bool True on success, false on error |
| 128 | 125 | * @access public |
| 129 | 126 | */ |
@@ -158,7 +155,7 @@ discard block |
||
| 158 | 155 | /** |
| 159 | 156 | * Event Handler for 'view_ticket' |
| 160 | 157 | * @param xhelpTicket $ticket Ticket being viewd |
| 161 | - * @return bool True on success, false on error |
|
| 158 | + * @return boolean|null True on success, false on error |
|
| 162 | 159 | * @access public |
| 163 | 160 | */ |
| 164 | 161 | function view_ticket($ticket) |
@@ -107,7 +107,6 @@ discard block |
||
| 107 | 107 | * retrieve objects from the database |
| 108 | 108 | * |
| 109 | 109 | * @param object $criteria {@link CriteriaElement} conditions to be met |
| 110 | - * @param bool $id_as_key Should the department ID be used as array key |
|
| 111 | 110 | * @return array array of {@link xhelpDepartment} objects |
| 112 | 111 | * @access public |
| 113 | 112 | */ |
@@ -141,7 +140,6 @@ discard block |
||
| 141 | 140 | * retrieve objects from the database |
| 142 | 141 | * |
| 143 | 142 | * @param object $criteria {@link CriteriaElement} conditions to be met |
| 144 | - * @param bool $id_as_key Should the department ID be used as array key |
|
| 145 | 143 | * @return array array of {@link xhelpDepartment} objects |
| 146 | 144 | * @access public |
| 147 | 145 | */ |
@@ -94,7 +94,6 @@ discard block |
||
| 94 | 94 | /** |
| 95 | 95 | * Add the given field to the given department |
| 96 | 96 | * |
| 97 | - * @param mixed $staff single or array of uids or {@link xhelpTicketField} objects |
|
| 98 | 97 | * @param int $deptid Department ID |
| 99 | 98 | * @return bool True if successful, False if not |
| 100 | 99 | * @access public |
@@ -204,7 +203,6 @@ discard block |
||
| 204 | 203 | |
| 205 | 204 | /** |
| 206 | 205 | * Remove All Departments from a particular field |
| 207 | - * @param int $field Field ID |
|
| 208 | 206 | * @return bool True if successful, False if not |
| 209 | 207 | * @access public |
| 210 | 208 | */ |