@@ -724,6 +724,9 @@ |
||
| 724 | 724 | $this->message = $this->StripSlashes($_POST['message']); |
| 725 | 725 | } |
| 726 | 726 | |
| 727 | + /** |
|
| 728 | + * @param string $error |
|
| 729 | + */ |
|
| 727 | 730 | function add_error($error) |
| 728 | 731 | { |
| 729 | 732 | array_push($this->errors,$error); |
@@ -80,6 +80,10 @@ |
||
| 80 | 80 | }//else |
| 81 | 81 | return $ret; |
| 82 | 82 | } |
| 83 | + |
|
| 84 | + /** |
|
| 85 | + * @param string $answer |
|
| 86 | + */ |
|
| 83 | 87 | function Md5CaptchaAnswer($answer) |
| 84 | 88 | { |
| 85 | 89 | return md5($this->GetKey().$answer); |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | 101 | * @param $user_guid user's guid |
| 102 | - * @return query for all the content that the user is associated with |
|
| 102 | + * @return string for all the content that the user is associated with |
|
| 103 | 103 | */ |
| 104 | 104 | function get_content($user_guid) { |
| 105 | 105 | $dbprefix = elgg_get_config('dbprefix'); |
@@ -9,6 +9,11 @@ |
||
| 9 | 9 | require_once($CONFIG->pluginspath.'event_calendar/models/model.php'); |
| 10 | 10 | |
| 11 | 11 | if(!function_exists('getLastDayOfMonth')){ |
| 12 | + |
|
| 13 | + /** |
|
| 14 | + * @param string $month |
|
| 15 | + * @param string $year |
|
| 16 | + */ |
|
| 12 | 17 | function getLastDayOfMonth($month,$year) { |
| 13 | 18 | return idate('d', mktime(0, 0, 0, ($month + 1), 0, $year)); |
| 14 | 19 | } |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * Recursively list through a directory tree producing a hash of all installed files |
| 53 | 53 | * |
| 54 | 54 | * @param starting dir $dir |
| 55 | - * @param buffer $buffer |
|
| 55 | + * @param string $dir |
|
| 56 | 56 | */ |
| 57 | 57 | function diagnostics_md5_dir($dir) { |
| 58 | 58 | $extensions_allowed = array('.php', '.js', '.css'); |
@@ -524,9 +524,11 @@ discard block |
||
| 524 | 524 | /** |
| 525 | 525 | * Register a function to define specific configuration of an entity in solr |
| 526 | 526 | * |
| 527 | - * @param type $type - the entity type |
|
| 528 | - * @param type $subtype - the entity subtype |
|
| 529 | - * @param type $function - the function to call for updating an entity in solr |
|
| 527 | + * @param string $type - the entity type |
|
| 528 | + * @param type string - the entity subtype |
|
| 529 | + * @param type string - the function to call for updating an entity in solr |
|
| 530 | + * @param string $subtype |
|
| 531 | + * @param string $function |
|
| 530 | 532 | */ |
| 531 | 533 | function elgg_solr_register_solr_entity_type($type, $subtype, $function) { |
| 532 | 534 | $solr_entities = elgg_get_config('solr_entities'); |
@@ -779,6 +781,9 @@ discard block |
||
| 779 | 781 | return true; |
| 780 | 782 | } |
| 781 | 783 | |
| 784 | +/** |
|
| 785 | + * @param string $message |
|
| 786 | + */ |
|
| 782 | 787 | function elgg_solr_debug_log($message) { |
| 783 | 788 | error_log($message); |
| 784 | 789 | } |
@@ -1020,6 +1025,10 @@ discard block |
||
| 1020 | 1025 | return $stats; |
| 1021 | 1026 | } |
| 1022 | 1027 | |
| 1028 | +/** |
|
| 1029 | + * @param integer $starttime |
|
| 1030 | + * @param integer $endtime |
|
| 1031 | + */ |
|
| 1023 | 1032 | function elgg_solr_get_system_count($options, $starttime, $endtime) { |
| 1024 | 1033 | $options['wheres'] = array( |
| 1025 | 1034 | "e.time_created >= {$starttime}", |
@@ -8,6 +8,10 @@ |
||
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | //Generic embed functions - Don�t touch here! |
| 11 | + |
|
| 12 | + /** |
|
| 13 | + * @param string $guid |
|
| 14 | + */ |
|
| 11 | 15 | function custom_videoembed_create_embed_object($url, $guid, $videowidth=0, $input) { |
| 12 | 16 | |
| 13 | 17 | if (!$input) { |
@@ -6,6 +6,10 @@ |
||
| 6 | 6 | return embed_extender_parser(' ' . $returnvalue . ' ', $view, $context); |
| 7 | 7 | } |
| 8 | 8 | |
| 9 | +/** |
|
| 10 | + * @param string $input |
|
| 11 | + * @param string|null $context |
|
| 12 | + */ |
|
| 9 | 13 | function embed_extender_parser($input, $view, $context) |
| 10 | 14 | { |
| 11 | 15 | $allowed_contexts = array('blog', 'messageboard', 'widgets', 'pages', 'bookmarks', 'file', 'event_calendar', 'photos', 'polls'); |
@@ -39,6 +39,9 @@ discard block |
||
| 39 | 39 | * @param string term Search term |
| 40 | 40 | * @param int limit Maximum number of results to return |
| 41 | 41 | * @param int offset Begin returning results starting from offset |
| 42 | + * @param string $term |
|
| 43 | + * @param integer $limit |
|
| 44 | + * @param integer $offset |
|
| 42 | 45 | * |
| 43 | 46 | * @return array Query result set |
| 44 | 47 | * array( |
@@ -175,6 +178,7 @@ discard block |
||
| 175 | 178 | * |
| 176 | 179 | * @param string haystack String to search in |
| 177 | 180 | * @param string term String to search for in haystack |
| 181 | + * @param string $term |
|
| 178 | 182 | * @return boolean |
| 179 | 183 | */ |
| 180 | 184 | private function isMatched($haystack, $term) { |