@@ -258,6 +258,11 @@ discard block |
||
258 | 258 | $this->Data[$SourceID]["Connections"][] = $TargetID; |
259 | 259 | } |
260 | 260 | /* Get the median linked nodes position */ |
261 | + |
|
262 | + /** |
|
263 | + * @param double $X |
|
264 | + * @param double $Y |
|
265 | + */ |
|
261 | 266 | function getMedianOffset($Key,$X,$Y) |
262 | 267 | { |
263 | 268 | $Cpt = 1; |
@@ -277,6 +282,10 @@ discard block |
||
277 | 282 | } |
278 | 283 | |
279 | 284 | /* Return the ID of the attached partner with the biggest weight */ |
285 | + |
|
286 | + /** |
|
287 | + * @return double |
|
288 | + */ |
|
280 | 289 | function getBiggestPartner($Key) |
281 | 290 | { |
282 | 291 | if ( !isset($this->Data[$Key]["Connections"]) ) { return(""); } |
@@ -26,6 +26,8 @@ discard block |
||
26 | 26 | |
27 | 27 | /** |
28 | 28 | * Get an image object from a given file and cck field |
29 | + * @param string $field_name |
|
30 | + * @param string $content_type |
|
29 | 31 | */ |
30 | 32 | function get_cck_image_object($image_path, $field_name, $content_type, $ignore_resolution = FALSE) { |
31 | 33 | $field = content_fields($field_name, $content_type); |
@@ -237,6 +239,7 @@ discard block |
||
237 | 239 | /** |
238 | 240 | * Include BOINC code |
239 | 241 | * The path from the BOINC html root must be included (e.g. user/file.php) |
242 | + * @param string $file |
|
240 | 243 | */ |
241 | 244 | function include_boinc($file) { |
242 | 245 | if ($include_dir = boinc_get_path()) { |
@@ -252,6 +255,7 @@ discard block |
||
252 | 255 | |
253 | 256 | /** |
254 | 257 | * Get the BOINC include path |
258 | + * @return string |
|
255 | 259 | */ |
256 | 260 | function boinc_get_path($type = 'root') { |
257 | 261 | $dir = "boinc_{$type}_dir"; |
@@ -13,6 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | /** |
15 | 15 | * The structure of the general preferences form |
16 | + * @param string $prefs_preset |
|
16 | 17 | */ |
17 | 18 | function boincwork_generalprefs_form(&$form_state, $venue, $prefs_preset = null, $advanced = FALSE) { |
18 | 19 | $form = array(); |
@@ -754,6 +755,7 @@ discard block |
||
754 | 755 | |
755 | 756 | /** |
756 | 757 | * Perform the database updates to merge the old host into the new host |
758 | + * @param string $message |
|
757 | 759 | */ |
758 | 760 | function boincwork_host_merge($old_host, $new_host, &$message = NULL) { |
759 | 761 | // Decay the average credit of the two hosts |
@@ -977,6 +977,7 @@ discard block |
||
977 | 977 | |
978 | 978 | /** |
979 | 979 | * Format a number to be displayed using a maximum number of digits |
980 | + * @param double $number |
|
980 | 981 | */ |
981 | 982 | function boincwork_format_stats($number, $max_digits = 4) { |
982 | 983 | $suffix = array( |
@@ -1187,6 +1188,9 @@ discard block |
||
1187 | 1188 | // xml_to_array(): Convert an XML DOM object to array format |
1188 | 1189 | //------------------------------------------------------------------------------------------------ |
1189 | 1190 | |
1191 | + /** |
|
1192 | + * @param DOMDocument $xml |
|
1193 | + */ |
|
1190 | 1194 | function xml_to_array($xml) { |
1191 | 1195 | $node = $xml->firstChild; //$xml->first_child(); |
1192 | 1196 | $result = ''; |
@@ -1269,6 +1273,7 @@ discard block |
||
1269 | 1273 | |
1270 | 1274 | /** |
1271 | 1275 | * Determine output for host list views when no hosts are found. |
1276 | + * @param string $context |
|
1272 | 1277 | */ |
1273 | 1278 | function boincwork_views_host_list_empty_text($context = NULL) { |
1274 | 1279 |
@@ -1,6 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | // $Id: bbcode-filter.inc,v 1.66 2008/11/30 08:50:08 naudefj Exp $ |
3 | 3 | |
4 | +/** |
|
5 | + * @param string $body |
|
6 | + */ |
|
4 | 7 | function _bbcode_filter_process(&$body, $format = -1) { |
5 | 8 | |
6 | 9 | $quote_text = t('Quote:'); |
@@ -68,6 +68,7 @@ |
||
68 | 68 | * custom multiple value widgets but don't need any other special multiple |
69 | 69 | * values handling. This will call the field generation function |
70 | 70 | * a random number of times and compile the results into a node array. |
71 | + * @param string $function |
|
71 | 72 | */ |
72 | 73 | function content_devel_multiple($function, $node, $field) { |
73 | 74 | $node_field = array(); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | * the form_state for the above form |
32 | 32 | * @param $field |
33 | 33 | * the field array to use to create the form element |
34 | - * @param $get_delta |
|
34 | + * @param integer $get_delta |
|
35 | 35 | * use to get only a specific delta value of a multiple value field, otherwise |
36 | 36 | * function will return the entire $field form element. |
37 | 37 | */ |
@@ -289,6 +289,7 @@ |
||
289 | 289 | /** |
290 | 290 | * Returns the fields of a given field type only. |
291 | 291 | * Suitable for using it with #options. |
292 | + * @param string $type |
|
292 | 293 | */ |
293 | 294 | function content_rules_get_field_names_by_type($type = NULL) { |
294 | 295 | $fields = array(); |
@@ -607,7 +607,7 @@ |
||
607 | 607 | } |
608 | 608 | |
609 | 609 | /** |
610 | - * @return a code representation of the recorded macro. |
|
610 | + * @return string|null code representation of the recorded macro. |
|
611 | 611 | */ |
612 | 612 | function content_copy_get_macro() { |
613 | 613 | // Define the indexes for the evaluated code. |