@@ -77,6 +77,10 @@ discard block |
||
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Constructor |
80 | + * @param string $title |
|
81 | + * @param integer $modid |
|
82 | + * @param string $permname |
|
83 | + * @param string $permdesc |
|
80 | 84 | */ |
81 | 85 | function MyXoopsGroupPermForm($title, $modid, $permname, $permdesc) |
82 | 86 | { |
@@ -108,6 +112,8 @@ discard block |
||
108 | 112 | * Add appendix |
109 | 113 | * |
110 | 114 | * @access public |
115 | + * @param string $permName |
|
116 | + * @param string $itemName |
|
111 | 117 | */ |
112 | 118 | function addAppendix($permName,$itemId,$itemName) |
113 | 119 | { |
@@ -242,6 +248,7 @@ discard block |
||
242 | 248 | |
243 | 249 | /** |
244 | 250 | * Constructor |
251 | + * @param string $name |
|
245 | 252 | */ |
246 | 253 | function MyXoopsGroupFormCheckBox($caption, $name, $groupId, $values = null) |
247 | 254 | { |
@@ -100,6 +100,11 @@ discard block |
||
100 | 100 | $siteurl_en = urlencode(mb_convert_encoding($siteurl, "UTF-8", _CHARSET)); |
101 | 101 | $sitetitle_en = urlencode(mb_convert_encoding($sitetitle, "UTF-8", _CHARSET)); |
102 | 102 | |
103 | +/** |
|
104 | + * @param string $str |
|
105 | + * |
|
106 | + * @return string |
|
107 | + */ |
|
103 | 108 | function bookmark_convert_encoding($str, $to = 'SJIS', $from = _CHARSET) |
104 | 109 | { |
105 | 110 | if (function_exists('mb_convert_encoding')) { |
@@ -173,6 +178,9 @@ discard block |
||
173 | 178 | return array($a, $b, $c); |
174 | 179 | } |
175 | 180 | |
181 | +/** |
|
182 | + * @param integer[] $url |
|
183 | + */ |
|
176 | 184 | function GoogleCH($url, $length=null, $init=GOOGLE_MAGIC) |
177 | 185 | { |
178 | 186 | if (is_null($length)) { |
@@ -212,6 +220,9 @@ discard block |
||
212 | 220 | return $mix[2]; |
213 | 221 | } |
214 | 222 | |
223 | +/** |
|
224 | + * @param string $string |
|
225 | + */ |
|
215 | 226 | function strord($string) |
216 | 227 | { |
217 | 228 | for ($i=0; $i<strlen($string); $i++) { |
@@ -442,6 +442,7 @@ discard block |
||
442 | 442 | * the two files do not match, and likewise that the last lines do not |
443 | 443 | * match. The caller must trim matching lines from the beginning and end |
444 | 444 | * of the portions it is going to specify. |
445 | + * @param double $nchunks |
|
445 | 446 | */ |
446 | 447 | function _diag ($xoff, $xlim, $yoff, $ylim, $nchunks) |
447 | 448 | { |
@@ -564,6 +565,10 @@ discard block |
||
564 | 565 | * |
565 | 566 | * Note that XLIM, YLIM are exclusive bounds. All line numbers are |
566 | 567 | * origin-0 and discarded lines are not counted. |
568 | + * @param integer $xoff |
|
569 | + * @param integer $xlim |
|
570 | + * @param integer $yoff |
|
571 | + * @param integer $ylim |
|
567 | 572 | */ |
568 | 573 | function _compareseq ($xoff, $xlim, $yoff, $ylim) |
569 | 574 | { |
@@ -122,6 +122,12 @@ discard block |
||
122 | 122 | return $output . $this->_endDiff(); |
123 | 123 | } |
124 | 124 | |
125 | + /** |
|
126 | + * @param integer $xbeg |
|
127 | + * @param integer $xlen |
|
128 | + * @param integer $ybeg |
|
129 | + * @param integer $ylen |
|
130 | + */ |
|
125 | 131 | function _block($xbeg, $xlen, $ybeg, $ylen, &$edits) |
126 | 132 | { |
127 | 133 | $output = $this->_startBlock($this->_blockHeader($xbeg, $xlen, $ybeg, $ylen)); |
@@ -171,6 +177,9 @@ discard block |
||
171 | 177 | return $xbeg . ($xlen ? ($ylen ? 'c' : 'd') : 'a') . $ybeg; |
172 | 178 | } |
173 | 179 | |
180 | + /** |
|
181 | + * @param string $header |
|
182 | + */ |
|
174 | 183 | function _startBlock($header) |
175 | 184 | { |
176 | 185 | return $header . "\n"; |
@@ -62,6 +62,9 @@ discard block |
||
62 | 62 | return $header; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param string[] $lines |
|
67 | + */ |
|
65 | 68 | function _lines($lines, $prefix = ' ', $encode = true) |
66 | 69 | { |
67 | 70 | if ($encode) { |
@@ -130,6 +133,9 @@ discard block |
||
130 | 133 | return str_replace($nl, "\n", $renderer->render($diff)) . "\n"; |
131 | 134 | } |
132 | 135 | |
136 | + /** |
|
137 | + * @param string $string |
|
138 | + */ |
|
133 | 139 | function _splitOnWords($string, $newlineEscape = "\n") |
134 | 140 | { |
135 | 141 | $words = array(); |
@@ -22,16 +22,51 @@ |
||
22 | 22 | */ |
23 | 23 | interface MylinksThumbPlugin |
24 | 24 | { |
25 | + /** |
|
26 | + * @return string |
|
27 | + */ |
|
25 | 28 | public function getProviderUrl(); |
29 | + |
|
30 | + /** |
|
31 | + * @return string |
|
32 | + */ |
|
26 | 33 | public function getProviderName(); |
34 | + |
|
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
27 | 38 | public function setShotSize($szarray); |
28 | 39 | public function getShotSize(); |
40 | + |
|
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
29 | 44 | public function setSiteUrl($url); |
45 | + |
|
46 | + /** |
|
47 | + * @return string |
|
48 | + */ |
|
30 | 49 | public function getSiteUrl(); |
50 | + |
|
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
31 | 54 | public function setAttribution(); |
32 | 55 | public function getAttribution(); |
56 | + |
|
57 | + /** |
|
58 | + * @return boolean|null |
|
59 | + */ |
|
33 | 60 | public function setProviderPublicKey($key); |
34 | 61 | public function getProviderPublicKey(); |
62 | + |
|
63 | + /** |
|
64 | + * @return boolean |
|
65 | + */ |
|
35 | 66 | public function setProviderPrivateKey($key); |
67 | + |
|
68 | + /** |
|
69 | + * @return boolean |
|
70 | + */ |
|
36 | 71 | public function getProviderPrivateKey(); |
37 | 72 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | /** |
27 | 27 | * Sanitize input variables |
28 | 28 | * @param string $global the input array ($_REQUEST, $_GET, $_POST) |
29 | - * @param unknown_type $key the array key for variable to clean |
|
29 | + * @param string $key the array key for variable to clean |
|
30 | 30 | * @param unknown_type $default the default value to use if filter fails |
31 | 31 | * @param string $type the variable type (string, email, url, int) |
32 | 32 | * @param array $limit 'min' 'max' keys - the lower/upper limit for integer values |
@@ -5,6 +5,9 @@ discard block |
||
5 | 5 | * Date: 2004-12-31 * |
6 | 6 | *******************************************************************************/ |
7 | 7 | |
8 | +/** |
|
9 | + * @param string $enc |
|
10 | + */ |
|
8 | 11 | function ReadMap($enc) |
9 | 12 | { |
10 | 13 | //Read a map file |
@@ -134,6 +137,9 @@ discard block |
||
134 | 137 | return $fm; |
135 | 138 | } |
136 | 139 | |
140 | +/** |
|
141 | + * @param boolean $symbolic |
|
142 | + */ |
|
137 | 143 | function MakeFontDescriptor($fm,$symbolic) |
138 | 144 | { |
139 | 145 | //Ascent |
@@ -232,6 +238,10 @@ discard block |
||
232 | 238 | return rtrim($s); |
233 | 239 | } |
234 | 240 | |
241 | +/** |
|
242 | + * @param string $file |
|
243 | + * @param string $s |
|
244 | + */ |
|
235 | 245 | function SaveToFile($file,$s,$mode='t') |
236 | 246 | { |
237 | 247 | $f=fopen($file,'w'.$mode); |
@@ -183,6 +183,10 @@ discard block |
||
183 | 183 | $this->PDFVersion='1.3'; |
184 | 184 | } |
185 | 185 | |
186 | +/** |
|
187 | + * @param double $left |
|
188 | + * @param double $top |
|
189 | + */ |
|
186 | 190 | function SetMargins($left,$top,$right=-1) |
187 | 191 | { |
188 | 192 | //Set left, top and right margins |
@@ -213,6 +217,9 @@ discard block |
||
213 | 217 | $this->rMargin=$margin; |
214 | 218 | } |
215 | 219 | |
220 | +/** |
|
221 | + * @param boolean $auto |
|
222 | + */ |
|
216 | 223 | function SetAutoPageBreak($auto,$margin=0) |
217 | 224 | { |
218 | 225 | //Set auto page break mode and triggering margin |
@@ -221,6 +228,9 @@ discard block |
||
221 | 228 | $this->PageBreakTrigger=$this->h-$margin; |
222 | 229 | } |
223 | 230 | |
231 | +/** |
|
232 | + * @param string $zoom |
|
233 | + */ |
|
224 | 234 | function SetDisplayMode($zoom,$layout='continuous') |
225 | 235 | { |
226 | 236 | //Set display mode in viewer |
@@ -234,6 +244,9 @@ discard block |
||
234 | 244 | $this->Error('Incorrect layout display mode: '.$layout); |
235 | 245 | } |
236 | 246 | |
247 | +/** |
|
248 | + * @param boolean $compress |
|
249 | + */ |
|
237 | 250 | function SetCompression($compress) |
238 | 251 | { |
239 | 252 | //Set page compression |
@@ -437,6 +450,9 @@ discard block |
||
437 | 450 | return $w*$this->FontSize/1000; |
438 | 451 | } |
439 | 452 | |
453 | +/** |
|
454 | + * @param double $width |
|
455 | + */ |
|
440 | 456 | function SetLineWidth($width) |
441 | 457 | { |
442 | 458 | //Set line width |
@@ -445,6 +461,9 @@ discard block |
||
445 | 461 | $this->_out(sprintf('%.2f w',$width*$this->k)); |
446 | 462 | } |
447 | 463 | |
464 | +/** |
|
465 | + * @param double $x2 |
|
466 | + */ |
|
448 | 467 | function Line($x1,$y1,$x2,$y2) |
449 | 468 | { |
450 | 469 | //Draw a line |
@@ -601,6 +620,10 @@ discard block |
||
601 | 620 | $this->links[$link]=array($page,$y); |
602 | 621 | } |
603 | 622 | |
623 | +/** |
|
624 | + * @param double $y |
|
625 | + * @param string $link |
|
626 | + */ |
|
604 | 627 | function Link($x,$y,$w,$h,$link) |
605 | 628 | { |
606 | 629 | //Put a link on the page |
@@ -989,6 +1012,10 @@ discard block |
||
989 | 1012 | $this->y=$this->h+$y; |
990 | 1013 | } |
991 | 1014 | |
1015 | +/** |
|
1016 | + * @param integer $x |
|
1017 | + * @param integer $y |
|
1018 | + */ |
|
992 | 1019 | function SetXY($x,$y) |
993 | 1020 | { |
994 | 1021 | //Set x and y positions |
@@ -1441,6 +1468,9 @@ discard block |
||
1441 | 1468 | $this->state=3; |
1442 | 1469 | } |
1443 | 1470 | |
1471 | +/** |
|
1472 | + * @param string $orientation |
|
1473 | + */ |
|
1444 | 1474 | function _beginpage($orientation) |
1445 | 1475 | { |
1446 | 1476 | $this->page++; |