@@ -20,7 +20,7 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * Constructor |
| 22 | 22 | * |
| 23 | - * @param boolean|array $allow true=give rights, false=remove rights, or array with all 3 params |
|
| 23 | + * @param boolean $allow true=give rights, false=remove rights, or array with all 3 params |
|
| 24 | 24 | * @param string|int $account =null account name or id |
| 25 | 25 | * @param array|string $apps =null app-names |
| 26 | 26 | */ |
@@ -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; |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | * If no account_id is set in data the account is added and the new id is set in $data. |
| 191 | 191 | * |
| 192 | 192 | * @param array $data array with account-data |
| 193 | - * @return int|boolean the account_id or false on error |
|
| 193 | + * @return false|string the account_id or false on error |
|
| 194 | 194 | */ |
| 195 | 195 | function save(&$data) |
| 196 | 196 | { |
@@ -995,7 +995,7 @@ discard block |
||
| 995 | 995 | * |
| 996 | 996 | * @param int $_account_id |
| 997 | 997 | * @param string $ip |
| 998 | - * @return int lastlogin time |
|
| 998 | + * @return boolean lastlogin time |
|
| 999 | 999 | */ |
| 1000 | 1000 | function update_lastlogin($_account_id, $ip) |
| 1001 | 1001 | { |
@@ -1097,7 +1097,6 @@ discard block |
||
| 1097 | 1097 | * @param int $gid gidnumber of group to set |
| 1098 | 1098 | * @param array $objectclass =null should we set the member and uniqueMember attributes (groupOf(Unique)Names|univentionGroup) (default detect it) |
| 1099 | 1099 | * @param string $use_cn =null if set $cn is used instead $gid and the attributes are returned, not written to ldap |
| 1100 | - * @param boolean $uniqueMember =null should we set the uniqueMember attribute (default detect it) |
|
| 1101 | 1100 | * @return boolean/array false on failure, array or true otherwise |
| 1102 | 1101 | */ |
| 1103 | 1102 | function set_members($members, $gid, array $objectclass=null, $use_cn=null) |
@@ -47,7 +47,7 @@ |
||
| 47 | 47 | * If no account_id is set in data the account is added and the new id is set in $data. |
| 48 | 48 | * |
| 49 | 49 | * @param array $data array with account-data |
| 50 | - * @return int|boolean the account_id or false on error |
|
| 50 | + * @return false|string the account_id or false on error |
|
| 51 | 51 | */ |
| 52 | 52 | function save(&$data) |
| 53 | 53 | { |
@@ -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 | { |