@@ -35,6 +35,10 @@ discard block |
||
| 35 | 35 | var $portable_hashes; |
| 36 | 36 | var $random_state; |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param integer $iteration_count_log2 |
|
| 40 | + * @param boolean $portable_hashes |
|
| 41 | + */ |
|
| 38 | 42 | function PasswordHash($iteration_count_log2, $portable_hashes) |
| 39 | 43 | { |
| 40 | 44 | $this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'; |
@@ -84,6 +88,9 @@ discard block |
||
| 84 | 88 | return $output; |
| 85 | 89 | } |
| 86 | 90 | |
| 91 | + /** |
|
| 92 | + * @param integer $count |
|
| 93 | + */ |
|
| 87 | 94 | function encode64($input, $count) |
| 88 | 95 | { |
| 89 | 96 | $output = ''; |
@@ -107,6 +114,9 @@ discard block |
||
| 107 | 114 | return $output; |
| 108 | 115 | } |
| 109 | 116 | |
| 117 | + /** |
|
| 118 | + * @param string $input |
|
| 119 | + */ |
|
| 110 | 120 | function gensalt_private($input) |
| 111 | 121 | { |
| 112 | 122 | $output = '$P$'; |
@@ -155,6 +165,9 @@ discard block |
||
| 155 | 165 | return $output; |
| 156 | 166 | } |
| 157 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $input |
|
| 170 | + */ |
|
| 158 | 171 | function gensalt_extended($input) |
| 159 | 172 | { |
| 160 | 173 | $count_log2 = min($this->iteration_count_log2 + 8, 24); |
@@ -173,6 +186,9 @@ discard block |
||
| 173 | 186 | return $output; |
| 174 | 187 | } |
| 175 | 188 | |
| 189 | + /** |
|
| 190 | + * @param string $input |
|
| 191 | + */ |
|
| 176 | 192 | function gensalt_blowfish($input) |
| 177 | 193 | { |
| 178 | 194 | # This one needs to use a different order of characters and a |
@@ -53,6 +53,10 @@ discard block |
||
| 53 | 53 | // ------------------------------------------------------------------- |
| 54 | 54 | // Parse RSS file and returns associative array. |
| 55 | 55 | // ------------------------------------------------------------------- |
| 56 | + |
|
| 57 | + /** |
|
| 58 | + * @param string $rss_url |
|
| 59 | + */ |
|
| 56 | 60 | function Get ($rss_url) { |
| 57 | 61 | // If CACHE ENABLED |
| 58 | 62 | if ($this->cache_dir != '') { |
@@ -114,6 +118,10 @@ discard block |
||
| 114 | 118 | // ------------------------------------------------------------------- |
| 115 | 119 | // Replace HTML entities &something; by real characters |
| 116 | 120 | // ------------------------------------------------------------------- |
| 121 | + |
|
| 122 | + /** |
|
| 123 | + * @param string $string |
|
| 124 | + */ |
|
| 117 | 125 | function unhtmlentities ($string) { |
| 118 | 126 | // Get HTML entities table |
| 119 | 127 | $trans_tbl = get_html_translation_table (HTML_ENTITIES, ENT_QUOTES); |
@@ -108,10 +108,16 @@ discard block |
||
| 108 | 108 | $this->file = $file; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | + /** |
|
| 112 | + * @param string $destination |
|
| 113 | + */ |
|
| 111 | 114 | function set_destination($destination) { |
| 112 | 115 | $this->destination = $destination; |
| 113 | 116 | } |
| 114 | 117 | |
| 118 | + /** |
|
| 119 | + * @param string $permissions |
|
| 120 | + */ |
|
| 115 | 121 | function set_permissions($permissions) { |
| 116 | 122 | $this->permissions = octdec($permissions); |
| 117 | 123 | } |
@@ -124,6 +130,9 @@ discard block |
||
| 124 | 130 | $this->tmp_filename = $filename; |
| 125 | 131 | } |
| 126 | 132 | |
| 133 | + /** |
|
| 134 | + * @param string $extensions |
|
| 135 | + */ |
|
| 127 | 136 | function set_extensions($extensions) { |
| 128 | 137 | if (tep_not_null($extensions)) { |
| 129 | 138 | if (is_array($extensions)) { |
@@ -160,6 +169,9 @@ discard block |
||
| 160 | 169 | } |
| 161 | 170 | } |
| 162 | 171 | |
| 172 | + /** |
|
| 173 | + * @param string $location |
|
| 174 | + */ |
|
| 163 | 175 | function set_output_messages($location) { |
| 164 | 176 | switch ($location) { |
| 165 | 177 | case 'session': |
@@ -231,6 +231,10 @@ discard block |
||
| 231 | 231 | |
| 232 | 232 | //// |
| 233 | 233 | // prints out the actual data for the double horizontal chart |
| 234 | + /** |
|
| 235 | + * @param integer $dvalues |
|
| 236 | + * @param integer $dbars |
|
| 237 | + */ |
|
| 234 | 238 | function double_horizontal_graph($names, $values, $bars, $vals, $dvalues, $dbars) { |
| 235 | 239 | $double_horizontal_graph_string = ''; |
| 236 | 240 | for($i = 0, $n = sizeof($values); $i < $n; $i++) { |
@@ -291,6 +295,10 @@ discard block |
||
| 291 | 295 | |
| 292 | 296 | //// |
| 293 | 297 | // prints out the actual data for the double vertical chart |
| 298 | + /** |
|
| 299 | + * @param integer $dvalues |
|
| 300 | + * @param integer $dbars |
|
| 301 | + */ |
|
| 294 | 302 | function double_vertical_graph($names, $values, $bars, $vals, $dvalues, $dbars) { |
| 295 | 303 | $double_vertical_graph_string = ' <tr>' . "\n"; |
| 296 | 304 | for ($i = 0, $n = sizeof($values); $i < $n; $i++) { |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | return MODULE_SECURITY_CHECK_EXTENDED_EXT_DIRECTORY_LISTING_HTTP_200; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param null|string $url |
|
| 37 | + */ |
|
| 35 | 38 | function getHttpRequest($url) { |
| 36 | 39 | $server = parse_url($url); |
| 37 | 40 | |
@@ -23,6 +23,9 @@ |
||
| 23 | 23 | $this->validate_cfg(); |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string $msg |
|
| 28 | + */ |
|
| 26 | 29 | function complain($msg){ |
| 27 | 30 | echo '<div style="position:absolute;left:0;top:0;width:100%;font-size:24px;text-align:center;background:#CCCCCC;color:#660000">MC360 Module: '.$msg.'</div><br />'; |
| 28 | 31 | } |
@@ -1572,6 +1572,7 @@ |
||
| 1572 | 1572 | /** |
| 1573 | 1573 | * Actually connect to the server and call the requested methods, parsing the result |
| 1574 | 1574 | * You should never have to call this function manually |
| 1575 | + * @param string $method |
|
| 1575 | 1576 | */ |
| 1576 | 1577 | function callServer($method, $params) { |
| 1577 | 1578 | //Always include the apikey if we are not logging in |
@@ -82,6 +82,7 @@ discard block |
||
| 82 | 82 | * it. This can then be given as the first |
| 83 | 83 | * argument of the the functions |
| 84 | 84 | * add_html_image() or add_attachment(). |
| 85 | + * @param string $filename |
|
| 85 | 86 | */ |
| 86 | 87 | |
| 87 | 88 | function get_file($filename) { |
@@ -153,6 +154,7 @@ discard block |
||
| 153 | 154 | * Adds a html part to the mail. |
| 154 | 155 | * Also replaces image names with |
| 155 | 156 | * content-id's. |
| 157 | + * @param string $text |
|
| 156 | 158 | */ |
| 157 | 159 | |
| 158 | 160 | function add_html($html, $text = NULL, $images_dir = NULL) { |
@@ -165,6 +167,7 @@ discard block |
||
| 165 | 167 | /** |
| 166 | 168 | * Adds an image to the list of embedded |
| 167 | 169 | * images. |
| 170 | + * @param string $file |
|
| 168 | 171 | */ |
| 169 | 172 | |
| 170 | 173 | function add_html_image($file, $name = '', $c_type='application/octet-stream') { |
@@ -239,6 +242,9 @@ discard block |
||
| 239 | 242 | |
| 240 | 243 | /* HPDL PHP3 */ |
| 241 | 244 | // function &add_alternative_part(&$obj) { |
| 245 | + /** |
|
| 246 | + * @param null|mime $obj |
|
| 247 | + */ |
|
| 242 | 248 | function add_alternative_part(&$obj) { |
| 243 | 249 | $params['content_type'] = 'multipart/alternative'; |
| 244 | 250 | |
@@ -70,6 +70,9 @@ |
||
| 70 | 70 | $this->set_language($lng); |
| 71 | 71 | } |
| 72 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $language |
|
| 75 | + */ |
|
| 73 | 76 | function set_language($language) { |
| 74 | 77 | if ( (tep_not_null($language)) && (isset($this->catalog_languages[$language])) ) { |
| 75 | 78 | $this->language = $this->catalog_languages[$language]; |