@@ -37,7 +37,7 @@ |
||
37 | 37 | * get the local content id from a syncid |
38 | 38 | * |
39 | 39 | * @param sting $_syncid id used in syncml |
40 | - * @return int local egw content id |
|
40 | + * @return string local egw content id |
|
41 | 41 | */ |
42 | 42 | function get_egwID($_syncid) { |
43 | 43 | $syncIDParts = explode('-',$_syncid); |
@@ -57,6 +57,9 @@ |
||
57 | 57 | */ |
58 | 58 | var $syncDataLoaded; |
59 | 59 | |
60 | + /** |
|
61 | + * @param integer $alert |
|
62 | + */ |
|
60 | 63 | function &factory($alert) { |
61 | 64 | Horde::logMessage('SyncML: new sync for alerttype ' . $alert, __FILE__, __LINE__, PEAR_LOG_DEBUG); |
62 | 65 | switch ($alert) { |
@@ -35,6 +35,9 @@ |
||
35 | 35 | return $currentCmdID; |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $syncType |
|
40 | + */ |
|
38 | 41 | function handleSync($currentCmdID, $hordeType, $syncType, & $output, $refts) { |
39 | 42 | global $registry; |
40 | 43 |
@@ -52,11 +52,6 @@ discard block |
||
52 | 52 | * |
53 | 53 | * @access public |
54 | 54 | * |
55 | - * @param string $function The function to run. |
|
56 | - * @param mixed $arg1 First argument to $function(). |
|
57 | - * @param mixed $arg2 Second argument to $function(). |
|
58 | - * @param mixed $arg... ... |
|
59 | - * @param mixed $argN Nth argument to $function(). |
|
60 | 55 | * |
61 | 56 | * @return string The output of the function. |
62 | 57 | */ |
@@ -304,7 +299,7 @@ discard block |
||
304 | 299 | * |
305 | 300 | * @access public |
306 | 301 | * |
307 | - * @param boolean $append_session 0 = only if needed, 1 = always. |
|
302 | + * @param integer $append_session 0 = only if needed, 1 = always. |
|
308 | 303 | * |
309 | 304 | * @return string The hidden form input, if needed/requested. |
310 | 305 | */ |
@@ -323,7 +318,7 @@ discard block |
||
323 | 318 | * |
324 | 319 | * @access public |
325 | 320 | * |
326 | - * @param boolean $append_session 0 = only if needed, 1 = always. |
|
321 | + * @param integer $append_session 0 = only if needed, 1 = always. |
|
327 | 322 | */ |
328 | 323 | function pformInput($append_session = 0) |
329 | 324 | { |
@@ -139,6 +139,9 @@ discard block |
||
139 | 139 | } |
140 | 140 | } |
141 | 141 | |
142 | + /** |
|
143 | + * @param integer $num |
|
144 | + */ |
|
142 | 145 | function getBits($num, $l) |
143 | 146 | { |
144 | 147 | switch ($num) { |
@@ -239,6 +242,7 @@ discard block |
||
239 | 242 | * only default character encodings from J2SE are supported |
240 | 243 | * from http://www.iana.org/assignments/character-sets |
241 | 244 | * and http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html |
245 | + * @param integer $cs |
|
242 | 246 | */ |
243 | 247 | function getCharsetString($cs) |
244 | 248 | { |
@@ -287,6 +291,9 @@ discard block |
||
287 | 291 | |
288 | 292 | var $_h; |
289 | 293 | |
294 | + /** |
|
295 | + * @param integer $v |
|
296 | + */ |
|
290 | 297 | function set($k, $v) |
291 | 298 | { |
292 | 299 | $this->_h[$k] = $v; |
@@ -37,6 +37,7 @@ discard block |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | + * @param string $error |
|
40 | 41 | */ |
41 | 42 | function raiseError($error) |
42 | 43 | { |
@@ -51,6 +52,9 @@ discard block |
||
51 | 52 | return $this->_charset; |
52 | 53 | } |
53 | 54 | |
55 | + /** |
|
56 | + * @param string $cs |
|
57 | + */ |
|
54 | 58 | function setCharset($cs) |
55 | 59 | { |
56 | 60 | $this->_charset = $cs; |
@@ -61,6 +65,9 @@ discard block |
||
61 | 65 | return $this->_wbxmlVersion; |
62 | 66 | } |
63 | 67 | |
68 | + /** |
|
69 | + * @param integer $v |
|
70 | + */ |
|
64 | 71 | function setVersion($v) |
65 | 72 | { |
66 | 73 | $this->_wbxmlVersion = $v; |
@@ -197,11 +197,17 @@ discard block |
||
197 | 197 | return true; |
198 | 198 | } |
199 | 199 | |
200 | + /** |
|
201 | + * @param string $input |
|
202 | + */ |
|
200 | 203 | function getVersionNumber($input) |
201 | 204 | { |
202 | 205 | return $this->getByte($input); |
203 | 206 | } |
204 | 207 | |
208 | + /** |
|
209 | + * @param string $input |
|
210 | + */ |
|
205 | 211 | function getDocumentPublicIdentifier($input) |
206 | 212 | { |
207 | 213 | $i = XML_WBXML::MBUInt32ToInt($input, $this->_strpos); |
@@ -215,6 +221,10 @@ discard block |
||
215 | 221 | } |
216 | 222 | } |
217 | 223 | |
224 | + /** |
|
225 | + * @param integer $dpiType |
|
226 | + * @param integer $dpiNumber |
|
227 | + */ |
|
218 | 228 | function getDocumentPublicIdentifierImpl($dpiType, $dpiNumber) |
219 | 229 | { |
220 | 230 | if ($dpiType == 1) { |
@@ -230,6 +240,7 @@ discard block |
||
230 | 240 | * encodings from J2SE are supported. From |
231 | 241 | * http://www.iana.org/assignments/character-sets and |
232 | 242 | * http://java.sun.com/j2se/1.4.2/docs/api/java/nio/charset/Charset.html |
243 | + * @param string $input |
|
233 | 244 | */ |
234 | 245 | function getCharset($input) |
235 | 246 | { |
@@ -244,6 +255,7 @@ discard block |
||
244 | 255 | * References to the string table refer to the |
245 | 256 | * starting position of the (null terminated) |
246 | 257 | * string in this table. |
258 | + * @param string $input |
|
247 | 259 | */ |
248 | 260 | function retrieveStringTable($input) |
249 | 261 | { |
@@ -286,6 +298,9 @@ discard block |
||
286 | 298 | |
287 | 299 | } |
288 | 300 | |
301 | + /** |
|
302 | + * @param string $input |
|
303 | + */ |
|
289 | 304 | function _decode($input) |
290 | 305 | { |
291 | 306 | $token = $this->getByte($input); |
@@ -451,6 +466,10 @@ discard block |
||
451 | 466 | } |
452 | 467 | } |
453 | 468 | |
469 | + /** |
|
470 | + * @param boolean $hasAttributes |
|
471 | + * @param boolean $hasContent |
|
472 | + */ |
|
454 | 473 | function parseTag($input, $tag, $hasAttributes, $hasContent) |
455 | 474 | { |
456 | 475 | $attrs = array(); |
@@ -619,6 +638,9 @@ discard block |
||
619 | 638 | $this->_ch->characters($str); |
620 | 639 | } |
621 | 640 | |
641 | + /** |
|
642 | + * @param integer $tag |
|
643 | + */ |
|
622 | 644 | function getTag($tag) |
623 | 645 | { |
624 | 646 | // Should know which state it is in. |
@@ -631,6 +653,9 @@ discard block |
||
631 | 653 | $this->_attributeDTD->toAttributeInt($attribute); |
632 | 654 | } |
633 | 655 | |
656 | + /** |
|
657 | + * @param integer $codePage |
|
658 | + */ |
|
634 | 659 | function switchElementCodePage($codePage) |
635 | 660 | { |
636 | 661 | $this->_tagDTD = &$this->_dtdManager->getInstance($this->_tagDTD->toCodePageStr($codePage)); |
@@ -644,6 +669,7 @@ discard block |
||
644 | 669 | |
645 | 670 | /** |
646 | 671 | * Return the hex version of the base 10 $entity. |
672 | + * @param integer $entity |
|
647 | 673 | */ |
648 | 674 | function entity($entity) |
649 | 675 | { |
@@ -674,6 +700,7 @@ discard block |
||
674 | 700 | * This circumvents a bug in the mbstring overloading in some distributions, |
675 | 701 | * where the mbstring.func_overload=0 INI-setting does not work, if mod_php |
676 | 702 | * has another value for that setting in another directory-context |
703 | + * @param integer $size |
|
677 | 704 | */ |
678 | 705 | function _substr($input,$start,$size) |
679 | 706 | { |
@@ -43,12 +43,21 @@ discard block |
||
43 | 43 | $this->intAttributes[$intAttribute] = $strAttribute; |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @param integer $intTag |
|
48 | + * @param string $strTag |
|
49 | + */ |
|
46 | 50 | function setTag($intTag, $strTag) |
47 | 51 | { |
48 | 52 | $this->strTags[$strTag] = $intTag; |
49 | 53 | $this->intTags[$intTag] = $strTag; |
50 | 54 | } |
51 | 55 | |
56 | + /** |
|
57 | + * @param integer $intCodePage |
|
58 | + * @param string $strCodePage |
|
59 | + * @param string $strCodePageURI |
|
60 | + */ |
|
52 | 61 | function setCodePage($intCodePage, $strCodePage, $strCodePageURI) |
53 | 62 | { |
54 | 63 | $this->strCodePagesURI[$strCodePageURI] = $intCodePage; |
@@ -101,7 +110,7 @@ discard block |
||
101 | 110 | |
102 | 111 | /** |
103 | 112 | * Getter for property version. |
104 | - * @return Value of property version. |
|
113 | + * @return integer of property version. |
|
105 | 114 | */ |
106 | 115 | function getVersion() |
107 | 116 | { |
@@ -119,7 +128,7 @@ discard block |
||
119 | 128 | |
120 | 129 | /** |
121 | 130 | * Getter for property URI. |
122 | - * @return Value of property URI. |
|
131 | + * @return string of property URI. |
|
123 | 132 | */ |
124 | 133 | function getURI() |
125 | 134 | { |
@@ -86,6 +86,8 @@ |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
89 | + * @param string $publicIdentifier |
|
90 | + * @param string $uri |
|
89 | 91 | */ |
90 | 92 | function registerDTD($publicIdentifier, $uri, &$dtd) |
91 | 93 | { |