@@ -247,12 +247,13 @@ discard block |
||
247 | 247 | * handler |
248 | 248 | * @param stdClass $object |
249 | 249 | * A drupal object |
250 | - * @param Entity $map |
|
250 | + * @param boolean $map |
|
251 | 251 | * A Salesforce map |
252 | 252 | * @param object $node |
253 | 253 | * Associated map node |
254 | + * @param string $op |
|
254 | 255 | * |
255 | - * @return object |
|
256 | + * @return SalesforceObject |
|
256 | 257 | * A Salesforce Object that has Salesforce fields with the object field values |
257 | 258 | */ |
258 | 259 | function salesforce_genmap_map_object($module, stdClass $object, Entity $map, $node, $op) { |
@@ -358,7 +359,7 @@ discard block |
||
358 | 359 | * @param string $module |
359 | 360 | * Handler module for the mapping object |
360 | 361 | * |
361 | - * @return bool |
|
362 | + * @return boolean|null |
|
362 | 363 | * TRUE if the delete performed as expected, FALSE if the delete could not |
363 | 364 | * work as expected. |
364 | 365 | */ |
@@ -400,6 +401,7 @@ discard block |
||
400 | 401 | |
401 | 402 | /** |
402 | 403 | * DB function to return map id given node and module id. |
404 | + * @param integer $nid |
|
403 | 405 | */ |
404 | 406 | function _salesforce_genmap_get_map_id_by_nid_module($nid, $map_handler = 'salesforce_genmap') { |
405 | 407 | // @TODO: Find out if entity will handle two value primary keys, if so, use |
@@ -75,6 +75,7 @@ |
||
75 | 75 | * |
76 | 76 | * @param int $id |
77 | 77 | * The id of the high score to load. |
78 | + * @return integer |
|
78 | 79 | */ |
79 | 80 | function salesforce_queue_example_load_high_score($id) { |
80 | 81 | $high_score = db_select('salesforce_queue_example_high_score', 'h') |
@@ -855,6 +855,7 @@ |
||
855 | 855 | * Batch array as set up for processBatch() for execute |
856 | 856 | * @param Exception $result |
857 | 857 | * Error caught when the call to Salesforce failed. |
858 | + * @param string $message |
|
858 | 859 | */ |
859 | 860 | public function failBatch($batch, $message, $result = NULL) { |
860 | 861 | // Send an error to admin that the batch failed. |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | * @param mixed $record |
258 | 258 | * Can be an array of values or a salesforce_sync_map entity object |
259 | 259 | * |
260 | - * @return bool |
|
260 | + * @return boolean|null |
|
261 | 261 | * TRUE if the delete performed as expected, FALSE if the delete could not |
262 | 262 | * work as expected. |
263 | 263 | */ |
@@ -328,6 +328,9 @@ discard block |
||
328 | 328 | |
329 | 329 | /** |
330 | 330 | * Helper to grab all sync item records based on drupal type. |
331 | + * @param integer $drupal_id |
|
332 | + * @param string $module |
|
333 | + * @param string $delta |
|
331 | 334 | */ |
332 | 335 | function _salesforce_sync_get_synced_items($drupal_id, $module, $delta) { |
333 | 336 | $items = db_select('salesforce_sync_map', 'm') |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | /** |
376 | 376 | * Helper function, Parses the decrypted query string into an array. |
377 | 377 | * |
378 | - * @param $qs |
|
378 | + * @param string $qs |
|
379 | 379 | * The query string to parse in key/value pair format. |
380 | 380 | */ |
381 | 381 | function secure_prepopulate_parse_qs($qs) { |
@@ -509,7 +509,7 @@ discard block |
||
509 | 509 | /** |
510 | 510 | * Helper function, Encrypt an input string (128 bit AES) using the specified key and initialization vector. |
511 | 511 | * |
512 | - * @param $input |
|
512 | + * @param string $input |
|
513 | 513 | * The string to encrypt. |
514 | 514 | * @param $key |
515 | 515 | * The 128 bit key to use to encrypt the string. |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | * |
558 | 558 | * @param $text |
559 | 559 | * The text to pad. |
560 | - * @param $blocksize |
|
560 | + * @param integer $blocksize |
|
561 | 561 | * The size of the PKCS5 blocksize to use. |
562 | 562 | */ |
563 | 563 | function pkcs5_pad($text, $blocksize) { |
@@ -568,8 +568,9 @@ discard block |
||
568 | 568 | /** |
569 | 569 | * Helper function, to unpad PKCS5 padded text. |
570 | 570 | * |
571 | - * @param $text |
|
571 | + * @param string $text |
|
572 | 572 | * The text to unpad. |
573 | + * @return string |
|
573 | 574 | */ |
574 | 575 | function pkcs5_unpad($text) { |
575 | 576 | $pad = ord($text{strlen($text) -1}); |
@@ -96,6 +96,7 @@ |
||
96 | 96 | |
97 | 97 | /** |
98 | 98 | * For all enabled Springboard modules, try calling $hook. Return all results. |
99 | + * @param string $hook |
|
99 | 100 | */ |
100 | 101 | function _springboard_views_invoke_all($hook) { |
101 | 102 | $data = array(); |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | * Int second number. |
558 | 558 | * |
559 | 559 | * @return |
560 | - * Returns a percentage or N/A if either number is zero. |
|
560 | + string Returns a percentage or N/A if either number is zero. |
|
561 | 561 | */ |
562 | 562 | function _springboard_percentage($a, $b) { |
563 | 563 | if ($a && $b) { |
@@ -597,6 +597,7 @@ discard block |
||
597 | 597 | /** |
598 | 598 | * Given a standard form array. Locate a given key and return it. |
599 | 599 | * Recursive. |
600 | + * @param string $field_key |
|
600 | 601 | */ |
601 | 602 | function _springboard_get_form_field($form, $field_key) { |
602 | 603 | // Walks a given form looking for the given key. Returns it when found. |
@@ -618,6 +619,7 @@ discard block |
||
618 | 619 | /** |
619 | 620 | * Given a standard form array. Locate a given key and update it. |
620 | 621 | * Recursive. |
622 | + * @param string $field_key |
|
621 | 623 | */ |
622 | 624 | function _springboard_update_form_field($form, $field_key, $new_field) { |
623 | 625 | // Walks a given form looking for the given key. Returns it when found. |
@@ -28,6 +28,7 @@ |
||
28 | 28 | |
29 | 29 | /** |
30 | 30 | * Save share event |
31 | + * @param boolean $sid |
|
31 | 32 | */ |
32 | 33 | function sb_social_share_event_save($service, $sid) { |
33 | 34 | global $user; |
@@ -631,10 +631,9 @@ |
||
631 | 631 | * Token replacement. |
632 | 632 | * |
633 | 633 | * @param type $string |
634 | - * @param type $account |
|
635 | - * User object |
|
636 | - * @param type $node |
|
634 | + * @param boolean $node |
|
637 | 635 | * Node object |
636 | + * @param boolean $sid |
|
638 | 637 | * @return string with tokens replaced |
639 | 638 | */ |
640 | 639 | function _sb_social_replace_tokens($string, $node, $sid = NULL) { |