summaryrefslogtreecommitdiffstats
path: root/lib/private/ocs.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/ocs.php')
-rw-r--r--lib/private/ocs.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/private/ocs.php b/lib/private/ocs.php
index e067196cf11..2305b3eccfe 100644
--- a/lib/private/ocs.php
+++ b/lib/private/ocs.php
@@ -35,11 +35,11 @@ class OC_OCS {
/**
* reads input date from get/post/cookies and converts the date to a special data-type
*
- * @param string HTTP method to read the key from
- * @param string Parameter to read
- * @param string Variable type to format data
- * @param mixed Default value to return if the key is not found
- * @return mixed Data or if the key is not found and no default is set it will exit with a 400 Bad request
+ * @param string $method HTTP method to read the key from
+ * @param string $key Parameter to read
+ * @param string $type Variable type to format data
+ * @param mixed $default Default value to return if the key is not found
+ * @return string Data or if the key is not found and no default is set it will exit with a 400 Bad request
*/
public static function readData($method, $key, $type = 'raw', $default = null) {
if ($method == 'get') {
@@ -96,7 +96,7 @@ class OC_OCS {
/**
* generated some debug information to make it easier to find faild API calls
- * @return debug data string
+ * @return string data string
*/
private static function getDebugOutput() {
$txt='';
@@ -214,6 +214,9 @@ class OC_OCS {
}
}
+ /**
+ * @param string $node
+ */
public static function toXml($writer, $data, $node) {
foreach($data as $key => $value) {
if (is_numeric($key)) {