@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | /** |
20 | 20 | * Exports records as defined in $_definition |
21 | 21 | * |
22 | - * @param egw_record $_definition |
|
22 | + * @param importexport_definition $_definition |
|
23 | 23 | */ |
24 | 24 | public function export( $_stream, importexport_definition $_definition) { |
25 | 25 | $options = $_definition->plugin_options; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * return html for options. |
89 | 89 | * this way the plugin has all opportunities for options tab |
90 | 90 | * |
91 | - * @return string html |
|
91 | + * @return boolean html |
|
92 | 92 | */ |
93 | 93 | public function get_options_etpl() { |
94 | 94 | return false; |
@@ -77,8 +77,7 @@ |
||
77 | 77 | /** |
78 | 78 | * imports entries according to given definition object. |
79 | 79 | * @param resource $_stream |
80 | - * @param string $_charset |
|
81 | - * @param definition $_definition |
|
80 | + * @param importexport_definition $_definition |
|
82 | 81 | */ |
83 | 82 | public function import( $_stream, importexport_definition $_definition ) { |
84 | 83 | $import_csv = new importexport_import_csv( $_stream, array( |
@@ -291,7 +291,7 @@ |
||
291 | 291 | * Check if next submission is due, in which case we call submit and NOT return to the admin hook |
292 | 292 | * |
293 | 293 | * @param boolean $redirect should we redirect or return true |
294 | - * @return boolean true if statistic submission is due |
|
294 | + * @return boolean|null true if statistic submission is due |
|
295 | 295 | */ |
296 | 296 | public static function check($redirect=true) |
297 | 297 | { |
@@ -491,6 +491,10 @@ |
||
491 | 491 | protected static function call_hook() |
492 | 492 | { |
493 | 493 | self::$hook_data = array(); |
494 | + |
|
495 | + /** |
|
496 | + * @param string $appname |
|
497 | + */ |
|
494 | 498 | function display_section($appname,$file,$file2=False) |
495 | 499 | { |
496 | 500 | admin_ui::$hook_data[$appname] = $file2 ? $file2 : $file; |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * Delete ACL record in the repository of the class |
167 | 167 | * |
168 | 168 | * @param string $appname appname or '' for $GLOBALS['egw_info']['flags']['currentapp'] |
169 | - * @param string/boolean $location location or false for all locations |
|
169 | + * @param boolean $location location or false for all locations |
|
170 | 170 | * @return array all ACL records from $this->data. |
171 | 171 | */ |
172 | 172 | function delete($appname,$location) |
@@ -267,8 +267,8 @@ discard block |
||
267 | 267 | /** |
268 | 268 | * check required rights agains the internal repository (included rights of $this->account_id and all it's memberships) |
269 | 269 | * |
270 | - * @param $location app location |
|
271 | - * @param $required required right to check against |
|
270 | + * @param string $location app location |
|
271 | + * @param integer $required required right to check against |
|
272 | 272 | * @param $appname optional defaults to currentapp |
273 | 273 | * @return boolean |
274 | 274 | */ |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | * cancels a timer |
325 | 325 | * |
326 | 326 | * @param string $id has to be the one used to set it. |
327 | - * @return boolean True if the timer exists and is not expired. |
|
327 | + * @return integer True if the timer exists and is not expired. |
|
328 | 328 | */ |
329 | 329 | function cancel_timer($id) |
330 | 330 | { |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | /** |
471 | 471 | * reads all matching db-rows / jobs |
472 | 472 | * |
473 | - * @param string $id =0 reads all expired rows / jobs ready to run\ |
|
473 | + * @param integer $id =0 reads all expired rows / jobs ready to run\ |
|
474 | 474 | * != 0 reads all rows/jobs matching $id (sql-wildcards '%' and '_' can be used) |
475 | 475 | * @param array|string $cols ='*' string or array of column-names / select-expressions |
476 | 476 | * @param int|bool $offset =False offset for a limited query or False (default) |
@@ -558,7 +558,7 @@ discard block |
||
558 | 558 | /** |
559 | 559 | * delete db-row / job with $id |
560 | 560 | * |
561 | - * @return boolean False if $id not found else True |
|
561 | + * @return integer False if $id not found else True |
|
562 | 562 | */ |
563 | 563 | function delete($id) |
564 | 564 | { |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | * check if users are supposed to change their password every x sdays, then check if password is of old age |
85 | 85 | * or the devil-admin reset the users password and forced the user to change his password on next login. |
86 | 86 | * |
87 | - * @param string& $message =null on return false: message why password needs to be changed |
|
88 | - * @return boolean true: all good, false: password change required, null: password expires in N days |
|
87 | + * @param string $message =null on return false: message why password needs to be changed |
|
88 | + * @return boolean|null true: all good, false: password change required, null: password expires in N days |
|
89 | 89 | */ |
90 | 90 | static function check_password_change(&$message=null) |
91 | 91 | { |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | * |
295 | 295 | * uses the encryption type set in setup and calls the appropriate encryption functions |
296 | 296 | * |
297 | - * @param $password password to encrypt |
|
297 | + * @param string $password password to encrypt |
|
298 | 298 | */ |
299 | 299 | static function encrypt_password($password,$sql=False) |
300 | 300 | { |
@@ -406,6 +406,7 @@ discard block |
||
406 | 406 | * @param string $form_val user input value for comparison |
407 | 407 | * @param string $db_val stored value / hash (from database) |
408 | 408 | * @param string &$type detected crypt type on return |
409 | + * @param string $type |
|
409 | 410 | * @return boolean True on successful comparison |
410 | 411 | */ |
411 | 412 | static function crypt_compare($form_val, $db_val, &$type) |
@@ -618,7 +619,7 @@ discard block |
||
618 | 619 | * @param string $forbid_name =null if "yes" username or full-name split by delimiters AND longer then 3 chars are |
619 | 620 | * forbidden to be included in password, default to whatever set in config for "passwd_forbid_name" |
620 | 621 | * @param array|int $account =null array with account_lid and account_fullname or account_id for $forbid_name check |
621 | - * @return mixed false if password is considered "safe" (or no requirements) or a string $message if "unsafe" |
|
622 | + * @return string|false false if password is considered "safe" (or no requirements) or a string $message if "unsafe" |
|
622 | 623 | */ |
623 | 624 | static function crackcheck($passwd, $reqstrength=null, $minlength=null, $forbid_name=null, $account=null) |
624 | 625 | { |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | * @param array &$options |
257 | 257 | * @param array &$files |
258 | 258 | * @param int $user account_id |
259 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
259 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
260 | 260 | */ |
261 | 261 | function expand_property_report($path,&$options,&$files,$user) |
262 | 262 | { |
@@ -1191,7 +1191,7 @@ discard block |
||
1191 | 1191 | * Check if resource is a location |
1192 | 1192 | * |
1193 | 1193 | * @param array|int $resource |
1194 | - * @return boolean |
|
1194 | + * @return null|boolean |
|
1195 | 1195 | */ |
1196 | 1196 | public static function resource_is_location($resource) |
1197 | 1197 | { |
@@ -1470,7 +1470,6 @@ discard block |
||
1470 | 1470 | * Get proxy-groups for given user $account: users or groups who GRANT proxy rights to $account |
1471 | 1471 | * |
1472 | 1472 | * @param int $account who is the proxy |
1473 | - * @param string|array $app_proxys =null applications for which proxys should be added |
|
1474 | 1473 | * @return array with href props |
1475 | 1474 | */ |
1476 | 1475 | protected function get_resource_proxy_groups($account) |
@@ -1608,8 +1607,6 @@ discard block |
||
1608 | 1607 | /** |
1609 | 1608 | * Do propfind of /principals/ |
1610 | 1609 | * |
1611 | - * @param string $name name of group or empty |
|
1612 | - * @param string $rest name of rest of path behind group-name |
|
1613 | 1610 | * @param array $options |
1614 | 1611 | * @return array|string array with files or HTTP error code |
1615 | 1612 | */ |
@@ -1640,7 +1637,7 @@ discard block |
||
1640 | 1637 | * @param array &$options |
1641 | 1638 | * @param int $id |
1642 | 1639 | * @param int $user =null account_id |
1643 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1640 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1644 | 1641 | */ |
1645 | 1642 | function get(&$options,$id,$user=null) |
1646 | 1643 | { |
@@ -1655,7 +1652,7 @@ discard block |
||
1655 | 1652 | * @param array &$options |
1656 | 1653 | * @param int $id |
1657 | 1654 | * @param int $user =null account_id of owner, default null |
1658 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1655 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1659 | 1656 | */ |
1660 | 1657 | function put(&$options,$id,$user=null) |
1661 | 1658 | { |
@@ -1669,7 +1666,7 @@ discard block |
||
1669 | 1666 | * |
1670 | 1667 | * @param array &$options |
1671 | 1668 | * @param int $id |
1672 | - * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1669 | + * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found') |
|
1673 | 1670 | */ |
1674 | 1671 | function delete(&$options,$id) |
1675 | 1672 | { |
@@ -1681,7 +1678,7 @@ discard block |
||
1681 | 1678 | /** |
1682 | 1679 | * Read an entry |
1683 | 1680 | * |
1684 | - * @param string|int $id |
|
1681 | + * @param integer $id |
|
1685 | 1682 | * @return array/boolean array with entry, false if no read rights, null if $id does not exist |
1686 | 1683 | */ |
1687 | 1684 | function read($id) |
@@ -1696,7 +1693,7 @@ discard block |
||
1696 | 1693 | * |
1697 | 1694 | * @param int $acl Api\Acl::READ, Api\Acl::EDIT or Api\Acl::DELETE |
1698 | 1695 | * @param array|int $entry entry-array or id |
1699 | - * @return boolean null if entry does not exist, false if no access, true if access permitted |
|
1696 | + * @return null|boolean null if entry does not exist, false if no access, true if access permitted |
|
1700 | 1697 | */ |
1701 | 1698 | function check_access($acl,$entry) |
1702 | 1699 | { |
@@ -1739,7 +1736,7 @@ discard block |
||
1739 | 1736 | * |
1740 | 1737 | * @param string $path path of collection |
1741 | 1738 | * @param int $user =null owner of the collection, default current user |
1742 | - * @return array with privileges |
|
1739 | + * @return string[] with privileges |
|
1743 | 1740 | */ |
1744 | 1741 | public function current_user_privileges($path, $user=null) |
1745 | 1742 | { |
@@ -94,6 +94,7 @@ |
||
94 | 94 | * @param Handler $handler |
95 | 95 | * @param array $filter filter for propfind call |
96 | 96 | * @param array $files =array() extra files/responses to return too |
97 | + * @param string $path |
|
97 | 98 | */ |
98 | 99 | public function __construct(Handler $handler, $path, array $filter,array &$files=array()) |
99 | 100 | { |