@@ -1,6 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | class altsysUtils |
3 | 3 | { |
4 | + /** |
|
5 | + * @param string $name |
|
6 | + */ |
|
4 | 7 | public static function getDelegateCallbackClassNames($name, $doRegist = true) |
5 | 8 | { |
6 | 9 | $names = array(); |
@@ -35,6 +35,9 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $resource |
|
40 | + */ |
|
38 | 41 | public function read($resource, $mydirname, $mytrustdirname = null, $read_once = true) |
39 | 42 | { |
40 | 43 | $d3file = XOOPS_ROOT_PATH.'/modules/'.$mydirname.'/mytrustdirname.php' ; |
@@ -261,6 +261,9 @@ |
||
261 | 261 | </form>\n" ; |
262 | 262 | } |
263 | 263 | |
264 | + /** |
|
265 | + * @param string $name |
|
266 | + */ |
|
264 | 267 | public function get_select($name, $options, $current_value) |
265 | 268 | { |
266 | 269 | $ret = "<select name='".htmlspecialchars($name, ENT_QUOTES)."'>\n" ; |
@@ -47,6 +47,10 @@ |
||
47 | 47 | parent::prepare(); |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $dirname |
|
52 | + * @param string $fileBodyName |
|
53 | + */ |
|
50 | 54 | public function _loadLanguage($dirname, $fileBodyName) |
51 | 55 | { |
52 | 56 | // read/check once (selected_theme)/language/(lang).php |
@@ -103,6 +103,12 @@ |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | |
106 | +/** |
|
107 | + * @param integer $mid |
|
108 | + * @param integer $coretype |
|
109 | + * |
|
110 | + * @return string |
|
111 | + */ |
|
106 | 112 | function altsys_get_link2modpreferences($mid, $coretype) |
107 | 113 | { |
108 | 114 | switch ($coretype) { |
@@ -233,6 +233,9 @@ |
||
233 | 233 | echo '<html><head><title>'.$this->messages['err_general'].'</title><style>table,td,th {border:solid black 1px; border-collapse:collapse;}</style></head><body>' . sprintf($this->messages['fmt_prompt4repost'], $this->getErrors()) . $table . $form . '</body></html>' ; |
234 | 234 | } |
235 | 235 | |
236 | + /** |
|
237 | + * @param string $key_name |
|
238 | + */ |
|
236 | 239 | public function extract_post_recursive($key_name, $tmp_array) |
237 | 240 | { |
238 | 241 | $table = '' ; |
@@ -441,6 +441,7 @@ discard block |
||
441 | 441 | * the two files do not match, and likewise that the last lines do not |
442 | 442 | * match. The caller must trim matching lines from the beginning and end |
443 | 443 | * of the portions it is going to specify. |
444 | + * @param double $nchunks |
|
444 | 445 | */ |
445 | 446 | public function _diag($xoff, $xlim, $yoff, $ylim, $nchunks) |
446 | 447 | { |
@@ -561,6 +562,10 @@ discard block |
||
561 | 562 | * |
562 | 563 | * Note that XLIM, YLIM are exclusive bounds. All line numbers are |
563 | 564 | * origin-0 and discarded lines are not counted. |
565 | + * @param integer $xoff |
|
566 | + * @param integer $xlim |
|
567 | + * @param integer $yoff |
|
568 | + * @param integer $ylim |
|
564 | 569 | */ |
565 | 570 | public function _compareseq($xoff, $xlim, $yoff, $ylim) |
566 | 571 | { |
@@ -281,17 +281,17 @@ |
||
281 | 281 | $edits = array(); |
282 | 282 | foreach ($diff as $line) { |
283 | 283 | switch ($line[0]) { |
284 | - case ' ': |
|
285 | - $edits[] = new Text_Diff_Op_copy(array(substr($line, 1))); |
|
286 | - break; |
|
284 | + case ' ': |
|
285 | + $edits[] = new Text_Diff_Op_copy(array(substr($line, 1))); |
|
286 | + break; |
|
287 | 287 | |
288 | - case '+': |
|
289 | - $edits[] = new Text_Diff_Op_add(array(substr($line, 1))); |
|
290 | - break; |
|
288 | + case '+': |
|
289 | + $edits[] = new Text_Diff_Op_add(array(substr($line, 1))); |
|
290 | + break; |
|
291 | 291 | |
292 | - case '-': |
|
293 | - $edits[] = new Text_Diff_Op_delete(array(substr($line, 1))); |
|
294 | - break; |
|
292 | + case '-': |
|
293 | + $edits[] = new Text_Diff_Op_delete(array(substr($line, 1))); |
|
294 | + break; |
|
295 | 295 | } |
296 | 296 | } |
297 | 297 |
@@ -125,6 +125,12 @@ discard block |
||
125 | 125 | return $output . $this->_endDiff(); |
126 | 126 | } |
127 | 127 | |
128 | + /** |
|
129 | + * @param integer $xbeg |
|
130 | + * @param integer $xlen |
|
131 | + * @param integer $ybeg |
|
132 | + * @param integer $ylen |
|
133 | + */ |
|
128 | 134 | public function _block($xbeg, $xlen, $ybeg, $ylen, &$edits) |
129 | 135 | { |
130 | 136 | $output = $this->_startBlock($this->_blockHeader($xbeg, $xlen, $ybeg, $ylen)); |
@@ -174,6 +180,9 @@ discard block |
||
174 | 180 | return $xbeg . ($xlen ? ($ylen ? 'c' : 'd') : 'a') . $ybeg; |
175 | 181 | } |
176 | 182 | |
183 | + /** |
|
184 | + * @param string $header |
|
185 | + */ |
|
177 | 186 | public function _startBlock($header) |
178 | 187 | { |
179 | 188 | return $header . "\n"; |
@@ -131,21 +131,21 @@ |
||
131 | 131 | |
132 | 132 | foreach ($edits as $edit) { |
133 | 133 | switch (strtolower(get_class($edit))) { |
134 | - case 'text_diff_op_copy': |
|
135 | - $output .= $this->_context($edit->orig); |
|
136 | - break; |
|
134 | + case 'text_diff_op_copy': |
|
135 | + $output .= $this->_context($edit->orig); |
|
136 | + break; |
|
137 | 137 | |
138 | - case 'text_diff_op_add': |
|
139 | - $output .= $this->_added($edit->final); |
|
140 | - break; |
|
138 | + case 'text_diff_op_add': |
|
139 | + $output .= $this->_added($edit->final); |
|
140 | + break; |
|
141 | 141 | |
142 | - case 'text_diff_op_delete': |
|
143 | - $output .= $this->_deleted($edit->orig); |
|
144 | - break; |
|
142 | + case 'text_diff_op_delete': |
|
143 | + $output .= $this->_deleted($edit->orig); |
|
144 | + break; |
|
145 | 145 | |
146 | - case 'text_diff_op_change': |
|
147 | - $output .= $this->_changed($edit->orig, $edit->final); |
|
148 | - break; |
|
146 | + case 'text_diff_op_change': |
|
147 | + $output .= $this->_changed($edit->orig, $edit->final); |
|
148 | + break; |
|
149 | 149 | } |
150 | 150 | } |
151 | 151 |
@@ -63,6 +63,9 @@ discard block |
||
63 | 63 | return $header; |
64 | 64 | } |
65 | 65 | |
66 | + /** |
|
67 | + * @param string[] $lines |
|
68 | + */ |
|
66 | 69 | public function _lines($lines, $prefix = ' ', $encode = true) |
67 | 70 | { |
68 | 71 | if ($encode) { |
@@ -128,6 +131,9 @@ discard block |
||
128 | 131 | return str_replace($nl, "\n", $renderer->render($diff)) . "\n"; |
129 | 132 | } |
130 | 133 | |
134 | + /** |
|
135 | + * @param string $string |
|
136 | + */ |
|
131 | 137 | public function _splitOnWords($string, $newlineEscape = "\n") |
132 | 138 | { |
133 | 139 | $words = array(); |