diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-23 15:59:39 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-30 13:12:51 +0200 |
commit | 5e0cc6b5a61ee171cb597ee2c37204ab5931beb8 (patch) | |
tree | 13e0f53e12394a8e6ef0a2b412f5fa0eb96fadbb | |
parent | ecfde5faa192f5944125c01b17f2d1717d67d5cd (diff) | |
download | nextcloud-server-5e0cc6b5a61ee171cb597ee2c37204ab5931beb8.tar.gz nextcloud-server-5e0cc6b5a61ee171cb597ee2c37204ab5931beb8.zip |
adding copyright and PHPDocs
-rw-r--r-- | lib/connector/sabre/server.php | 30 |
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,'/'); |