@@ -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(); |
@@ -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" ; |
@@ -69,6 +69,9 @@ |
||
69 | 69 | |
70 | 70 | |
71 | 71 | // private |
72 | +/** |
|
73 | + * @param integer $target_side |
|
74 | + */ |
|
72 | 75 | public function renderRadio4BlockPosition($target_side, $block_data) |
73 | 76 | { |
74 | 77 | $bid = intval($block_data['bid']) ; |