@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * |
94 | 94 | * @param optional integer $session_flags Any session flags. |
95 | 95 | * |
96 | - * @return object Registry The Horde Registry instance. |
|
96 | + * @return Registry Registry The Horde Registry instance. |
|
97 | 97 | */ |
98 | 98 | function &singleton($session_flags = 0) |
99 | 99 | { |
@@ -594,7 +594,7 @@ discard block |
||
594 | 594 | * @param string $path The application string. |
595 | 595 | * @param optional string $app The application being called. |
596 | 596 | * |
597 | - * @return TODO |
|
597 | + * @return string |
|
598 | 598 | * Returns PEAR_Error on error. |
599 | 599 | */ |
600 | 600 | function applicationWebPath($path, $app = null) |
@@ -729,6 +729,7 @@ discard block |
||
729 | 729 | * |
730 | 730 | * @access public |
731 | 731 | * |
732 | + * @param integer $permission |
|
732 | 733 | * @return boolean Whether or not access is allowed. |
733 | 734 | */ |
734 | 735 | function hasPermission($app, $permission = PERMS_READ) |
@@ -921,6 +922,7 @@ discard block |
||
921 | 922 | * @param optional string $app The application for which to get the |
922 | 923 | * image directory. If blank will default |
923 | 924 | * to current application. |
925 | + * @param string $app |
|
924 | 926 | * |
925 | 927 | * @return string The image directory uri path. |
926 | 928 | */ |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * authentication in different ways. The base class implementation |
64 | 64 | * checks for HTTP Authentication against the Horde auth setup. |
65 | 65 | * |
66 | - * @return boolean Returns true if authentication is successful. |
|
66 | + * @return boolean|null Returns true if authentication is successful. |
|
67 | 67 | * Should send appropriate "not authorized" headers |
68 | 68 | * or other response codes/body if auth fails, |
69 | 69 | * and take care of exiting. |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * Attempts to return a concrete RPC server instance based on |
180 | 180 | * $driver. |
181 | 181 | * |
182 | - * @param mixed $driver The type of concrete RPC subclass to return. If |
|
182 | + * @param string $driver The type of concrete RPC subclass to return. If |
|
183 | 183 | * $driver is an array, then we will look in |
184 | 184 | * $driver[0]/lib/RPC/ for the subclass |
185 | 185 | * implementation named $driver[1].php. |
@@ -121,6 +121,9 @@ discard block |
||
121 | 121 | return $response; |
122 | 122 | } |
123 | 123 | |
124 | + /** |
|
125 | + * @param string $xml |
|
126 | + */ |
|
124 | 127 | function _parse($xml) |
125 | 128 | { |
126 | 129 | /* try to extract charset from XML text */ |
@@ -186,6 +189,9 @@ discard block |
||
186 | 189 | return 'application/vnd.syncml+xml'; |
187 | 190 | } |
188 | 191 | |
192 | + /** |
|
193 | + * @param string $uri |
|
194 | + */ |
|
189 | 195 | function startElement($uri, $element, $attrs) |
190 | 196 | { |
191 | 197 | $this->_xmlStack++; |
@@ -216,6 +222,9 @@ discard block |
||
216 | 222 | } |
217 | 223 | } |
218 | 224 | |
225 | + /** |
|
226 | + * @param string $uri |
|
227 | + */ |
|
219 | 228 | function endElement($uri, $element) |
220 | 229 | { |
221 | 230 | switch ($this->_xmlStack) { |
@@ -265,6 +274,9 @@ discard block |
||
265 | 274 | } |
266 | 275 | } |
267 | 276 | |
277 | + /** |
|
278 | + * @param string $str |
|
279 | + */ |
|
268 | 280 | function raiseError($str) |
269 | 281 | { |
270 | 282 | return Horde::logMessage($str, __FILE__, __LINE__, PEAR_LOG_ERR); |
@@ -365,7 +365,7 @@ |
||
365 | 365 | * @param string $charset The charset to use when calculating the string's |
366 | 366 | * length. |
367 | 367 | * |
368 | - * @return string The string's part. |
|
368 | + * @return integer The string's part. |
|
369 | 369 | */ |
370 | 370 | public static function length($string, $charset = null) |
371 | 371 | { |
@@ -147,6 +147,11 @@ |
||
147 | 147 | |
148 | 148 | var $_maxMsgSize; |
149 | 149 | |
150 | + /** |
|
151 | + * @param string $sourceURI |
|
152 | + * @param string $locName |
|
153 | + * @param string $sessionID |
|
154 | + */ |
|
150 | 155 | function &getStateFromSession($sourceURI, $locName, $sessionID) |
151 | 156 | { |
152 | 157 | // Remove any existing session since we'll be contructing a |
@@ -169,6 +169,9 @@ |
||
169 | 169 | * @param string &$output contenthandler that will received the output. |
170 | 170 | * @param array $additionaltypes: array of additional types for Tx and Rx; |
171 | 171 | * format array('text/vcard' => '3.0') |
172 | + * @param string $sourceref |
|
173 | + * @param string $mimetype |
|
174 | + * @param string $version |
|
172 | 175 | */ |
173 | 176 | function _writeDataStore($sourceref, $mimetype, $version, &$output, |
174 | 177 | $additionaltypes = false) |
@@ -124,6 +124,9 @@ |
||
124 | 124 | // from the Server to the client as we want to process the |
125 | 125 | // client sync information before. |
126 | 126 | |
127 | + /** |
|
128 | + * @param integer $currentCmdID |
|
129 | + */ |
|
127 | 130 | function syncToClient($currentCmdID, &$output) |
128 | 131 | { |
129 | 132 | Horde::logMessage('SyncML: starting sync to client', |
@@ -19,6 +19,9 @@ |
||
19 | 19 | |
20 | 20 | class Horde_SyncML_Command_Sync_ContentSyncElement extends Horde_SyncML_Command_Sync_SyncElementItem { |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $command |
|
24 | + */ |
|
22 | 25 | function outputCommand($currentCmdID, &$output, $command) |
23 | 26 | { |
24 | 27 | $state = $_SESSION['SyncML.state']; |
@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | return $this->_contentType; |
39 | 39 | } |
40 | 40 | |
41 | + /** |
|
42 | + * @return string |
|
43 | + */ |
|
41 | 44 | function getContentFormat() { |
42 | 45 | return $this->_contentFormat; |
43 | 46 | } |
@@ -69,6 +72,9 @@ discard block |
||
69 | 72 | $this->_content = $_content; |
70 | 73 | } |
71 | 74 | |
75 | + /** |
|
76 | + * @param integer $_size |
|
77 | + */ |
|
72 | 78 | function setContentSize($_size) { |
73 | 79 | $this->_contentSize = $_size; |
74 | 80 | } |
@@ -89,6 +95,9 @@ discard block |
||
89 | 95 | return $this->_moreData; |
90 | 96 | } |
91 | 97 | |
98 | + /** |
|
99 | + * @param boolean $_command |
|
100 | + */ |
|
92 | 101 | function setCommand($_command) { |
93 | 102 | $this->_command = $_command; |
94 | 103 | } |