@@ -159,7 +159,7 @@ |
||
| 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 | { |
@@ -112,6 +112,8 @@ |
||
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | 114 | * Static function to add a history record |
| 115 | + * @param string $field_code |
|
| 116 | + * @param string $new_value |
|
| 115 | 117 | */ |
| 116 | 118 | public static function static_add($appname, $id, $user, $field_code, $new_value, $old_value = '') |
| 117 | 119 | { |
@@ -368,9 +368,9 @@ discard block |
||
| 368 | 368 | * |
| 369 | 369 | * Calls get_links() repeatedly to get all the combinations for the content. |
| 370 | 370 | * |
| 371 | - * @param $app String appname |
|
| 371 | + * @param string $app String appname |
|
| 372 | 372 | * @param $id String ID of record |
| 373 | - * @param $prefix |
|
| 373 | + * @param string $prefix |
|
| 374 | 374 | * @param $content String document content |
| 375 | 375 | */ |
| 376 | 376 | protected function get_all_links($app, $id, $prefix, &$content) |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | * @param mixed $app_limit app_limit, if not set checks the global limit |
| 531 | 531 | * @param string $checkas [AND|ISALLOWED], AND default; if set to ISALLOWED it is checked if Export is allowed |
| 532 | 532 | * |
| 533 | - * @return bool - true if no export is allowed or a limit is set, false if there is no restriction |
|
| 533 | + * @return boolean|null - true if no export is allowed or a limit is set, false if there is no restriction |
|
| 534 | 534 | */ |
| 535 | 535 | public static function hasExportLimit($app_limit,$checkas='AND') |
| 536 | 536 | { |
@@ -579,6 +579,9 @@ discard block |
||
| 579 | 579 | return $content; |
| 580 | 580 | } |
| 581 | 581 | |
| 582 | + /** |
|
| 583 | + * @param string $mimetype |
|
| 584 | + */ |
|
| 582 | 585 | protected function apply_styles (&$content, $mimetype, $mso_application_progid=null) |
| 583 | 586 | { |
| 584 | 587 | if (!isset($mso_application_progid)) |
@@ -1169,6 +1172,8 @@ discard block |
||
| 1169 | 1172 | |
| 1170 | 1173 | /** |
| 1171 | 1174 | * Convert numeric values in spreadsheets into actual numeric values |
| 1175 | + * @param string $content |
|
| 1176 | + * @param string $mimetype |
|
| 1172 | 1177 | */ |
| 1173 | 1178 | protected function format_spreadsheet_numbers(&$content, $names, $mimetype) |
| 1174 | 1179 | { |
@@ -1238,6 +1243,7 @@ discard block |
||
| 1238 | 1243 | |
| 1239 | 1244 | /** |
| 1240 | 1245 | * Convert date / timestamp values in spreadsheets into actual date / timestamp values |
| 1246 | + * @param string $mimetype |
|
| 1241 | 1247 | */ |
| 1242 | 1248 | protected function format_spreadsheet_dates(&$content, $names, &$values, $mimetype) |
| 1243 | 1249 | { |
@@ -1342,6 +1348,7 @@ discard block |
||
| 1342 | 1348 | /** |
| 1343 | 1349 | * Expand link_to custom fields with the merge replacements from the app |
| 1344 | 1350 | * but only if the template uses them. |
| 1351 | + * @param string $app |
|
| 1345 | 1352 | */ |
| 1346 | 1353 | public function cf_link_to_expand($values, $content, &$replacements, $app = null) |
| 1347 | 1354 | { |
@@ -1407,7 +1414,7 @@ discard block |
||
| 1407 | 1414 | /** |
| 1408 | 1415 | * Process special flags, such as IF or NELF |
| 1409 | 1416 | * |
| 1410 | - * @param content Text to be examined and changed |
|
| 1417 | + * @param content string to be examined and changed |
|
| 1411 | 1418 | * @param replacements array of markers => replacement |
| 1412 | 1419 | * |
| 1413 | 1420 | * @return changed content |
@@ -1720,8 +1727,7 @@ discard block |
||
| 1720 | 1727 | * Get a list of document actions / files from the given directory |
| 1721 | 1728 | * |
| 1722 | 1729 | * @param string $dirs Directory(s comma or space separated) to search |
| 1723 | - * @param string $prefix='document_' prefix for array keys |
|
| 1724 | - * @param array|string $mime_filter=null allowed mime type(s), default all, negative filter if $mime_filter[0] === '!' |
|
| 1730 | + * @param array|string $mime_filter allowed mime type(s), default all, negative filter if $mime_filter[0] === '!' |
|
| 1725 | 1731 | * @return array List of documents, suitable for a selectbox. The key is document_<filename>. |
| 1726 | 1732 | */ |
| 1727 | 1733 | public static function get_documents($dirs, $prefix='document_', $mime_filter=null, $app='') |
@@ -1988,7 +1994,8 @@ discard block |
||
| 1988 | 1994 | * |
| 1989 | 1995 | * @param string &$document maybe relative path of document, on return true absolute path to existing document |
| 1990 | 1996 | * @param string $dirs comma or whitespace separated directories |
| 1991 | - * @return string|boolean false if document exists, otherwise string with error-message |
|
| 1997 | + * @param string $document |
|
| 1998 | + * @return false|string false if document exists, otherwise string with error-message |
|
| 1992 | 1999 | */ |
| 1993 | 2000 | public static function check_document(&$document, $dirs) |
| 1994 | 2001 | { |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | * @param array $data current entry |
| 529 | 529 | * @param array $old = null old/last state of the entry or null for a new entry |
| 530 | 530 | * @param boolean $deleted = null can be set to true to let the tracking know the item got deleted or undelted |
| 531 | - * @param array $email_notified=null if present will return the emails notified, if given emails in that list will not be notified |
|
| 531 | + * @param array $email_notified if present will return the emails notified, if given emails in that list will not be notified |
|
| 532 | 532 | * @return boolean true on success, false on error (error messages are in $this->errors) |
| 533 | 533 | */ |
| 534 | 534 | public function do_notifications($data,$old,$deleted=null,&$email_notified=null) |
@@ -824,7 +824,6 @@ discard block |
||
| 824 | 824 | * The default implementation prefers depending on the prefer_user_as_sender class-var the user over |
| 825 | 825 | * what is returned by get_config('sender'). |
| 826 | 826 | * |
| 827 | - * @param int $user account_lid of user |
|
| 828 | 827 | * @param array $data |
| 829 | 828 | * @param array $old |
| 830 | 829 | * @param bool $prefer_id returns the userid rather than email |
@@ -742,7 +742,7 @@ |
||
| 742 | 742 | * |
| 743 | 743 | * @param string $app application name |
| 744 | 744 | * @param string $lang language code |
| 745 | - * @return the full path of the filename for the requested app and language |
|
| 745 | + * @return string full path of the filename for the requested app and language |
|
| 746 | 746 | */ |
| 747 | 747 | static function get_lang_file($app,$lang) |
| 748 | 748 | { |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * dir working on just the eGW VFS: returns directory object |
| 153 | 153 | * |
| 154 | 154 | * @param string $path filename with absolute path in the eGW VFS |
| 155 | - * @return Directory |
|
| 155 | + * @return \Directory |
|
| 156 | 156 | */ |
| 157 | 157 | static function dir($path) |
| 158 | 158 | { |
@@ -1295,7 +1295,7 @@ discard block |
||
| 1295 | 1295 | * Also works around PHP under Windows returning dirname('/something') === '\\', which is NOT understood by EGroupware's VFS! |
| 1296 | 1296 | * |
| 1297 | 1297 | * @param string $_url path or url |
| 1298 | - * @return string|boolean parent or false if there's none ($path == '/') |
|
| 1298 | + * @return false|string parent or false if there's none ($path == '/') |
|
| 1299 | 1299 | */ |
| 1300 | 1300 | static function dirname($_url) |
| 1301 | 1301 | { |
@@ -1719,7 +1719,7 @@ discard block |
||
| 1719 | 1719 | * checkLock() helper |
| 1720 | 1720 | * |
| 1721 | 1721 | * @param string resource path to check for locks |
| 1722 | - * @return array|boolean false if there's no lock, else array with lock info |
|
| 1722 | + * @return string|null false if there's no lock, else array with lock info |
|
| 1723 | 1723 | */ |
| 1724 | 1724 | static function checkLock($path) |
| 1725 | 1725 | { |
@@ -1935,7 +1935,7 @@ discard block |
||
| 1935 | 1935 | /** |
| 1936 | 1936 | * Copies the files given in $src to $dst. |
| 1937 | 1937 | * |
| 1938 | - * @param array $src contains the source file |
|
| 1938 | + * @param string[] $src contains the source file |
|
| 1939 | 1939 | * @param string $dst is the destination directory |
| 1940 | 1940 | * @param int& $errs =null on return number of errors happened |
| 1941 | 1941 | * @param array& $copied =null on return files copied |
@@ -84,7 +84,7 @@ |
||
| 84 | 84 | /** |
| 85 | 85 | * Returns available diskspace information |
| 86 | 86 | * |
| 87 | - * @return array [ available-space, free-space ] |
|
| 87 | + * @return false[] [ available-space, free-space ] |
|
| 88 | 88 | */ |
| 89 | 89 | function getQuotaInfo() |
| 90 | 90 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * |
| 63 | 63 | * Return null if the ETag can not effectively be determined |
| 64 | 64 | * |
| 65 | - * @return mixed |
|
| 65 | + * @return string|null |
|
| 66 | 66 | */ |
| 67 | 67 | function getETag() |
| 68 | 68 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * |
| 79 | 79 | * If null is returned, we'll assume application/octet-stream |
| 80 | 80 | * |
| 81 | - * @return mixed |
|
| 81 | + * @return string |
|
| 82 | 82 | */ |
| 83 | 83 | function getContentType() |
| 84 | 84 | { |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | * |
| 272 | 272 | * If you have cached data in your stream but not yet stored it into the underlying storage, you should do so now. |
| 273 | 273 | * |
| 274 | - * @return booelan TRUE if the cached data was successfully stored (or if there was no data to store), or FALSE if the data could not be stored. |
|
| 274 | + * @return boolean TRUE if the cached data was successfully stored (or if there was no data to store), or FALSE if the data could not be stored. |
|
| 275 | 275 | */ |
| 276 | 276 | function stream_flush ( ) |
| 277 | 277 | { |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | * |
| 508 | 508 | * @param string $url URL that was passed to opendir() and that this object is expected to explore. |
| 509 | 509 | * @param int $options |
| 510 | - * @return booelan |
|
| 510 | + * @return boolean |
|
| 511 | 511 | */ |
| 512 | 512 | function dir_opendir ( $url, $options ) |
| 513 | 513 | { |
@@ -616,7 +616,7 @@ discard block |
||
| 616 | 616 | * It should reset the output generated by dir_readdir(). i.e.: |
| 617 | 617 | * The next call to dir_readdir() should return the first entry in the location returned by dir_opendir(). |
| 618 | 618 | * |
| 619 | - * @return boolean |
|
| 619 | + * @return boolean|null |
|
| 620 | 620 | */ |
| 621 | 621 | function dir_rewinddir ( ) |
| 622 | 622 | { |