@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * |
66 | 66 | * Only return skins existing in filesystem, as we disable / remove them if not compatible with supported browsers. |
67 | 67 | * |
68 | - * @return array skin => label pairs alphabetical sorted with default moono first |
|
68 | + * @return string skin => label pairs alphabetical sorted with default moono first |
|
69 | 69 | */ |
70 | 70 | public static function getAvailableCKEditorSkins() |
71 | 71 | { |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | * Adds all "easy to write" options to the configuration |
260 | 260 | * |
261 | 261 | * @param array& $config array were config get's added to |
262 | - * @param int|string $height integer height in pixel or string with css unit |
|
262 | + * @param integer $height integer height in pixel or string with css unit |
|
263 | 263 | * @param boolean|string $expanded_toolbar show toolbar expanded, boolean value, string "false", or string casted to boolean |
264 | 264 | * @param string $start_path start path for file browser |
265 | 265 | */ |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | /** |
452 | 452 | * Adds extra |
453 | 453 | * @param array $config |
454 | - * @param array $plugins plugins name which needs to be appended into extraPlugins |
|
454 | + * @param string[] $plugins plugins name which needs to be appended into extraPlugins |
|
455 | 455 | */ |
456 | 456 | public static function append_extraPlugins_config_array (&$config, $plugins) |
457 | 457 | { |
@@ -104,7 +104,7 @@ |
||
104 | 104 | * @param varchar $html2check =text input Text to check |
105 | 105 | * @param mixed $Config = text or array |
106 | 106 | * @param mixed $Spec =text or array; The '$spec' argument can be used to disallow an otherwise legal attribute for an element |
107 | - * @return varchar cleaned/fixed html |
|
107 | + * @return string cleaned/fixed html |
|
108 | 108 | */ |
109 | 109 | function run($html2check, $Config=null, $Spec=array()) |
110 | 110 | { |
@@ -625,6 +625,10 @@ |
||
625 | 625 | // eof |
626 | 626 | } |
627 | 627 | |
628 | +/** |
|
629 | + * @param string $e |
|
630 | + * @param string $a |
|
631 | + */ |
|
628 | 632 | function hl_tag2(&$e, &$a, $t=1){ |
629 | 633 | // transform tag |
630 | 634 | if($e == 'center'){$e = 'div'; return 'text-align: center;';} |
@@ -82,8 +82,7 @@ discard block |
||
82 | 82 | /** |
83 | 83 | * Allows to call a global javascript function with given parameters: window[$func].call(window[, $param1[, ...]]) |
84 | 84 | * |
85 | - * @param string $func name of the global (window) javascript function to call |
|
86 | - * @param mixed $parameters variable number of parameters |
|
85 | + * @param string $function |
|
87 | 86 | */ |
88 | 87 | public function call($function) |
89 | 88 | { |
@@ -108,7 +107,7 @@ discard block |
||
108 | 107 | * |
109 | 108 | * @param string $selector jquery selector |
110 | 109 | * @param string $method name of the jquery to call |
111 | - * @param array $parameters =array() |
|
110 | + * @param string[] $parameters =array() |
|
112 | 111 | */ |
113 | 112 | public function jquery($selector,$method,array $parameters=array()) |
114 | 113 | { |
@@ -126,6 +125,9 @@ discard block |
||
126 | 125 | } |
127 | 126 | } |
128 | 127 | |
128 | + /** |
|
129 | + * @param string $type |
|
130 | + */ |
|
129 | 131 | public function generic($type, array $parameters = array()) |
130 | 132 | { |
131 | 133 | if (is_string($type)) |
@@ -180,7 +180,6 @@ discard block |
||
180 | 180 | /** |
181 | 181 | * Init responseArray |
182 | 182 | * |
183 | - * @param array $arr |
|
184 | 183 | * @return array previous content |
185 | 184 | */ |
186 | 185 | public function initResponseArray() |
@@ -264,7 +263,7 @@ discard block |
||
264 | 263 | * |
265 | 264 | * @param midex $var |
266 | 265 | * @param string $prefix ='' |
267 | - * @return mixed |
|
266 | + * @return midex|null |
|
268 | 267 | */ |
269 | 268 | public static function fix_content($var, $prefix='') |
270 | 269 | { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * gets the version |
83 | 83 | * |
84 | - * @return integer the supported ldap version |
|
84 | + * @return string the supported ldap version |
|
85 | 85 | */ |
86 | 86 | function getVersion() |
87 | 87 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param resource $ds |
160 | 160 | * @param string $host |
161 | 161 | * @param int $version 2 or 3 |
162 | - * @return ldapserverinfo |
|
162 | + * @return ServerInfo |
|
163 | 163 | */ |
164 | 164 | public static function get($ds, $host, $version=3) |
165 | 165 | { |
@@ -176,6 +176,11 @@ discard block |
||
176 | 176 | return is_array($id) ? $links : ($links[$id] ? $links[$id] : array()); |
177 | 177 | } |
178 | 178 | |
179 | + /** |
|
180 | + * @param boolean $left |
|
181 | + * @param string $only_app |
|
182 | + * @param boolean $not_only |
|
183 | + */ |
|
179 | 184 | private static function _add2links($row,$left,$only_app,$not_only,array &$links) |
180 | 185 | { |
181 | 186 | $linked_app = $left ? $row['link_app2'] : $row['link_app1']; |
@@ -206,7 +211,7 @@ discard block |
||
206 | 211 | * @param string $id ='' id in $app, if no integer link_id given in $app_link_id |
207 | 212 | * @param string $app2 ='' appname of 2. endpoint of the link, if no integer link_id given in $app_link_id |
208 | 213 | * @param string $id2 ='' id in $app2, if no integer link_id given in $app_link_id |
209 | - * @return array with link-data or False |
|
214 | + * @return string with link-data or False |
|
210 | 215 | */ |
211 | 216 | static function get_link($app_link_id,$id='',$app2='',$id2='') |
212 | 217 | { |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | * @param boolean $replace_placeholders =false should placeholders like {{n_fn}} be replaced |
487 | 487 | * @param string $field ='name' what to return as value: "ident_(realname|org|email|signature)" or default "name"=result from identity_name |
488 | 488 | * @param int $user =null account_id to use if not current user |
489 | - * @return Iterator ident_id => identity_name of identity |
|
489 | + * @return Api\Db\CallbackIterator ident_id => identity_name of identity |
|
490 | 490 | */ |
491 | 491 | public static function identities($account, $replace_placeholders=true, $field='name', $user=null) |
492 | 492 | { |
@@ -795,7 +795,7 @@ discard block |
||
795 | 795 | * |
796 | 796 | * To get $this->params you need to call getUserData before! It is never automatically loaded. |
797 | 797 | * |
798 | - * @param type $name |
|
798 | + * @param string $name |
|
799 | 799 | * @return mixed |
800 | 800 | */ |
801 | 801 | public function __get($name) |
@@ -819,8 +819,8 @@ discard block |
||
819 | 819 | /** |
820 | 820 | * Give read access to protected parameters in $this->params |
821 | 821 | * |
822 | - * @param type $name |
|
823 | - * @return mixed |
|
822 | + * @param string $name |
|
823 | + * @return boolean |
|
824 | 824 | */ |
825 | 825 | public function __isset($name) |
826 | 826 | { |
@@ -1340,10 +1340,10 @@ discard block |
||
1340 | 1340 | * @param boolean|string $just_name =true true: return self::identity_name, false: return Account objects, |
1341 | 1341 | * string with attribute-name: return that attribute, eg. acc_imap_host or 'params' to return all attributes as array |
1342 | 1342 | * @param string $order_by ='acc_name ASC' |
1343 | - * @param int|boolean $offset =false offset or false to return all |
|
1343 | + * @param boolean $offset =false offset or false to return all |
|
1344 | 1344 | * @param int $num_rows =0 number of rows to return, 0=default from prefs (if $offset !== false) |
1345 | 1345 | * @param boolean $replace_placeholders =true should placeholders like {{n_fn}} be replaced |
1346 | - * @return Iterator with acc_id => acc_name or Account objects |
|
1346 | + * @return Api\Db\CallbackIterator with acc_id => acc_name or Account objects |
|
1347 | 1347 | */ |
1348 | 1348 | public static function search($only_current_user=true, $just_name=true, $order_by=null, $offset=false, $num_rows=0, $replace_placeholders=true) |
1349 | 1349 | { |
@@ -36,9 +36,6 @@ discard block |
||
36 | 36 | * Hook called before an account get deleted |
37 | 37 | * |
38 | 38 | * @param array $data |
39 | - * @param int $data['account_id'] numerical id |
|
40 | - * @param string $data['account_lid'] account-name |
|
41 | - * @param int $data['new_owner'] account-id of new owner, or false if data should get deleted |
|
42 | 39 | */ |
43 | 40 | static function deleteaccount(array $data) |
44 | 41 | { |
@@ -52,8 +49,6 @@ discard block |
||
52 | 49 | * Hook called before a group get deleted |
53 | 50 | * |
54 | 51 | * @param array $data |
55 | - * @param int $data['account_id'] numerical id |
|
56 | - * @param string $data['account_name'] account-name |
|
57 | 52 | */ |
58 | 53 | static function deletegroup(array $data) |
59 | 54 | { |
@@ -64,9 +59,6 @@ discard block |
||
64 | 59 | * Hook called when an account get added or edited |
65 | 60 | * |
66 | 61 | * @param array $data |
67 | - * @param int $data['account_id'] numerical id |
|
68 | - * @param string $data['account_lid'] account-name |
|
69 | - * @param string $data['account_email'] email |
|
70 | 62 | */ |
71 | 63 | static function addaccount(array $data) |
72 | 64 | { |