@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | } |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @param iCalendar_property $parent_property |
|
43 | + */ |
|
41 | 44 | function is_valid_value(&$parent_property, $parameter, $value) { |
42 | 45 | switch($parameter) { |
43 | 46 | // These must all be a URI |
@@ -191,6 +194,9 @@ discard block |
||
191 | 194 | } |
192 | 195 | } |
193 | 196 | |
197 | + /** |
|
198 | + * @param string $parameter |
|
199 | + */ |
|
194 | 200 | function do_value_formatting($parameter, $value) { |
195 | 201 | switch($parameter) { |
196 | 202 | // Parameters of type CAL-ADDRESS or URI MUST be double-quoted |
@@ -35,6 +35,10 @@ discard block |
||
35 | 35 | |
36 | 36 | // If some property needs extra care with its parameters, override this |
37 | 37 | // IMPORTANT: the parameter name MUST BE CAPITALIZED! |
38 | + |
|
39 | + /** |
|
40 | + * @param string $parameter |
|
41 | + */ |
|
38 | 42 | function is_valid_parameter($parameter, $value) { |
39 | 43 | |
40 | 44 | if(is_array($value)) { |
@@ -1129,6 +1133,9 @@ discard block |
||
1129 | 1133 | ); |
1130 | 1134 | } |
1131 | 1135 | |
1136 | + /** |
|
1137 | + * @param string $name |
|
1138 | + */ |
|
1132 | 1139 | function set_name($name) { |
1133 | 1140 | |
1134 | 1141 | $name = strtoupper($name); |
@@ -53,6 +53,9 @@ discard block |
||
53 | 53 | define('RFC2445_TYPE_UTC_OFFSET', 13); |
54 | 54 | |
55 | 55 | |
56 | +/** |
|
57 | + * @param string $string |
|
58 | + */ |
|
56 | 59 | function rfc2445_fold($string) { |
57 | 60 | if(strlen($string) <= RFC2445_FOLDED_LINE_LENGTH) { |
58 | 61 | return $string; |
@@ -79,6 +82,9 @@ discard block |
||
79 | 82 | return $string; |
80 | 83 | } |
81 | 84 | |
85 | +/** |
|
86 | + * @param string $name |
|
87 | + */ |
|
82 | 88 | function rfc2445_is_xname($name) { |
83 | 89 | |
84 | 90 | // If it's less than 3 chars, it cannot be legal |
@@ -49,6 +49,7 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @param string property name |
51 | 51 | * @param string property value |
52 | + * @param string $name |
|
52 | 53 | * @return array string property namespace |
53 | 54 | * string property name |
54 | 55 | * string property value |
@@ -62,7 +63,7 @@ discard block |
||
62 | 63 | * REPORT request helper - prepares data-structures from REPORT requests |
63 | 64 | * |
64 | 65 | * @param options |
65 | - * @return void |
|
66 | + * @return null|boolean |
|
66 | 67 | * @access public |
67 | 68 | */ |
68 | 69 | function report_request_helper(&$options) |
@@ -93,6 +93,7 @@ |
||
93 | 93 | * Constructor |
94 | 94 | * |
95 | 95 | * @param string path to report input data |
96 | + * @param string $input |
|
96 | 97 | * @access public |
97 | 98 | */ |
98 | 99 | function ReportParser($input) |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | * PROPFIND request helper - prepares data-structures from PROPFIND requests |
457 | 457 | * |
458 | 458 | * @param options |
459 | - * @return void |
|
459 | + * @return null|boolean |
|
460 | 460 | */ |
461 | 461 | function propfind_request_helper(&$options) |
462 | 462 | { |
@@ -761,7 +761,7 @@ discard block |
||
761 | 761 | * PROPPATCH request helper - prepares data-structures from PROPPATCH requests |
762 | 762 | * |
763 | 763 | * @param options |
764 | - * @return void |
|
764 | + * @return null|boolean |
|
765 | 765 | */ |
766 | 766 | function proppatch_request_helper(&$options) |
767 | 767 | { |
@@ -894,7 +894,7 @@ discard block |
||
894 | 894 | * GET request helper - prepares data-structures from GET requests |
895 | 895 | * |
896 | 896 | * @param options |
897 | - * @return void |
|
897 | + * @return boolean |
|
898 | 898 | */ |
899 | 899 | function get_request_helper(&$options) |
900 | 900 | { |
@@ -1270,7 +1270,7 @@ discard block |
||
1270 | 1270 | * PUT request helper - prepares data-structures from PUT requests |
1271 | 1271 | * |
1272 | 1272 | * @param options |
1273 | - * @return void |
|
1273 | + * @return null|boolean |
|
1274 | 1274 | */ |
1275 | 1275 | function put_request_helper(&$options) |
1276 | 1276 | { |
@@ -1489,7 +1489,7 @@ discard block |
||
1489 | 1489 | * requests |
1490 | 1490 | * |
1491 | 1491 | * @param options |
1492 | - * @return void |
|
1492 | + * @return null|boolean |
|
1493 | 1493 | */ |
1494 | 1494 | function copymove_request_helper(&$options) |
1495 | 1495 | { |
@@ -1631,7 +1631,7 @@ discard block |
||
1631 | 1631 | * LOCK request helper - prepares data-structures from LOCK requests |
1632 | 1632 | * |
1633 | 1633 | * @param options |
1634 | - * @return void |
|
1634 | + * @return boolean|null |
|
1635 | 1635 | */ |
1636 | 1636 | function lock_request_helper(&$options) |
1637 | 1637 | { |
@@ -1771,7 +1771,7 @@ discard block |
||
1771 | 1771 | * UNLOCK request helper - prepares data-structures from UNLOCK requests |
1772 | 1772 | * |
1773 | 1773 | * @param options |
1774 | - * @return void |
|
1774 | + * @return boolean |
|
1775 | 1775 | */ |
1776 | 1776 | function unlock_request_helper(&$options) |
1777 | 1777 | { |
@@ -1843,6 +1843,9 @@ discard block |
||
1843 | 1843 | return $reqprop; |
1844 | 1844 | } |
1845 | 1845 | |
1846 | + /** |
|
1847 | + * @param string $path |
|
1848 | + */ |
|
1846 | 1849 | function getDescendentsLocks($path) |
1847 | 1850 | { |
1848 | 1851 | $options = array(); |
@@ -1865,7 +1868,7 @@ discard block |
||
1865 | 1868 | * list implemented methods |
1866 | 1869 | * |
1867 | 1870 | * @param void |
1868 | - * @return array something |
|
1871 | + * @return string[] something |
|
1869 | 1872 | */ |
1870 | 1873 | function _allow() |
1871 | 1874 | { |
@@ -2156,7 +2159,7 @@ discard block |
||
2156 | 2159 | * defined in RFC2518 9.4 |
2157 | 2160 | * |
2158 | 2161 | * @param void |
2159 | - * @return void |
|
2162 | + * @return boolean|null |
|
2160 | 2163 | */ |
2161 | 2164 | function _check_if_header_conditions() |
2162 | 2165 | { |
@@ -2367,6 +2370,7 @@ discard block |
||
2367 | 2370 | * UTF-8 encode property values if not already done so |
2368 | 2371 | * |
2369 | 2372 | * @param string text to encode |
2373 | + * @param string $text |
|
2370 | 2374 | * @return string utf-8 encoded text |
2371 | 2375 | */ |
2372 | 2376 | function _prop_encode($text) |
@@ -73,6 +73,7 @@ |
||
73 | 73 | * constructor |
74 | 74 | * |
75 | 75 | * @param string path of stream to read |
76 | + * @param string $path |
|
76 | 77 | * @access public |
77 | 78 | */ |
78 | 79 | function _parse_lockinfo($path) |
@@ -55,6 +55,7 @@ |
||
55 | 55 | * constructor |
56 | 56 | * |
57 | 57 | * @access public |
58 | + * @param string $input |
|
58 | 59 | */ |
59 | 60 | function _parse_propfind($input) |
60 | 61 | { |
@@ -72,7 +72,8 @@ |
||
72 | 72 | /** |
73 | 73 | * constructor |
74 | 74 | * |
75 | - * @param string path of input stream |
|
75 | + * @param string path of input stream |
|
76 | + * @param string $path |
|
76 | 77 | * @access public |
77 | 78 | */ |
78 | 79 | function _parse_proppatch($path) |