summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-09-23 15:59:39 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2013-09-23 15:59:39 +0200
commit61f4c2fbc441c009487e81678f6b9a91a8b2edb4 (patch)
tree9275df4bf34f1959fb77f72903f9519cb931c719
parent5e1b1f652cf8e4f8b3c9b5c9aaf6c2f0b1441b49 (diff)
downloadnextcloud-server-61f4c2fbc441c009487e81678f6b9a91a8b2edb4.tar.gz
nextcloud-server-61f4c2fbc441c009487e81678f6b9a91a8b2edb4.zip
adding copyright and PHPDocs
-rw-r--r--lib/connector/sabre/server.php30
1 files changed, 22 insertions, 8 deletions
diff --git a/lib/connector/sabre/server.php b/lib/connector/sabre/server.php
index f6741ee2947..5a8a8b52e7d 100644
--- a/lib/connector/sabre/server.php
+++ b/lib/connector/sabre/server.php
@@ -1,8 +1,29 @@
<?php
+/**
+ * ownCloud / SabreDAV
+ *
+ * @author Markus Goetz
+ *
+ * @copyright Copyright (C) 2007-2013 Rooftop Solutions. All rights reserved.
+ * @author Evert Pot (http://www.rooftopsolutions.nl/)
+ * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
+ */
/**
* Class OC_Connector_Sabre_Server
*
+ * This class reimplements some methods from @see Sabre_DAV_Server.
+ *
+ * Basically we add handling of depth infinity.
+ *
+ * The right way to handle this would have been to submit a patch to the upstream project
+ * and grab the corresponding version one merged.
+ *
+ * Due to time constrains and the limitations where we don't want to upgrade 3rdparty code in
+ * this stage of the release cycle we did choose this approach.
+ *
+ * For ownCloud 7 we will upgrade SabreDAV and submit the patch - if needed.
+ *
* @see Sabre_DAV_Server
*/
class OC_Connector_Sabre_Server extends Sabre_DAV_Server {
@@ -10,13 +31,6 @@ class OC_Connector_Sabre_Server extends Sabre_DAV_Server {
/**
* @see Sabre_DAV_Server
*/
- public function __construct($treeOrNode = null) {
- parent::__construct($treeOrNode);
- }
-
- /**
- * @see Sabre_DAV_Server
- */
protected function httpPropfind($uri) {
// $xml = new Sabre_DAV_XMLReader(file_get_contents('php://input'));
@@ -64,7 +78,7 @@ class OC_Connector_Sabre_Server extends Sabre_DAV_Server {
public function getPropertiesForPath($path, $propertyNames = array(), $depth = 0) {
-// if ($depth!=0) $depth = 1;
+ // if ($depth!=0) $depth = 1;
$path = rtrim($path,'/');