@@ -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 | { |
@@ -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"; |
@@ -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(); |