@@ -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 |
@@ -29,6 +29,9 @@ discard block |
||
29 | 29 | |
30 | 30 | class PDF_Chinese extends FPDF |
31 | 31 | { |
32 | +/** |
|
33 | + * @param string $style |
|
34 | + */ |
|
32 | 35 | function AddCIDFont($family,$style,$name,$cw,$CMap,$registry) |
33 | 36 | { |
34 | 37 | $fontkey=strtolower($family).strtoupper($style); |
@@ -39,6 +42,11 @@ discard block |
||
39 | 42 | $this->fonts[$fontkey]=array('i'=>$i,'type'=>'Type0','name'=>$name,'up'=>-130,'ut'=>40,'cw'=>$cw,'CMap'=>$CMap,'registry'=>$registry); |
40 | 43 | } |
41 | 44 | |
45 | +/** |
|
46 | + * @param string $family |
|
47 | + * @param string $name |
|
48 | + * @param string $CMap |
|
49 | + */ |
|
42 | 50 | function AddCIDFonts($family,$name,$cw,$CMap,$registry) |
43 | 51 | { |
44 | 52 | $this->AddCIDFont($family,'',$name,$cw,$CMap,$registry); |
@@ -230,6 +238,9 @@ discard block |
||
230 | 238 | parent::Write($h,$txt,$link); |
231 | 239 | } |
232 | 240 | |
241 | +/** |
|
242 | + * @param string $link |
|
243 | + */ |
|
233 | 244 | function MBWrite($h,$txt,$link) |
234 | 245 | { |
235 | 246 | //Multi-byte version of Write() |
@@ -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); |