Rename 'SabreForRainLoop' to the normal 'Sabre' and update to 1.8.12

Will update later to v4.1.5+
This commit is contained in:
djmaze 2021-04-01 21:49:43 +02:00
parent d2534b5ed9
commit 66cb1a272c
238 changed files with 1511 additions and 1310 deletions

View file

@ -223,7 +223,7 @@ class AddressBook extends \RainLoop\Providers\AbstractProvider
{ {
$iCount = 0; $iCount = 0;
if (\class_exists('SabreForRainLoop\DAV\Client') && $this->IsActive() && \is_string($sVcfData)) if (\class_exists('Sabre\DAV\Client') && $this->IsActive() && \is_string($sVcfData))
{ {
$sVcfData = \trim($sVcfData); $sVcfData = \trim($sVcfData);
if ("\xef\xbb\xbf" === \substr($sVcfData, 0, 3)) if ("\xef\xbb\xbf" === \substr($sVcfData, 0, 3))
@ -234,7 +234,7 @@ class AddressBook extends \RainLoop\Providers\AbstractProvider
$oVCardSplitter = null; $oVCardSplitter = null;
try try
{ {
$oVCardSplitter = new \SabreForRainLoop\VObject\Splitter\VCard($sVcfData); $oVCardSplitter = new \Sabre\VObject\Splitter\VCard($sVcfData);
} }
catch (\Throwable $oExc) catch (\Throwable $oExc)
{ {
@ -249,13 +249,13 @@ class AddressBook extends \RainLoop\Providers\AbstractProvider
while ($oVCard = $oVCardSplitter->getNext()) while ($oVCard = $oVCardSplitter->getNext())
{ {
if ($oVCard instanceof \SabreForRainLoop\VObject\Component\VCard) if ($oVCard instanceof \Sabre\VObject\Component\VCard)
{ {
\MailSo\Base\Utils::ResetTimeLimit(); \MailSo\Base\Utils::ResetTimeLimit();
if (empty($oVCard->UID)) if (empty($oVCard->UID))
{ {
$oVCard->UID = \SabreForRainLoop\DAV\UUIDUtil::getUUID(); $oVCard->UID = \Sabre\DAV\UUIDUtil::getUUID();
} }
$oContact->PopulateByVCard($oVCard->UID, $oVCard->serialize()); $oContact->PopulateByVCard($oVCard->UID, $oVCard->serialize());

View file

@ -163,8 +163,8 @@ class Contact implements \JsonSerializable
public function RegenerateContactStr() : void public function RegenerateContactStr() : void
{ {
$this->IdContactStr = \class_exists('SabreForRainLoop\DAV\Client') ? $this->IdContactStr = \class_exists('Sabre\DAV\Client') ?
\SabreForRainLoop\DAV\UUIDUtil::getUUID() : \MailSo\Base\Utils::Md5Rand(); \Sabre\DAV\UUIDUtil::getUUID() : \MailSo\Base\Utils::Md5Rand();
} }
public function GetEmails() : array public function GetEmails() : array
@ -190,7 +190,7 @@ class Contact implements \JsonSerializable
{ {
$this->UpdateDependentValues(); $this->UpdateDependentValues();
if (!\class_exists('SabreForRainLoop\DAV\Client')) if (!\class_exists('Sabre\DAV\Client'))
{ {
return ''; return '';
} }
@ -205,7 +205,7 @@ class Contact implements \JsonSerializable
{ {
try try
{ {
$oVCard = \SabreForRainLoop\VObject\Reader::read($sPreVCard); $oVCard = \Sabre\VObject\Reader::read($sPreVCard);
} }
catch (\Throwable $oExc) catch (\Throwable $oExc)
{ {
@ -224,7 +224,7 @@ class Contact implements \JsonSerializable
if (!$oVCard) if (!$oVCard)
{ {
$oVCard = new \SabreForRainLoop\VObject\Component\VCard(); $oVCard = new \Sabre\VObject\Component\VCard();
} }
$oVCard->VERSION = '3.0'; $oVCard->VERSION = '3.0';
@ -510,7 +510,7 @@ class Contact implements \JsonSerializable
$this->Properties = array(); $this->Properties = array();
if (!\class_exists('SabreForRainLoop\DAV\Client')) if (!\class_exists('Sabre\DAV\Client'))
{ {
return false; return false;
} }
@ -524,7 +524,7 @@ class Contact implements \JsonSerializable
try try
{ {
$oVCard = \SabreForRainLoop\VObject\Reader::read($sVCard); $oVCard = \Sabre\VObject\Reader::read($sVCard);
} }
catch (\Throwable $oExc) catch (\Throwable $oExc)
{ {
@ -621,7 +621,7 @@ class Contact implements \JsonSerializable
$this->addArrayPropertyHelper($aProperties, $oVCard->TEL, PropertyType::PHONE); $this->addArrayPropertyHelper($aProperties, $oVCard->TEL, PropertyType::PHONE);
} }
$sUidValue = $oVCard->UID ? (string) $oVCard->UID : \SabreForRainLoop\DAV\UUIDUtil::getUUID(); $sUidValue = $oVCard->UID ? (string) $oVCard->UID : \Sabre\DAV\UUIDUtil::getUUID();
$aProperties[] = new Property(PropertyType::UID, $sUidValue); $aProperties[] = new Property(PropertyType::UID, $sUidValue);
if (empty($this->IdContactStr)) if (empty($this->IdContactStr))

View file

@ -214,7 +214,7 @@ class PdoAddressBook
return $aResponse; return $aResponse;
} }
private function detectionPropFind(\SabreForRainLoop\DAV\Client $oClient, string $sPath) : ?array private function detectionPropFind(\Sabre\DAV\Client $oClient, string $sPath) : ?array
{ {
$aResponse = null; $aResponse = null;
@ -239,7 +239,7 @@ class PdoAddressBook
return $aResponse; return $aResponse;
} }
private function getContactsPaths(\SabreForRainLoop\DAV\Client $oClient, string $sUser, string $sPassword, string $sProxy = '') : array private function getContactsPaths(\Sabre\DAV\Client $oClient, string $sUser, string $sPassword, string $sProxy = '') : array
{ {
$aContactsPaths = array(); $aContactsPaths = array();
@ -285,7 +285,7 @@ class PdoAddressBook
if (empty($sNextPath)) if (empty($sNextPath))
{ {
$oResourceType = isset($aItem['{DAV:}resourcetype']) ? $aItem['{DAV:}resourcetype'] : null; $oResourceType = isset($aItem['{DAV:}resourcetype']) ? $aItem['{DAV:}resourcetype'] : null;
/* @var $oResourceType \SabreForRainLoop\DAV\Property\ResourceType */ /* @var $oResourceType \Sabre\DAV\Property\ResourceType */
if ($oResourceType && $oResourceType->is('{DAV:}collection')) if ($oResourceType && $oResourceType->is('{DAV:}collection'))
{ {
$sNextPath = $sKey; $sNextPath = $sKey;
@ -408,7 +408,7 @@ class PdoAddressBook
if (!empty($sKey) && $aItem && isset($aItem['{DAV:}resourcetype'])) if (!empty($sKey) && $aItem && isset($aItem['{DAV:}resourcetype']))
{ {
$oResourceType = $aItem['{DAV:}resourcetype']; $oResourceType = $aItem['{DAV:}resourcetype'];
/* @var $oResourceType \SabreForRainLoop\DAV\Property\ResourceType */ /* @var $oResourceType \Sabre\DAV\Property\ResourceType */
if ($oResourceType && $oResourceType->is('{DAV:}collection')) if ($oResourceType && $oResourceType->is('{DAV:}collection'))
{ {
@ -425,7 +425,7 @@ class PdoAddressBook
return $aContactsPaths; return $aContactsPaths;
} }
private function checkContactsPath(\SabreForRainLoop\DAV\Client $oClient, string $sPath) : bool private function checkContactsPath(\Sabre\DAV\Client $oClient, string $sPath) : bool
{ {
if (!$oClient) if (!$oClient)
{ {
@ -456,7 +456,7 @@ class PdoAddressBook
if (!empty($sKey) && isset($aItem['{DAV:}resourcetype'])) if (!empty($sKey) && isset($aItem['{DAV:}resourcetype']))
{ {
$oResourceType = $aItem['{DAV:}resourcetype']; $oResourceType = $aItem['{DAV:}resourcetype'];
/* @var $oResourceType \SabreForRainLoop\DAV\Property\ResourceType */ /* @var $oResourceType \Sabre\DAV\Property\ResourceType */
if ($oResourceType && $oResourceType->is('{DAV:}collection') && if ($oResourceType && $oResourceType->is('{DAV:}collection') &&
$oResourceType->is('{urn:ietf:params:xml:ns:carddav}addressbook')) $oResourceType->is('{urn:ietf:params:xml:ns:carddav}addressbook'))
@ -475,7 +475,7 @@ class PdoAddressBook
return $bGood; return $bGood;
} }
public function getDavClientFromUrl(string $sUrl, string $sUser, string $sPassword, string $sProxy = '') : \SabreForRainLoop\DAV\Client public function getDavClientFromUrl(string $sUrl, string $sUser, string $sPassword, string $sProxy = '') : \Sabre\DAV\Client
{ {
if (!\preg_match('/^http[s]?:\/\//i', $sUrl)) if (!\preg_match('/^http[s]?:\/\//i', $sUrl))
{ {
@ -509,7 +509,7 @@ class PdoAddressBook
$aSettings['proxy'] = $sProxy; $aSettings['proxy'] = $sProxy;
} }
$oClient = new \SabreForRainLoop\DAV\Client($aSettings); $oClient = new \Sabre\DAV\Client($aSettings);
$oClient->setVerifyPeer(false); $oClient->setVerifyPeer(false);
$oClient->__UrlPath__ = $aUrl['path']; $oClient->__UrlPath__ = $aUrl['path'];
@ -519,9 +519,9 @@ class PdoAddressBook
return $oClient; return $oClient;
} }
public function getDavClient(string $sUrl, string $sUser, string $sPassword, string $sProxy = '') : ?\SabreForRainLoop\DAV\Client public function getDavClient(string $sUrl, string $sUser, string $sPassword, string $sProxy = '') : ?\Sabre\DAV\Client
{ {
if (!\class_exists('SabreForRainLoop\DAV\Client')) if (!\class_exists('Sabre\DAV\Client'))
{ {
return null; return null;
} }

View file

@ -1,18 +1,18 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Backend; namespace Sabre\CalDAV\Backend;
use SabreForRainLoop\VObject; use Sabre\VObject;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
/** /**
* Abstract Calendaring backend. Extend this class to create your own backends. * Abstract Calendaring backend. Extend this class to create your own backends.
* *
* Checkout the BackendInterface for all the methods that must be implemented. * Checkout the BackendInterface for all the methods that must be implemented.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
abstract class AbstractBackend implements BackendInterface { abstract class AbstractBackend implements BackendInterface {
@ -70,7 +70,7 @@ abstract class AbstractBackend implements BackendInterface {
* query. * query.
* *
* The list of filters are specified as an array. The exact array is * The list of filters are specified as an array. The exact array is
* documented by \SabreForRainLoop\CalDAV\CalendarQueryParser. * documented by \Sabre\CalDAV\CalendarQueryParser.
* *
* Note that it is extremely likely that getCalendarObject for every path * Note that it is extremely likely that getCalendarObject for every path
* returned from this method will be called almost immediately after. You * returned from this method will be called almost immediately after. You
@ -99,7 +99,7 @@ abstract class AbstractBackend implements BackendInterface {
* time-range filter specified on a VEVENT must for instance also handle * time-range filter specified on a VEVENT must for instance also handle
* recurrence rules correctly. * recurrence rules correctly.
* A good example of how to interprete all these filters can also simply * A good example of how to interprete all these filters can also simply
* be found in \SabreForRainLoop\CalDAV\CalendarQueryFilter. This class is as correct * be found in \Sabre\CalDAV\CalendarQueryFilter. This class is as correct
* as possible, so it gives you a good idea on what type of stuff you need * as possible, so it gives you a good idea on what type of stuff you need
* to think of. * to think of.
* *
@ -112,7 +112,7 @@ abstract class AbstractBackend implements BackendInterface {
$result = array(); $result = array();
$objects = $this->getCalendarObjects($calendarId); $objects = $this->getCalendarObjects($calendarId);
$validator = new \SabreForRainLoop\CalDAV\CalendarQueryValidator(); $validator = new \Sabre\CalDAV\CalendarQueryValidator();
foreach($objects as $object) { foreach($objects as $object) {

View file

@ -1,13 +1,13 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Backend; namespace Sabre\CalDAV\Backend;
/** /**
* Every CalDAV backend must at least implement this interface. * Every CalDAV backend must at least implement this interface.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface BackendInterface { interface BackendInterface {
@ -191,7 +191,7 @@ interface BackendInterface {
* query. * query.
* *
* The list of filters are specified as an array. The exact array is * The list of filters are specified as an array. The exact array is
* documented by SabreForRainLoop\CalDAV\CalendarQueryParser. * documented by Sabre\CalDAV\CalendarQueryParser.
* *
* Note that it is extremely likely that getCalendarObject for every path * Note that it is extremely likely that getCalendarObject for every path
* returned from this method will be called almost immediately after. You * returned from this method will be called almost immediately after. You
@ -220,7 +220,7 @@ interface BackendInterface {
* time-range filter specified on a VEVENT must for instance also handle * time-range filter specified on a VEVENT must for instance also handle
* recurrence rules correctly. * recurrence rules correctly.
* A good example of how to interprete all these filters can also simply * A good example of how to interprete all these filters can also simply
* be found in SabreForRainLoop\CalDAV\CalendarQueryFilter. This class is as correct * be found in Sabre\CalDAV\CalendarQueryFilter. This class is as correct
* as possible, so it gives you a good idea on what type of stuff you need * as possible, so it gives you a good idea on what type of stuff you need
* to think of. * to think of.
* *

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Backend; namespace Sabre\CalDAV\Backend;
/** /**
* Adds caldav notification support to a backend. * Adds caldav notification support to a backend.
@ -16,9 +16,9 @@ namespace SabreForRainLoop\CalDAV\Backend;
* *
* The primary usecase is to allow for calendar-sharing. * The primary usecase is to allow for calendar-sharing.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface NotificationSupport extends BackendInterface { interface NotificationSupport extends BackendInterface {
@ -26,7 +26,7 @@ interface NotificationSupport extends BackendInterface {
* Returns a list of notifications for a given principal url. * Returns a list of notifications for a given principal url.
* *
* The returned array should only consist of implementations of * The returned array should only consist of implementations of
* \SabreForRainLoop\CalDAV\Notifications\INotificationType. * \Sabre\CalDAV\Notifications\INotificationType.
* *
* @param string $principalUri * @param string $principalUri
* @return array * @return array
@ -39,9 +39,9 @@ interface NotificationSupport extends BackendInterface {
* This may be called by a client once it deems a notification handled. * This may be called by a client once it deems a notification handled.
* *
* @param string $principalUri * @param string $principalUri
* @param \SabreForRainLoop\CalDAV\Notifications\INotificationType $notification * @param \Sabre\CalDAV\Notifications\INotificationType $notification
* @return void * @return void
*/ */
public function deleteNotification($principalUri, \SabreForRainLoop\CalDAV\Notifications\INotificationType $notification); public function deleteNotification($principalUri, \Sabre\CalDAV\Notifications\INotificationType $notification);
} }

View file

@ -1,10 +1,10 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Backend; namespace Sabre\CalDAV\Backend;
use SabreForRainLoop\VObject; use Sabre\VObject;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* PDO CalDAV backend * PDO CalDAV backend
@ -12,9 +12,9 @@ use SabreForRainLoop\DAV;
* This backend is used to store calendar-data in a PDO database, such as * This backend is used to store calendar-data in a PDO database, such as
* sqlite or MySQL * sqlite or MySQL
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class PDO extends AbstractBackend { class PDO extends AbstractBackend {
@ -175,7 +175,7 @@ class PDO extends AbstractBackend {
$values[':components'] = 'VEVENT,VTODO'; $values[':components'] = 'VEVENT,VTODO';
} else { } else {
if (!($properties[$sccs] instanceof CalDAV\Property\SupportedCalendarComponentSet)) { if (!($properties[$sccs] instanceof CalDAV\Property\SupportedCalendarComponentSet)) {
throw new DAV\Exception('The ' . $sccs . ' property must be of type: \SabreForRainLoop\CalDAV\Property\SupportedCalendarComponentSet'); throw new DAV\Exception('The ' . $sccs . ' property must be of type: \Sabre\CalDAV\Property\SupportedCalendarComponentSet');
} }
$values[':components'] = implode(',',$properties[$sccs]->getValue()); $values[':components'] = implode(',',$properties[$sccs]->getValue());
} }
@ -255,16 +255,16 @@ class PDO extends AbstractBackend {
break; break;
default : default :
// Checking the property map // Checking the property map
if (!isset($this->propertyMap[$propertyName])) { if (isset($this->propertyMap[$propertyName])) {
// We don't know about this property. // We don't know about this property.
$hasError = true; $hasError = true;
$result[403][$propertyName] = null; $result[403][$propertyName] = null;
unset($mutations[$propertyName]); unset($mutations[$propertyName]);
break; } else {
}
$fieldName = $this->propertyMap[$propertyName]; $fieldName = $this->propertyMap[$propertyName];
$newValues[$fieldName] = $propertyValue; $newValues[$fieldName] = $propertyValue;
}
} }
} }
@ -497,7 +497,7 @@ class PDO extends AbstractBackend {
} }
} }
if (!$componentType) { if (!$componentType) {
throw new \SabreForRainLoop\DAV\Exception\BadRequest('Calendar objects must have a VJOURNAL, VEVENT or VTODO component'); throw new \Sabre\DAV\Exception\BadRequest('Calendar objects must have a VJOURNAL, VEVENT or VTODO component');
} }
if ($componentType === 'VEVENT') { if ($componentType === 'VEVENT') {
$firstOccurence = $component->DTSTART->getDateTime()->getTimeStamp(); $firstOccurence = $component->DTSTART->getDateTime()->getTimeStamp();
@ -572,7 +572,7 @@ class PDO extends AbstractBackend {
* query. * query.
* *
* The list of filters are specified as an array. The exact array is * The list of filters are specified as an array. The exact array is
* documented by \SabreForRainLoop\CalDAV\CalendarQueryParser. * documented by \Sabre\CalDAV\CalendarQueryParser.
* *
* Note that it is extremely likely that getCalendarObject for every path * Note that it is extremely likely that getCalendarObject for every path
* returned from this method will be called almost immediately after. You * returned from this method will be called almost immediately after. You
@ -601,7 +601,7 @@ class PDO extends AbstractBackend {
* time-range filter specified on a VEVENT must for instance also handle * time-range filter specified on a VEVENT must for instance also handle
* recurrence rules correctly. * recurrence rules correctly.
* A good example of how to interprete all these filters can also simply * A good example of how to interprete all these filters can also simply
* be found in \SabreForRainLoop\CalDAV\CalendarQueryFilter. This class is as correct * be found in \Sabre\CalDAV\CalendarQueryFilter. This class is as correct
* as possible, so it gives you a good idea on what type of stuff you need * as possible, so it gives you a good idea on what type of stuff you need
* to think of. * to think of.
* *
@ -615,7 +615,7 @@ class PDO extends AbstractBackend {
public function calendarQuery($calendarId, array $filters) { public function calendarQuery($calendarId, array $filters) {
$result = array(); $result = array();
$validator = new \SabreForRainLoop\CalDAV\CalendarQueryValidator(); $validator = new \Sabre\CalDAV\CalendarQueryValidator();
$componentType = null; $componentType = null;
$requirePostFilter = true; $requirePostFilter = true;

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Backend; namespace Sabre\CalDAV\Backend;
/** /**
* Adds support for sharing features to a CalDAV server. * Adds support for sharing features to a CalDAV server.
@ -65,12 +65,12 @@ namespace SabreForRainLoop\CalDAV\Backend;
* change. * change.
* This notification is always represented by: * This notification is always represented by:
* *
* SabreForRainLoop\CalDAV\Notifications\Notification\Invite * Sabre\CalDAV\Notifications\Notification\Invite
* *
* In the case of an invite, the sharee may reply with an 'accept' or * In the case of an invite, the sharee may reply with an 'accept' or
* 'decline'. These are always represented by: * 'decline'. These are always represented by:
* *
* SabreForRainLoop\CalDAV\Notifications\Notification\Invite * Sabre\CalDAV\Notifications\Notification\Invite
* *
* *
* Calendar access by sharees * Calendar access by sharees
@ -156,7 +156,7 @@ namespace SabreForRainLoop\CalDAV\Backend;
* Selectively disabling publish or share feature * Selectively disabling publish or share feature
* ============================================== * ==============================================
* *
* If SabreForRainLoop\CalDAV\Property\AllowedSharingModes is returned from * If Sabre\CalDAV\Property\AllowedSharingModes is returned from
* getCalendarsByUser, this allows the server to specify whether either sharing, * getCalendarsByUser, this allows the server to specify whether either sharing,
* or publishing is supported. * or publishing is supported.
* *
@ -165,9 +165,9 @@ namespace SabreForRainLoop\CalDAV\Backend;
* the backend, the SharingPlugin automatically injects it and assumes both * the backend, the SharingPlugin automatically injects it and assumes both
* features are available. * features are available.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface SharingSupport extends NotificationSupport { interface SharingSupport extends NotificationSupport {
@ -202,7 +202,7 @@ interface SharingSupport extends NotificationSupport {
* Every element in this array should have the following properties: * Every element in this array should have the following properties:
* * href - Often a mailto: address * * href - Often a mailto: address
* * commonName - Optional, for example a first + last name * * commonName - Optional, for example a first + last name
* * status - See the SabreForRainLoop\CalDAV\SharingPlugin::STATUS_ constants. * * status - See the Sabre\CalDAV\SharingPlugin::STATUS_ constants.
* * readOnly - boolean * * readOnly - boolean
* * summary - Optional, a description for the share * * summary - Optional, a description for the share
* *

View file

@ -1,19 +1,19 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* This object represents a CalDAV calendar. * This object represents a CalDAV calendar.
* *
* A calendar can contain multiple TODO and or Events. These are represented * A calendar can contain multiple TODO and or Events. These are represented
* as \SabreForRainLoop\CalDAV\CalendarObject objects. * as \Sabre\CalDAV\CalendarObject objects.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Calendar implements ICalendar, DAV\IProperties, DAVACL\IACL { class Calendar implements ICalendar, DAV\IProperties, DAVACL\IACL {
@ -103,7 +103,7 @@ class Calendar implements ICalendar, DAV\IProperties, DAVACL\IACL {
* The contained calendar objects are for example Events or Todo's. * The contained calendar objects are for example Events or Todo's.
* *
* @param string $name * @param string $name
* @return \SabreForRainLoop\CalDAV\ICalendarObject * @return \Sabre\CalDAV\ICalendarObject
*/ */
public function getChild($name) { public function getChild($name) {
@ -323,7 +323,7 @@ class Calendar implements ICalendar, DAV\IProperties, DAVACL\IACL {
* Returns the list of supported privileges for this node. * Returns the list of supported privileges for this node.
* *
* The returned data structure is a list of nested privileges. * The returned data structure is a list of nested privileges.
* See \SabreForRainLoop\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple * See \Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
* standard structure. * standard structure.
* *
* If null is returned from this method, the default privilege set is used, * If null is returned from this method, the default privilege set is used,
@ -362,7 +362,7 @@ class Calendar implements ICalendar, DAV\IProperties, DAVACL\IACL {
* query. * query.
* *
* The list of filters are specified as an array. The exact array is * The list of filters are specified as an array. The exact array is
* documented by SabreForRainLoop\CalDAV\CalendarQueryParser. * documented by Sabre\CalDAV\CalendarQueryParser.
* *
* @param array $filters * @param array $filters
* @return array * @return array

View file

@ -1,20 +1,20 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
/** /**
* The CalendarObject represents a single VEVENT or VTODO within a Calendar. * The CalendarObject represents a single VEVENT or VTODO within a Calendar.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class CalendarObject extends \SabreForRainLoop\DAV\File implements ICalendarObject, \SabreForRainLoop\DAVACL\IACL { class CalendarObject extends \Sabre\DAV\File implements ICalendarObject, \Sabre\DAVACL\IACL {
/** /**
* SabreForRainLoop\CalDAV\Backend\BackendInterface * Sabre\CalDAV\Backend\BackendInterface
* *
* @var SabreForRainLoop\CalDAV\Backend\AbstractBackend * @var Sabre\CalDAV\Backend\AbstractBackend
*/ */
protected $caldavBackend; protected $caldavBackend;
@ -253,7 +253,7 @@ class CalendarObject extends \SabreForRainLoop\DAV\File implements ICalendarObje
*/ */
public function setACL(array $acl) { public function setACL(array $acl) {
throw new \SabreForRainLoop\DAV\Exception\MethodNotAllowed('Changing ACL is not yet supported'); throw new \Sabre\DAV\Exception\MethodNotAllowed('Changing ACL is not yet supported');
} }
@ -261,7 +261,7 @@ class CalendarObject extends \SabreForRainLoop\DAV\File implements ICalendarObje
* Returns the list of supported privileges for this node. * Returns the list of supported privileges for this node.
* *
* The returned data structure is a list of nested privileges. * The returned data structure is a list of nested privileges.
* See \SabreForRainLoop\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple * See \Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
* standard structure. * standard structure.
* *
* If null is returned from this method, the default privilege set is used, * If null is returned from this method, the default privilege set is used,

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\VObject; use Sabre\VObject;
/** /**
* Parses the calendar-query report request body. * Parses the calendar-query report request body.
@ -10,9 +10,9 @@ use SabreForRainLoop\VObject;
* Whoever designed this format, and the CalDAV equivalent even more so, * Whoever designed this format, and the CalDAV equivalent even more so,
* has no feel for design. * has no feel for design.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class CalendarQueryParser { class CalendarQueryParser {
@ -84,16 +84,16 @@ class CalendarQueryParser {
$filter = $this->xpath->query('/cal:calendar-query/cal:filter'); $filter = $this->xpath->query('/cal:calendar-query/cal:filter');
if ($filter->length !== 1) { if ($filter->length !== 1) {
throw new \SabreForRainLoop\DAV\Exception\BadRequest('Only one filter element is allowed'); throw new \Sabre\DAV\Exception\BadRequest('Only one filter element is allowed');
} }
$compFilters = $this->parseCompFilters($filter->item(0)); $compFilters = $this->parseCompFilters($filter->item(0));
if (count($compFilters)!==1) { if (count($compFilters)!==1) {
throw new \SabreForRainLoop\DAV\Exception\BadRequest('There must be exactly 1 top-level comp-filter.'); throw new \Sabre\DAV\Exception\BadRequest('There must be exactly 1 top-level comp-filter.');
} }
$this->filters = $compFilters[0]; $this->filters = $compFilters[0];
$this->requestedProperties = array_keys(\SabreForRainLoop\DAV\XMLUtil::parseProperties($this->dom->firstChild)); $this->requestedProperties = array_keys(\Sabre\DAV\XMLUtil::parseProperties($this->dom->firstChild));
$expand = $this->xpath->query('/cal:calendar-query/dav:prop/cal:calendar-data/cal:expand'); $expand = $this->xpath->query('/cal:calendar-query/dav:prop/cal:calendar-data/cal:expand');
if ($expand->length>0) { if ($expand->length>0) {
@ -132,7 +132,7 @@ class CalendarQueryParser {
'VFREEBUSY', 'VFREEBUSY',
'VALARM', 'VALARM',
))) { ))) {
throw new \SabreForRainLoop\DAV\Exception\BadRequest('The time-range filter is not defined for the ' . $compFilter['name'] . ' component'); throw new \Sabre\DAV\Exception\BadRequest('The time-range filter is not defined for the ' . $compFilter['name'] . ' component');
}; };
$result[] = $compFilter; $result[] = $compFilter;
@ -253,7 +253,7 @@ class CalendarQueryParser {
} }
if (!is_null($start) && !is_null($end) && $end <= $start) { if (!is_null($start) && !is_null($end) && $end <= $start) {
throw new \SabreForRainLoop\DAV\Exception\BadRequest('The end-date must be larger than the start-date in the time-range filter'); throw new \Sabre\DAV\Exception\BadRequest('The end-date must be larger than the start-date in the time-range filter');
} }
return array( return array(
@ -273,19 +273,19 @@ class CalendarQueryParser {
$start = $parentNode->getAttribute('start'); $start = $parentNode->getAttribute('start');
if(!$start) { if(!$start) {
throw new \SabreForRainLoop\DAV\Exception\BadRequest('The "start" attribute is required for the CALDAV:expand element'); throw new \Sabre\DAV\Exception\BadRequest('The "start" attribute is required for the CALDAV:expand element');
} }
$start = VObject\DateTimeParser::parseDateTime($start); $start = VObject\DateTimeParser::parseDateTime($start);
$end = $parentNode->getAttribute('end'); $end = $parentNode->getAttribute('end');
if(!$end) { if(!$end) {
throw new \SabreForRainLoop\DAV\Exception\BadRequest('The "end" attribute is required for the CALDAV:expand element'); throw new \Sabre\DAV\Exception\BadRequest('The "end" attribute is required for the CALDAV:expand element');
} }
$end = VObject\DateTimeParser::parseDateTime($end); $end = VObject\DateTimeParser::parseDateTime($end);
if ($end <= $start) { if ($end <= $start) {
throw new \SabreForRainLoop\DAV\Exception\BadRequest('The end-date must be larger than the start-date in the expand element.'); throw new \Sabre\DAV\Exception\BadRequest('The end-date must be larger than the start-date in the expand element.');
} }
return array( return array(

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\VObject; use Sabre\VObject;
use DateTime; use DateTime;
/** /**
@ -14,16 +14,16 @@ use DateTime;
* This is used to determine which icalendar objects should be returned for a * This is used to determine which icalendar objects should be returned for a
* calendar-query REPORT request. * calendar-query REPORT request.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class CalendarQueryValidator { class CalendarQueryValidator {
/** /**
* Verify if a list of filters applies to the calendar data object * Verify if a list of filters applies to the calendar data object
* *
* The list of filters must be formatted as parsed by \SabreForRainLoop\CalDAV\CalendarQueryParser * The list of filters must be formatted as parsed by \Sabre\CalDAV\CalendarQueryParser
* *
* @param VObject\Component $vObject * @param VObject\Component $vObject
* @param array $filters * @param array $filters
@ -273,7 +273,7 @@ class CalendarQueryValidator {
$check = (string)$check; $check = (string)$check;
} }
$isMatching = \SabreForRainLoop\DAV\StringUtil::textMatch($check, $textMatch['value'], $textMatch['collation']); $isMatching = \Sabre\DAV\StringUtil::textMatch($check, $textMatch['value'], $textMatch['collation']);
return ($textMatch['negate-condition'] xor $isMatching); return ($textMatch['negate-condition'] xor $isMatching);
@ -369,7 +369,7 @@ class CalendarQueryValidator {
} }
case 'VFREEBUSY' : case 'VFREEBUSY' :
throw new \SabreForRainLoop\DAV\Exception\NotImplemented('time-range filters are currently not supported on ' . $component->name . ' components'); throw new \Sabre\DAV\Exception\NotImplemented('time-range filters are currently not supported on ' . $component->name . ' components');
case 'COMPLETED' : case 'COMPLETED' :
case 'CREATED' : case 'CREATED' :
@ -383,7 +383,7 @@ class CalendarQueryValidator {
default : default :
throw new \SabreForRainLoop\DAV\Exception\BadRequest('You cannot create a time-range filter on a ' . $component->name . ' component'); throw new \Sabre\DAV\Exception\BadRequest('You cannot create a time-range filter on a ' . $component->name . ' component');
} }

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\DAVACL\PrincipalBackend; use Sabre\DAVACL\PrincipalBackend;
/** /**
* Calendars collection * Calendars collection
@ -10,16 +10,16 @@ use SabreForRainLoop\DAVACL\PrincipalBackend;
* This object is responsible for generating a list of calendar-homes for each * This object is responsible for generating a list of calendar-homes for each
* user. * user.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class CalendarRootNode extends \SabreForRainLoop\DAVACL\AbstractPrincipalCollection { class CalendarRootNode extends \Sabre\DAVACL\AbstractPrincipalCollection {
/** /**
* CalDAV backend * CalDAV backend
* *
* @var SabreForRainLoop\CalDAV\Backend\BackendInterface * @var Sabre\CalDAV\Backend\BackendInterface
*/ */
protected $caldavBackend; protected $caldavBackend;
@ -48,7 +48,7 @@ class CalendarRootNode extends \SabreForRainLoop\DAVACL\AbstractPrincipalCollect
* Returns the nodename * Returns the nodename
* *
* We're overriding this, because the default will be the 'principalPrefix', * We're overriding this, because the default will be the 'principalPrefix',
* and we want it to be SabreForRainLoop\CalDAV\Plugin::CALENDAR_ROOT * and we want it to be Sabre\CalDAV\Plugin::CALENDAR_ROOT
* *
* @return string * @return string
*/ */
@ -66,7 +66,7 @@ class CalendarRootNode extends \SabreForRainLoop\DAVACL\AbstractPrincipalCollect
* supplied by the authentication backend. * supplied by the authentication backend.
* *
* @param array $principal * @param array $principal
* @return \SabreForRainLoop\DAV\INode * @return \Sabre\DAV\INode
*/ */
public function getChildForPrincipal(array $principal) { public function getChildForPrincipal(array $principal) {

View file

@ -1,16 +1,16 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Exception; namespace Sabre\CalDAV\Exception;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
/** /**
* InvalidComponentType * InvalidComponentType
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class InvalidComponentType extends DAV\Exception\Forbidden { class InvalidComponentType extends DAV\Exception\Forbidden {

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\VObject; use Sabre\VObject;
/** /**
* ICS Exporter * ICS Exporter
@ -12,23 +12,23 @@ use SabreForRainLoop\VObject;
* This is useful for clients that don't support CalDAV yet. They often do * This is useful for clients that don't support CalDAV yet. They often do
* support ics files. * support ics files.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class ICSExportPlugin extends DAV\ServerPlugin { class ICSExportPlugin extends DAV\ServerPlugin {
/** /**
* Reference to Server class * Reference to Server class
* *
* @var \SabreForRainLoop\DAV\Server * @var \Sabre\DAV\Server
*/ */
protected $server; protected $server;
/** /**
* Initializes the plugin and registers event handlers * Initializes the plugin and registers event handlers
* *
* @param \SabreForRainLoop\DAV\Server $server * @param \Sabre\DAV\Server $server
* @return void * @return void
*/ */
public function initialize(DAV\Server $server) { public function initialize(DAV\Server $server) {

View file

@ -1,16 +1,16 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* Calendar interface * Calendar interface
* *
* Implement this interface to allow a node to be recognized as an calendar. * Implement this interface to allow a node to be recognized as an calendar.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface ICalendar extends DAV\ICollection { interface ICalendar extends DAV\ICollection {
@ -26,7 +26,7 @@ interface ICalendar extends DAV\ICollection {
* query. * query.
* *
* The list of filters are specified as an array. The exact array is * The list of filters are specified as an array. The exact array is
* documented by \SabreForRainLoop\CalDAV\CalendarQueryParser. * documented by \Sabre\CalDAV\CalendarQueryParser.
* *
* @param array $filters * @param array $filters
* @return array * @return array

View file

@ -1,7 +1,7 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* CalendarObject interface * CalendarObject interface
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
* *
* Calendar objects are resources such as Events, Todo's or Journals. * Calendar objects are resources such as Events, Todo's or Journals.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface ICalendarObject extends DAV\IFile { interface ICalendarObject extends DAV\IFile {

View file

@ -1,13 +1,13 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
/** /**
* This interface represents a Calendar that can be shared with other users. * This interface represents a Calendar that can be shared with other users.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface IShareableCalendar extends ICalendar { interface IShareableCalendar extends ICalendar {
@ -37,7 +37,7 @@ interface IShareableCalendar extends ICalendar {
* Every element in this array should have the following properties: * Every element in this array should have the following properties:
* * href - Often a mailto: address * * href - Often a mailto: address
* * commonName - Optional, for example a first + last name * * commonName - Optional, for example a first + last name
* * status - See the SabreForRainLoop\CalDAV\SharingPlugin::STATUS_ constants. * * status - See the Sabre\CalDAV\SharingPlugin::STATUS_ constants.
* * readOnly - boolean * * readOnly - boolean
* * summary - Optional, a description for the share * * summary - Optional, a description for the share
* *

View file

@ -1,13 +1,13 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
/** /**
* This interface represents a Calendar that is shared by a different user. * This interface represents a Calendar that is shared by a different user.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface ISharedCalendar extends ICalendar { interface ISharedCalendar extends ICalendar {
@ -25,7 +25,7 @@ interface ISharedCalendar extends ICalendar {
* Every element in this array should have the following properties: * Every element in this array should have the following properties:
* * href - Often a mailto: address * * href - Often a mailto: address
* * commonName - Optional, for example a first + last name * * commonName - Optional, for example a first + last name
* * status - See the SabreForRainLoop\CalDAV\SharingPlugin::STATUS_ constants. * * status - See the Sabre\CalDAV\SharingPlugin::STATUS_ constants.
* * readOnly - boolean * * readOnly - boolean
* * summary - Optional, a description for the share * * summary - Optional, a description for the share
* *

View file

@ -1,10 +1,10 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Notifications; namespace Sabre\CalDAV\Notifications;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* This node represents a list of notifications. * This node represents a list of notifications.
@ -13,19 +13,19 @@ use SabreForRainLoop\DAVACL;
* interface to allow the Notifications plugin to mark the collection * interface to allow the Notifications plugin to mark the collection
* as a notifications collection. * as a notifications collection.
* *
* This collection should only return SabreForRainLoop\CalDAV\Notifications\INode nodes as * This collection should only return Sabre\CalDAV\Notifications\INode nodes as
* its children. * its children.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Collection extends DAV\Collection implements ICollection, DAVACL\IACL { class Collection extends DAV\Collection implements ICollection, DAVACL\IACL {
/** /**
* The notification backend * The notification backend
* *
* @var SabreForRainLoop\CalDAV\Backend\NotificationSupport * @var Sabre\CalDAV\Backend\NotificationSupport
*/ */
protected $caldavBackend; protected $caldavBackend;
@ -156,7 +156,7 @@ class Collection extends DAV\Collection implements ICollection, DAVACL\IACL {
* Returns the list of supported privileges for this node. * Returns the list of supported privileges for this node.
* *
* The returned data structure is a list of nested privileges. * The returned data structure is a list of nested privileges.
* See SabreForRainLoop\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple * See Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
* standard structure. * standard structure.
* *
* If null is returned from this method, the default privilege set is used, * If null is returned from this method, the default privilege set is used,

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Notifications; namespace Sabre\CalDAV\Notifications;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* This node represents a list of notifications. * This node represents a list of notifications.
@ -11,12 +11,12 @@ use SabreForRainLoop\DAV;
* interface to allow the Notifications plugin to mark the collection * interface to allow the Notifications plugin to mark the collection
* as a notifications collection. * as a notifications collection.
* *
* This collection should only return SabreForRainLoop\CalDAV\Notifications\INode nodes as * This collection should only return Sabre\CalDAV\Notifications\INode nodes as
* its children. * its children.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface ICollection extends DAV\ICollection { interface ICollection extends DAV\ICollection {

View file

@ -1,26 +1,26 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Notifications; namespace Sabre\CalDAV\Notifications;
/** /**
* This node represents a single notification. * This node represents a single notification.
* *
* The signature is mostly identical to that of SabreForRainLoop\DAV\IFile, but the get() method * The signature is mostly identical to that of Sabre\DAV\IFile, but the get() method
* MUST return an xml document that matches the requirements of the * MUST return an xml document that matches the requirements of the
* 'caldav-notifications.txt' spec. * 'caldav-notifications.txt' spec.
* *
* For a complete example, check out the Notification class, which contains * For a complete example, check out the Notification class, which contains
* some helper functions. * some helper functions.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface INode { interface INode {
/** /**
* This method must return an xml element, using the * This method must return an xml element, using the
* SabreForRainLoop\CalDAV\Notifications\INotificationType classes. * Sabre\CalDAV\Notifications\INotificationType classes.
* *
* @return INotificationType * @return INotificationType
*/ */

View file

@ -1,14 +1,14 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Notifications; namespace Sabre\CalDAV\Notifications;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* This interface reflects a single notification type. * This interface reflects a single notification type.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface INotificationType extends DAV\PropertyInterface { interface INotificationType extends DAV\PropertyInterface {

View file

@ -1,35 +1,35 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Notifications; namespace Sabre\CalDAV\Notifications;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* This node represents a single notification. * This node represents a single notification.
* *
* The signature is mostly identical to that of SabreForRainLoop\DAV\IFile, but the get() method * The signature is mostly identical to that of Sabre\DAV\IFile, but the get() method
* MUST return an xml document that matches the requirements of the * MUST return an xml document that matches the requirements of the
* 'caldav-notifications.txt' spec. * 'caldav-notifications.txt' spec.
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Node extends DAV\File implements INode, DAVACL\IACL { class Node extends DAV\File implements INode, DAVACL\IACL {
/** /**
* The notification backend * The notification backend
* *
* @var SabreForRainLoop\CalDAV\Backend\NotificationSupport * @var Sabre\CalDAV\Backend\NotificationSupport
*/ */
protected $caldavBackend; protected $caldavBackend;
/** /**
* The actual notification * The actual notification
* *
* @var SabreForRainLoop\CalDAV\Notifications\INotificationType * @var Sabre\CalDAV\Notifications\INotificationType
*/ */
protected $notification; protected $notification;
@ -81,7 +81,7 @@ class Node extends DAV\File implements INode, DAVACL\IACL {
/** /**
* This method must return an xml element, using the * This method must return an xml element, using the
* SabreForRainLoop\CalDAV\Notifications\INotificationType classes. * Sabre\CalDAV\Notifications\INotificationType classes.
* *
* @return INotificationType * @return INotificationType
*/ */
@ -175,7 +175,7 @@ class Node extends DAV\File implements INode, DAVACL\IACL {
* Returns the list of supported privileges for this node. * Returns the list of supported privileges for this node.
* *
* The returned data structure is a list of nested privileges. * The returned data structure is a list of nested privileges.
* See SabreForRainLoop\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple * See Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
* standard structure. * standard structure.
* *
* If null is returned from this method, the default privilege set is used, * If null is returned from this method, the default privilege set is used,

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Notifications\Notification; namespace Sabre\CalDAV\Notifications\Notification;
use SabreForRainLoop\CalDAV\SharingPlugin as SharingPlugin; use Sabre\CalDAV\SharingPlugin as SharingPlugin;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
/** /**
* This class represents the cs:invite-notification notification element. * This class represents the cs:invite-notification notification element.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Invite extends DAV\Property implements CalDAV\Notifications\INotificationType { class Invite extends DAV\Property implements CalDAV\Notifications\INotificationType {
@ -103,7 +103,7 @@ class Invite extends DAV\Property implements CalDAV\Notifications\INotificationT
/** /**
* The list of supported components * The list of supported components
* *
* @var SabreForRainLoop\CalDAV\Property\SupportedCalendarComponentSet * @var Sabre\CalDAV\Property\SupportedCalendarComponentSet
*/ */
protected $supportedComponents; protected $supportedComponents;
@ -127,7 +127,7 @@ class Invite extends DAV\Property implements CalDAV\Notifications\INotificationT
* * summary - Description of the share, can be the same as the * * summary - Description of the share, can be the same as the
* calendar, but may also be modified (optional). * calendar, but may also be modified (optional).
* * supportedComponents - An instance of * * supportedComponents - An instance of
* SabreForRainLoop\CalDAV\Property\SupportedCalendarComponentSet. * Sabre\CalDAV\Property\SupportedCalendarComponentSet.
* This allows the client to determine which components * This allows the client to determine which components
* will be supported in the shared calendar. This is * will be supported in the shared calendar. This is
* also optional. * also optional.

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Notifications\Notification; namespace Sabre\CalDAV\Notifications\Notification;
use SabreForRainLoop\CalDAV\SharingPlugin as SharingPlugin; use Sabre\CalDAV\SharingPlugin as SharingPlugin;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
/** /**
* This class represents the cs:invite-reply notification element. * This class represents the cs:invite-reply notification element.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class InviteReply extends DAV\Property implements CalDAV\Notifications\INotificationType { class InviteReply extends DAV\Property implements CalDAV\Notifications\INotificationType {

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Notifications\Notification; namespace Sabre\CalDAV\Notifications\Notification;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
/** /**
* SystemStatus notification * SystemStatus notification
@ -11,9 +11,9 @@ use SabreForRainLoop\CalDAV;
* This notification can be used to indicate to the user that the system is * This notification can be used to indicate to the user that the system is
* down. * down.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class SystemStatus extends DAV\Property implements CalDAV\Notifications\INotificationType { class SystemStatus extends DAV\Property implements CalDAV\Notifications\INotificationType {

View file

@ -1,10 +1,10 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
use SabreForRainLoop\VObject; use Sabre\VObject;
/** /**
* CalDAV plugin * CalDAV plugin
@ -12,9 +12,9 @@ use SabreForRainLoop\VObject;
* This plugin provides functionality added by CalDAV (RFC 4791) * This plugin provides functionality added by CalDAV (RFC 4791)
* It implements new reports, and the MKCALENDAR method. * It implements new reports, and the MKCALENDAR method.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Plugin extends DAV\ServerPlugin { class Plugin extends DAV\ServerPlugin {
@ -171,14 +171,14 @@ class Plugin extends DAV\ServerPlugin {
$server->xmlNamespaces[self::NS_CALDAV] = 'cal'; $server->xmlNamespaces[self::NS_CALDAV] = 'cal';
$server->xmlNamespaces[self::NS_CALENDARSERVER] = 'cs'; $server->xmlNamespaces[self::NS_CALENDARSERVER] = 'cs';
$server->propertyMap['{' . self::NS_CALDAV . '}supported-calendar-component-set'] = 'SabreForRainLoop\\CalDAV\\Property\\SupportedCalendarComponentSet'; $server->propertyMap['{' . self::NS_CALDAV . '}supported-calendar-component-set'] = 'Sabre\\CalDAV\\Property\\SupportedCalendarComponentSet';
$server->propertyMap['{' . self::NS_CALDAV . '}schedule-calendar-transp'] = 'SabreForRainLoop\\CalDAV\\Property\\ScheduleCalendarTransp'; $server->propertyMap['{' . self::NS_CALDAV . '}schedule-calendar-transp'] = 'Sabre\\CalDAV\\Property\\ScheduleCalendarTransp';
$server->resourceTypeMapping['\\SabreForRainLoop\\CalDAV\\ICalendar'] = '{urn:ietf:params:xml:ns:caldav}calendar'; $server->resourceTypeMapping['\\Sabre\\CalDAV\\ICalendar'] = '{urn:ietf:params:xml:ns:caldav}calendar';
$server->resourceTypeMapping['\\SabreForRainLoop\\CalDAV\\Schedule\\IOutbox'] = '{urn:ietf:params:xml:ns:caldav}schedule-outbox'; $server->resourceTypeMapping['\\Sabre\\CalDAV\\Schedule\\IOutbox'] = '{urn:ietf:params:xml:ns:caldav}schedule-outbox';
$server->resourceTypeMapping['\\SabreForRainLoop\\CalDAV\\Principal\\IProxyRead'] = '{http://calendarserver.org/ns/}calendar-proxy-read'; $server->resourceTypeMapping['\\Sabre\\CalDAV\\Principal\\IProxyRead'] = '{http://calendarserver.org/ns/}calendar-proxy-read';
$server->resourceTypeMapping['\\SabreForRainLoop\\CalDAV\\Principal\\IProxyWrite'] = '{http://calendarserver.org/ns/}calendar-proxy-write'; $server->resourceTypeMapping['\\Sabre\\CalDAV\\Principal\\IProxyWrite'] = '{http://calendarserver.org/ns/}calendar-proxy-write';
$server->resourceTypeMapping['\\SabreForRainLoop\\CalDAV\\Notifications\\ICollection'] = '{' . self::NS_CALENDARSERVER . '}notification'; $server->resourceTypeMapping['\\Sabre\\CalDAV\\Notifications\\ICollection'] = '{' . self::NS_CALENDARSERVER . '}notification';
array_push($server->protectedProperties, array_push($server->protectedProperties,
@ -286,7 +286,7 @@ class Plugin extends DAV\ServerPlugin {
// for clients matching iCal in the user agent // for clients matching iCal in the user agent
//$ua = $this->server->httpRequest->getHeader('User-Agent'); //$ua = $this->server->httpRequest->getHeader('User-Agent');
//if (strpos($ua,'iCal/')!==false) { //if (strpos($ua,'iCal/')!==false) {
// throw new \SabreForRainLoop\DAV\Exception\Forbidden('iCal has major bugs in it\'s RFC3744 support. Therefore we are left with no other choice but disabling this feature.'); // throw new \Sabre\DAV\Exception\Forbidden('iCal has major bugs in it\'s RFC3744 support. Therefore we are left with no other choice but disabling this feature.');
//} //}
$body = $this->server->httpRequest->getBody(true); $body = $this->server->httpRequest->getBody(true);

View file

@ -1,7 +1,7 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Principal; namespace Sabre\CalDAV\Principal;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* Principal collection * Principal collection
@ -11,9 +11,9 @@ use SabreForRainLoop\DAVACL;
* calendar-proxy-write sub-principals, as defined by the caldav-proxy * calendar-proxy-write sub-principals, as defined by the caldav-proxy
* specification. * specification.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Collection extends DAVACL\AbstractPrincipalCollection { class Collection extends DAVACL\AbstractPrincipalCollection {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Principal; namespace Sabre\CalDAV\Principal;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* ProxyRead principal interface * ProxyRead principal interface
@ -10,9 +10,9 @@ use SabreForRainLoop\DAVACL;
* Any principal node implementing this interface will be picked up as a 'proxy * Any principal node implementing this interface will be picked up as a 'proxy
* principal group'. * principal group'.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface IProxyRead extends DAVACL\IPrincipal { interface IProxyRead extends DAVACL\IPrincipal {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Principal; namespace Sabre\CalDAV\Principal;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* ProxyWrite principal interface * ProxyWrite principal interface
@ -10,9 +10,9 @@ use SabreForRainLoop\DAVACL;
* Any principal node implementing this interface will be picked up as a 'proxy * Any principal node implementing this interface will be picked up as a 'proxy
* principal group'. * principal group'.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface IProxyWrite extends DAVACL\IPrincipal { interface IProxyWrite extends DAVACL\IPrincipal {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Principal; namespace Sabre\CalDAV\Principal;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* ProxyRead principal * ProxyRead principal
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
* This is needed to implement 'Calendar delegation' support. This class is * This is needed to implement 'Calendar delegation' support. This class is
* instantiated by User. * instantiated by User.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class ProxyRead implements IProxyRead { class ProxyRead implements IProxyRead {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Principal; namespace Sabre\CalDAV\Principal;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* ProxyWrite principal * ProxyWrite principal
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
* This is needed to implement 'Calendar delegation' support. This class is * This is needed to implement 'Calendar delegation' support. This class is
* instantiated by User. * instantiated by User.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class ProxyWrite implements IProxyWrite { class ProxyWrite implements IProxyWrite {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Principal; namespace Sabre\CalDAV\Principal;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* CalDAV principal * CalDAV principal
@ -11,9 +11,9 @@ use SabreForRainLoop\DAVACL;
* collection and returns the caldav-proxy-read and caldav-proxy-write child * collection and returns the caldav-proxy-read and caldav-proxy-write child
* principals. * principals.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class User extends DAVACL\Principal implements DAV\ICollection { class User extends DAVACL\Principal implements DAV\ICollection {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Property; namespace Sabre\CalDAV\Property;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* AllowedSharingModes * AllowedSharingModes
@ -16,9 +16,9 @@ use SabreForRainLoop\DAV;
* such as VEVENT, VTODO * such as VEVENT, VTODO
* *
* @see https://trac.calendarserver.org/browser/CalendarServer/trunk/doc/Extensions/caldav-sharing-02.txt * @see https://trac.calendarserver.org/browser/CalendarServer/trunk/doc/Extensions/caldav-sharing-02.txt
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class AllowedSharingModes extends DAV\Property { class AllowedSharingModes extends DAV\Property {

View file

@ -1,10 +1,10 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Property; namespace Sabre\CalDAV\Property;
use SabreForRainLoop\CalDAV\SharingPlugin as SharingPlugin; use Sabre\CalDAV\SharingPlugin as SharingPlugin;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
/** /**
* Invite property * Invite property
@ -14,9 +14,9 @@ use SabreForRainLoop\CalDAV;
* namespace. * namespace.
* *
* @see https://trac.calendarserver.org/browser/CalendarServer/trunk/doc/Extensions/caldav-sharing-02.txt * @see https://trac.calendarserver.org/browser/CalendarServer/trunk/doc/Extensions/caldav-sharing-02.txt
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Invite extends DAV\Property { class Invite extends DAV\Property {

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Property; namespace Sabre\CalDAV\Property;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
/** /**
* schedule-calendar-transp property. * schedule-calendar-transp property.
@ -15,9 +15,9 @@ use SabreForRainLoop\CalDAV;
* means that this calendar will not be taken into consideration when a * means that this calendar will not be taken into consideration when a
* different user queries for free-busy information. If it's 'opaque', it will. * different user queries for free-busy information. If it's 'opaque', it will.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class ScheduleCalendarTransp extends DAV\Property { class ScheduleCalendarTransp extends DAV\Property {

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Property; namespace Sabre\CalDAV\Property;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
/** /**
* Supported component set property * Supported component set property
@ -12,9 +12,9 @@ use SabreForRainLoop\CalDAV;
* property in the CalDAV namespace. It simply requires an array of components, * property in the CalDAV namespace. It simply requires an array of components,
* such as VEVENT, VTODO * such as VEVENT, VTODO
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class SupportedCalendarComponentSet extends DAV\Property { class SupportedCalendarComponentSet extends DAV\Property {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Property; namespace Sabre\CalDAV\Property;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV\Plugin; use Sabre\CalDAV\Plugin;
/** /**
* Supported-calendar-data property * Supported-calendar-data property
@ -11,9 +11,9 @@ use SabreForRainLoop\CalDAV\Plugin;
* in the CalDAV namespace. SabreDAV only has support for text/calendar;2.0 * in the CalDAV namespace. SabreDAV only has support for text/calendar;2.0
* so the value is currently hardcoded. * so the value is currently hardcoded.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class SupportedCalendarData extends DAV\Property { class SupportedCalendarData extends DAV\Property {

View file

@ -1,7 +1,7 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Property; namespace Sabre\CalDAV\Property;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* supported-collation-set property * supported-collation-set property
@ -9,9 +9,9 @@ use SabreForRainLoop\DAV;
* This property is a representation of the supported-collation-set property * This property is a representation of the supported-collation-set property
* in the CalDAV namespace. * in the CalDAV namespace.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class SupportedCollationSet extends DAV\Property { class SupportedCollationSet extends DAV\Property {

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Schedule; namespace Sabre\CalDAV\Schedule;
use SabreForRainLoop\VObject; use Sabre\VObject;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* iMIP handler. * iMIP handler.
@ -15,9 +15,9 @@ use SabreForRainLoop\DAV;
* If you want to customize the email that gets sent out, you can do so by * If you want to customize the email that gets sent out, you can do so by
* extending this class and overriding the sendMessage method. * extending this class and overriding the sendMessage method.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class IMip { class IMip {

View file

@ -0,0 +1,16 @@
<?php
namespace Sabre\CalDAV\Schedule;
/**
* Implement this interface to have a node be recognized as a CalDAV scheduling
* outbox.
*
* @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
interface IOutbox extends \Sabre\DAV\ICollection, \Sabre\DAVACL\IACL {
}

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\CalDAV\Schedule; namespace Sabre\CalDAV\Schedule;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CalDAV; use Sabre\CalDAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* The CalDAV scheduling outbox * The CalDAV scheduling outbox
@ -12,9 +12,9 @@ use SabreForRainLoop\DAVACL;
* free-busy requests. This functionality is completely handled by the * free-busy requests. This functionality is completely handled by the
* Scheduling plugin, so this object is actually mostly static. * Scheduling plugin, so this object is actually mostly static.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Outbox extends DAV\Collection implements IOutbox { class Outbox extends DAV\Collection implements IOutbox {
@ -52,7 +52,7 @@ class Outbox extends DAV\Collection implements IOutbox {
/** /**
* Returns an array with all the child nodes * Returns an array with all the child nodes
* *
* @return \SabreForRainLoop\DAV\INode[] * @return \Sabre\DAV\INode[]
*/ */
public function getChildren() { public function getChildren() {
@ -138,7 +138,7 @@ class Outbox extends DAV\Collection implements IOutbox {
* Returns the list of supported privileges for this node. * Returns the list of supported privileges for this node.
* *
* The returned data structure is a list of nested privileges. * The returned data structure is a list of nested privileges.
* See SabreForRainLoop\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple * See Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
* standard structure. * standard structure.
* *
* If null is returned from this method, the default privilege set is used, * If null is returned from this method, the default privilege set is used,

View file

@ -1,14 +1,14 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
/** /**
* This object represents a CalDAV calendar that can be shared with other * This object represents a CalDAV calendar that can be shared with other
* users. * users.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class ShareableCalendar extends Calendar implements IShareableCalendar { class ShareableCalendar extends Calendar implements IShareableCalendar {
@ -42,7 +42,7 @@ class ShareableCalendar extends Calendar implements IShareableCalendar {
* Every element in this array should have the following properties: * Every element in this array should have the following properties:
* * href - Often a mailto: address * * href - Often a mailto: address
* * commonName - Optional, for example a first + last name * * commonName - Optional, for example a first + last name
* * status - See the SabreForRainLoop\CalDAV\SharingPlugin::STATUS_ constants. * * status - See the Sabre\CalDAV\SharingPlugin::STATUS_ constants.
* * readOnly - boolean * * readOnly - boolean
* * summary - Optional, a description for the share * * summary - Optional, a description for the share
* *

View file

@ -1,15 +1,15 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* This object represents a CalDAV calendar that is shared by a different user. * This object represents a CalDAV calendar that is shared by a different user.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class SharedCalendar extends Calendar implements ISharedCalendar { class SharedCalendar extends Calendar implements ISharedCalendar {
@ -101,7 +101,7 @@ class SharedCalendar extends Calendar implements ISharedCalendar {
* Every element in this array should have the following properties: * Every element in this array should have the following properties:
* * href - Often a mailto: address * * href - Often a mailto: address
* * commonName - Optional, for example a first + last name * * commonName - Optional, for example a first + last name
* * status - See the SabreForRainLoop\CalDAV\SharingPlugin::STATUS_ constants. * * status - See the Sabre\CalDAV\SharingPlugin::STATUS_ constants.
* * readOnly - boolean * * readOnly - boolean
* * summary - Optional, a description for the share * * summary - Optional, a description for the share
* *

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* This plugin implements support for caldav sharing. * This plugin implements support for caldav sharing.
@ -11,14 +11,14 @@ use SabreForRainLoop\DAV;
* http://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk/doc/Extensions/caldav-sharing.txt * http://svn.calendarserver.org/repository/calendarserver/CalendarServer/trunk/doc/Extensions/caldav-sharing.txt
* *
* See: * See:
* SabreForRainLoop\CalDAV\Backend\SharingSupport for all the documentation. * Sabre\CalDAV\Backend\SharingSupport for all the documentation.
* *
* Note: This feature is experimental, and may change in between different * Note: This feature is experimental, and may change in between different
* SabreDAV versions. * SabreDAV versions.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class SharingPlugin extends DAV\ServerPlugin { class SharingPlugin extends DAV\ServerPlugin {
@ -34,7 +34,7 @@ class SharingPlugin extends DAV\ServerPlugin {
/** /**
* Reference to SabreDAV server object. * Reference to SabreDAV server object.
* *
* @var SabreForRainLoop\DAV\Server * @var Sabre\DAV\Server
*/ */
protected $server; protected $server;
@ -56,7 +56,7 @@ class SharingPlugin extends DAV\ServerPlugin {
* Returns a plugin name. * Returns a plugin name.
* *
* Using this name other plugins will be able to access other plugins * Using this name other plugins will be able to access other plugins
* using SabreForRainLoop\DAV\Server::getPlugin * using Sabre\DAV\Server::getPlugin
* *
* @return string * @return string
*/ */
@ -69,7 +69,7 @@ class SharingPlugin extends DAV\ServerPlugin {
/** /**
* This initializes the plugin. * This initializes the plugin.
* *
* This function is called by SabreForRainLoop\DAV\Server, after * This function is called by Sabre\DAV\Server, after
* addPlugin is called. * addPlugin is called.
* *
* This method should set up the required event subscriptions. * This method should set up the required event subscriptions.
@ -80,7 +80,7 @@ class SharingPlugin extends DAV\ServerPlugin {
public function initialize(DAV\Server $server) { public function initialize(DAV\Server $server) {
$this->server = $server; $this->server = $server;
$server->resourceTypeMapping['SabreForRainLoop\\CalDAV\\ISharedCalendar'] = '{' . Plugin::NS_CALENDARSERVER . '}shared'; $server->resourceTypeMapping['Sabre\\CalDAV\\ISharedCalendar'] = '{' . Plugin::NS_CALENDARSERVER . '}shared';
array_push( array_push(
$this->server->protectedProperties, $this->server->protectedProperties,

View file

@ -1,23 +1,23 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* The UserCalenders class contains all calendars associated to one user * The UserCalenders class contains all calendars associated to one user
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class UserCalendars implements DAV\IExtendedCollection, DAVACL\IACL { class UserCalendars implements DAV\IExtendedCollection, DAVACL\IACL {
/** /**
* CalDAV backend * CalDAV backend
* *
* @var SabreForRainLoop\CalDAV\Backend\BackendInterface * @var Sabre\CalDAV\Backend\BackendInterface
*/ */
protected $caldavBackend; protected $caldavBackend;
@ -302,7 +302,7 @@ class UserCalendars implements DAV\IExtendedCollection, DAVACL\IACL {
* Returns the list of supported privileges for this node. * Returns the list of supported privileges for this node.
* *
* The returned data structure is a list of nested privileges. * The returned data structure is a list of nested privileges.
* See SabreForRainLoop\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple * See Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
* standard structure. * standard structure.
* *
* If null is returned from this method, the default privilege set is used, * If null is returned from this method, the default privilege set is used,

View file

@ -1,13 +1,13 @@
<?php <?php
namespace SabreForRainLoop\CalDAV; namespace Sabre\CalDAV;
/** /**
* This class contains the SabreForRainLoop\CalDAV version constants. * This class contains the Sabre\CalDAV version constants.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Version { class Version {

View file

@ -1,18 +1,18 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* The AddressBook class represents a CardDAV addressbook, owned by a specific user * The AddressBook class represents a CardDAV addressbook, owned by a specific user
* *
* The AddressBook can contain multiple vcards * The AddressBook can contain multiple vcards
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class AddressBook extends DAV\Collection implements IAddressBook, DAV\IProperties, DAVACL\IACL { class AddressBook extends DAV\Collection implements IAddressBook, DAV\IProperties, DAVACL\IACL {
@ -298,7 +298,7 @@ class AddressBook extends DAV\Collection implements IAddressBook, DAV\IPropertie
* Returns the list of supported privileges for this node. * Returns the list of supported privileges for this node.
* *
* The returned data structure is a list of nested privileges. * The returned data structure is a list of nested privileges.
* See SabreForRainLoop\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple * See Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
* standard structure. * standard structure.
* *
* If null is returned from this method, the default privilege set is used, * If null is returned from this method, the default privilege set is used,

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* Parses the addressbook-query report request body. * Parses the addressbook-query report request body.
@ -10,9 +10,9 @@ use SabreForRainLoop\DAV;
* Whoever designed this format, and the CalDAV equivalent even more so, * Whoever designed this format, and the CalDAV equivalent even more so,
* has no feel for design. * has no feel for design.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class AddressBookQueryParser { class AddressBookQueryParser {

View file

@ -1,24 +1,24 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* AddressBook rootnode * AddressBook rootnode
* *
* This object lists a collection of users, which can contain addressbooks. * This object lists a collection of users, which can contain addressbooks.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class AddressBookRoot extends DAVACL\AbstractPrincipalCollection { class AddressBookRoot extends DAVACL\AbstractPrincipalCollection {
/** /**
* Principal Backend * Principal Backend
* *
* @var SabreForRainLoop\DAVACL\PrincipalBackend\BackendInteface * @var Sabre\DAVACL\PrincipalBackend\BackendInteface
*/ */
protected $principalBackend; protected $principalBackend;
@ -69,7 +69,7 @@ class AddressBookRoot extends DAVACL\AbstractPrincipalCollection {
* supplied by the authentication backend. * supplied by the authentication backend.
* *
* @param array $principal * @param array $principal
* @return \SabreForRainLoop\DAV\INode * @return \Sabre\DAV\INode
*/ */
public function getChildForPrincipal(array $principal) { public function getChildForPrincipal(array $principal) {

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\CardDAV\Backend; namespace Sabre\CardDAV\Backend;
/** /**
* CardDAV abstract Backend * CardDAV abstract Backend
@ -9,9 +9,9 @@ namespace SabreForRainLoop\CardDAV\Backend;
* *
* This class doesn't do much, but it was added for consistency. * This class doesn't do much, but it was added for consistency.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
abstract class AbstractBackend implements BackendInterface { abstract class AbstractBackend implements BackendInterface {

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\CardDAV\Backend; namespace Sabre\CardDAV\Backend;
/** /**
* CardDAV Backend Interface * CardDAV Backend Interface
@ -11,9 +11,9 @@ namespace SabreForRainLoop\CardDAV\Backend;
* class. The value of the addressBookId is completely up to you, it can be any * class. The value of the addressBookId is completely up to you, it can be any
* arbitrary value you can use as an unique identifier. * arbitrary value you can use as an unique identifier.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface BackendInterface { interface BackendInterface {
@ -39,12 +39,12 @@ interface BackendInterface {
/** /**
* Updates an addressbook's properties * Updates an addressbook's properties
* *
* See SabreForRainLoop\DAV\IProperties for a description of the mutations array, as * See Sabre\DAV\IProperties for a description of the mutations array, as
* well as the return value. * well as the return value.
* *
* @param mixed $addressBookId * @param mixed $addressBookId
* @param array $mutations * @param array $mutations
* @see SabreForRainLoop\DAV\IProperties::updateProperties * @see Sabre\DAV\IProperties::updateProperties
* @return bool|array * @return bool|array
*/ */
public function updateAddressBook($addressBookId, array $mutations); public function updateAddressBook($addressBookId, array $mutations);

View file

@ -1,18 +1,18 @@
<?php <?php
namespace SabreForRainLoop\CardDAV\Backend; namespace Sabre\CardDAV\Backend;
use SabreForRainLoop\CardDAV; use Sabre\CardDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* PDO CardDAV backend * PDO CardDAV backend
* *
* This CardDAV backend uses PDO to store addressbooks * This CardDAV backend uses PDO to store addressbooks
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class PDO extends AbstractBackend { class PDO extends AbstractBackend {
@ -84,12 +84,12 @@ class PDO extends AbstractBackend {
/** /**
* Updates an addressbook's properties * Updates an addressbook's properties
* *
* See SabreForRainLoop\DAV\IProperties for a description of the mutations array, as * See Sabre\DAV\IProperties for a description of the mutations array, as
* well as the return value. * well as the return value.
* *
* @param mixed $addressBookId * @param mixed $addressBookId
* @param array $mutations * @param array $mutations
* @see SabreForRainLoop\DAV\IProperties::updateProperties * @see Sabre\DAV\IProperties::updateProperties
* @return bool|array * @return bool|array
*/ */
public function updateAddressBook($addressBookId, array $mutations) { public function updateAddressBook($addressBookId, array $mutations) {

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* The Card object represents a single Card from an addressbook * The Card object represents a single Card from an addressbook
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Card extends DAV\File implements ICard, DAVACL\IACL { class Card extends DAV\File implements ICard, DAVACL\IACL {
@ -242,7 +242,7 @@ class Card extends DAV\File implements ICard, DAVACL\IACL {
* Returns the list of supported privileges for this node. * Returns the list of supported privileges for this node.
* *
* The returned data structure is a list of nested privileges. * The returned data structure is a list of nested privileges.
* See SabreForRainLoop\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple * See Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
* standard structure. * standard structure.
* *
* If null is returned from this method, the default privilege set is used, * If null is returned from this method, the default privilege set is used,

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* AddressBook interface * AddressBook interface
* *
* Implement this interface to allow a node to be recognized as an addressbook. * Implement this interface to allow a node to be recognized as an addressbook.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface IAddressBook extends DAV\ICollection { interface IAddressBook extends DAV\ICollection {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* Card interface * Card interface
@ -10,9 +10,9 @@ use SabreForRainLoop\DAV;
* Extend the ICard interface to allow your custom nodes to be picked up as * Extend the ICard interface to allow your custom nodes to be picked up as
* 'Cards'. * 'Cards'.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface ICard extends DAV\IFile { interface ICard extends DAV\IFile {

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
/** /**
* IDirectory interface * IDirectory interface
@ -11,9 +11,9 @@ namespace SabreForRainLoop\CardDAV;
* A full description can be found in the IETF draft: * A full description can be found in the IETF draft:
* - draft-daboo-carddav-directory-gateway * - draft-daboo-carddav-directory-gateway
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface IDirectory extends IAddressBook { interface IDirectory extends IAddressBook {

View file

@ -1,19 +1,19 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
use SabreForRainLoop\VObject; use Sabre\VObject;
/** /**
* CardDAV plugin * CardDAV plugin
* *
* The CardDAV plugin adds CardDAV functionality to the WebDAV server * The CardDAV plugin adds CardDAV functionality to the WebDAV server
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Plugin extends DAV\ServerPlugin { class Plugin extends DAV\ServerPlugin {
@ -38,7 +38,7 @@ class Plugin extends DAV\ServerPlugin {
/** /**
* Server class * Server class
* *
* @var SabreForRainLoop\DAV\Server * @var Sabre\DAV\Server
*/ */
protected $server; protected $server;
@ -64,8 +64,8 @@ class Plugin extends DAV\ServerPlugin {
$server->xmlNamespaces[self::NS_CARDDAV] = 'card'; $server->xmlNamespaces[self::NS_CARDDAV] = 'card';
/* Mapping Interfaces to {DAV:}resourcetype values */ /* Mapping Interfaces to {DAV:}resourcetype values */
$server->resourceTypeMapping['SabreForRainLoop\\CardDAV\\IAddressBook'] = '{' . self::NS_CARDDAV . '}addressbook'; $server->resourceTypeMapping['Sabre\\CardDAV\\IAddressBook'] = '{' . self::NS_CARDDAV . '}addressbook';
$server->resourceTypeMapping['SabreForRainLoop\\CardDAV\\IDirectory'] = '{' . self::NS_CARDDAV . '}directory'; $server->resourceTypeMapping['Sabre\\CardDAV\\IDirectory'] = '{' . self::NS_CARDDAV . '}directory';
/* Adding properties that may never be changed */ /* Adding properties that may never be changed */
$server->protectedProperties[] = '{' . self::NS_CARDDAV . '}supported-address-data'; $server->protectedProperties[] = '{' . self::NS_CARDDAV . '}supported-address-data';
@ -73,7 +73,7 @@ class Plugin extends DAV\ServerPlugin {
$server->protectedProperties[] = '{' . self::NS_CARDDAV . '}addressbook-home-set'; $server->protectedProperties[] = '{' . self::NS_CARDDAV . '}addressbook-home-set';
$server->protectedProperties[] = '{' . self::NS_CARDDAV . '}supported-collation-set'; $server->protectedProperties[] = '{' . self::NS_CARDDAV . '}supported-collation-set';
$server->propertyMap['{http://calendarserver.org/ns/}me-card'] = 'SabreForRainLoop\\DAV\\Property\\Href'; $server->propertyMap['{http://calendarserver.org/ns/}me-card'] = 'Sabre\\DAV\\Property\\Href';
$this->server = $server; $this->server = $server;
@ -654,7 +654,7 @@ class Plugin extends DAV\ServerPlugin {
/** /**
* This method is used to generate HTML output for the * This method is used to generate HTML output for the
* SabreForRainLoop\DAV\Browser\Plugin. This allows us to generate an interface users * Sabre\DAV\Browser\Plugin. This allows us to generate an interface users
* can use to create new calendars. * can use to create new calendars.
* *
* @param DAV\INode $node * @param DAV\INode $node

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\CardDAV\Property; namespace Sabre\CardDAV\Property;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\CardDAV; use Sabre\CardDAV;
/** /**
* Supported-address-data property * Supported-address-data property
@ -11,9 +11,9 @@ use SabreForRainLoop\CardDAV;
* This property is a representation of the supported-address-data property * This property is a representation of the supported-address-data property
* in the CardDAV namespace. * in the CardDAV namespace.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class SupportedAddressData extends DAV\Property { class SupportedAddressData extends DAV\Property {

View file

@ -1,18 +1,18 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\DAVACL; use Sabre\DAVACL;
/** /**
* UserAddressBooks class * UserAddressBooks class
* *
* The UserAddressBooks collection contains a list of addressbooks associated with a user * The UserAddressBooks collection contains a list of addressbooks associated with a user
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class UserAddressBooks extends DAV\Collection implements DAV\IExtendedCollection, DAVACL\IACL { class UserAddressBooks extends DAV\Collection implements DAV\IExtendedCollection, DAVACL\IACL {
@ -243,7 +243,7 @@ class UserAddressBooks extends DAV\Collection implements DAV\IExtendedCollection
* Returns the list of supported privileges for this node. * Returns the list of supported privileges for this node.
* *
* The returned data structure is a list of nested privileges. * The returned data structure is a list of nested privileges.
* See SabreForRainLoop\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple * See Sabre\DAVACL\Plugin::getDefaultSupportedPrivilegeSet for a simple
* standard structure. * standard structure.
* *
* If null is returned from this method, the default privilege set is used, * If null is returned from this method, the default privilege set is used,

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\VObject; use Sabre\VObject;
/** /**
* VCF Exporter * VCF Exporter
@ -12,17 +12,17 @@ use SabreForRainLoop\VObject;
* This is useful for clients that don't support CardDAV yet. They often do * This is useful for clients that don't support CardDAV yet. They often do
* support vcf files. * support vcf files.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @author Thomas Tanghus (http://tanghus.net/) * @author Thomas Tanghus (http://tanghus.net/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class VCFExportPlugin extends DAV\ServerPlugin { class VCFExportPlugin extends DAV\ServerPlugin {
/** /**
* Reference to Server class * Reference to Server class
* *
* @var SabreForRainLoop\DAV\Server * @var Sabre\DAV\Server
*/ */
protected $server; protected $server;

View file

@ -1,15 +1,15 @@
<?php <?php
namespace SabreForRainLoop\CardDAV; namespace Sabre\CardDAV;
/** /**
* Version Class * Version Class
* *
* This class contains the SabreForRainLoop\CardDAV version information * This class contains the Sabre\CardDAV version information
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Version { class Version {

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\DAV\Auth\Backend; namespace Sabre\DAV\Auth\Backend;
use SabreForRainLoop\DAV; use Sabre\DAV;
use SabreForRainLoop\HTTP; use Sabre\HTTP;
/** /**
* HTTP Basic authentication backend class * HTTP Basic authentication backend class
@ -12,10 +12,10 @@ use SabreForRainLoop\HTTP;
* Most of the digest logic is handled, implementors just need to worry about * Most of the digest logic is handled, implementors just need to worry about
* the validateUserPass method. * the validateUserPass method.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author James David Low (http://jameslow.com/) * @author James David Low (http://jameslow.com/)
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
abstract class AbstractBasic implements BackendInterface { abstract class AbstractBasic implements BackendInterface {

View file

@ -1,9 +1,9 @@
<?php <?php
namespace SabreForRainLoop\DAV\Auth\Backend; namespace Sabre\DAV\Auth\Backend;
use SabreForRainLoop\HTTP; use Sabre\HTTP;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* HTTP Digest authentication backend class * HTTP Digest authentication backend class
@ -12,9 +12,9 @@ use SabreForRainLoop\DAV;
* Most of the digest logic is handled, implementors just need to worry about * Most of the digest logic is handled, implementors just need to worry about
* the getDigestHash method * the getDigestHash method
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
abstract class AbstractDigest implements BackendInterface { abstract class AbstractDigest implements BackendInterface {

View file

@ -1,7 +1,7 @@
<?php <?php
namespace SabreForRainLoop\DAV\Auth\Backend; namespace Sabre\DAV\Auth\Backend;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* Apache authenticator * Apache authenticator
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
* *
* Make sure apache is properly configured for this to work. * Make sure apache is properly configured for this to work.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Apache implements BackendInterface { class Apache implements BackendInterface {

View file

@ -1,13 +1,13 @@
<?php <?php
namespace SabreForRainLoop\DAV\Auth\Backend; namespace Sabre\DAV\Auth\Backend;
/** /**
* This is the base class for any authentication object. * This is the base class for any authentication object.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
interface BackendInterface { interface BackendInterface {
@ -17,11 +17,11 @@ interface BackendInterface {
* If authentication is successful, true must be returned. * If authentication is successful, true must be returned.
* If authentication fails, an exception must be thrown. * If authentication fails, an exception must be thrown.
* *
* @param \SabreForRainLoop\DAV\Server $server * @param \Sabre\DAV\Server $server
* @param string $realm * @param string $realm
* @return bool * @return bool
*/ */
function authenticate(\SabreForRainLoop\DAV\Server $server,$realm); function authenticate(\Sabre\DAV\Server $server,$realm);
/** /**
* Returns information about the currently logged in username. * Returns information about the currently logged in username.

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\DAV\Auth\Backend; namespace Sabre\DAV\Auth\Backend;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* This is an authentication backend that uses a file to manage passwords. * This is an authentication backend that uses a file to manage passwords.
* *
* The backend file must conform to Apache's htdigest format * The backend file must conform to Apache's htdigest format
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class File extends AbstractDigest { class File extends AbstractDigest {

View file

@ -1,15 +1,15 @@
<?php <?php
namespace SabreForRainLoop\DAV\Auth\Backend; namespace Sabre\DAV\Auth\Backend;
/** /**
* This is an authentication backend that uses a file to manage passwords. * This is an authentication backend that uses a file to manage passwords.
* *
* The backend file must conform to Apache's htdigest format * The backend file must conform to Apache's htdigest format
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class PDO extends AbstractDigest { class PDO extends AbstractDigest {

View file

@ -1,7 +1,7 @@
<?php <?php
namespace SabreForRainLoop\DAV\Auth; namespace Sabre\DAV\Auth;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* This plugin provides Authentication for a WebDAV server. * This plugin provides Authentication for a WebDAV server.
@ -12,16 +12,16 @@ use SabreForRainLoop\DAV;
* * {DAV:}current-user-principal property from RFC5397 * * {DAV:}current-user-principal property from RFC5397
* * {DAV:}principal-collection-set property from RFC3744 * * {DAV:}principal-collection-set property from RFC3744
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Plugin extends DAV\ServerPlugin { class Plugin extends DAV\ServerPlugin {
/** /**
* Reference to main server object * Reference to main server object
* *
* @var SabreForRainLoop\DAV\Server * @var Sabre\DAV\Server
*/ */
protected $server; protected $server;
@ -100,7 +100,7 @@ class Plugin extends DAV\ServerPlugin {
* *
* @param string $method * @param string $method
* @param string $uri * @param string $uri
* @throws SabreForRainLoop\DAV\Exception\NotAuthenticated * @throws Sabre\DAV\Exception\NotAuthenticated
* @return bool * @return bool
*/ */
public function beforeMethod($method, $uri) { public function beforeMethod($method, $uri) {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\DAV\Browser; namespace Sabre\DAV\Browser;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* GuessContentType plugin * GuessContentType plugin
@ -15,9 +15,9 @@ use SabreForRainLoop\DAV;
* so this extension does what the rest of the world does, and guesses it based * so this extension does what the rest of the world does, and guesses it based
* on the file extension. * on the file extension.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class GuessContentType extends DAV\ServerPlugin { class GuessContentType extends DAV\ServerPlugin {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\DAV\Browser; namespace Sabre\DAV\Browser;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* This is a simple plugin that will map any GET request for non-files to * This is a simple plugin that will map any GET request for non-files to
@ -10,16 +10,16 @@ use SabreForRainLoop\DAV;
* *
* This should allow easy debugging of PROPFIND * This should allow easy debugging of PROPFIND
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class MapGetToPropFind extends DAV\ServerPlugin { class MapGetToPropFind extends DAV\ServerPlugin {
/** /**
* reference to server class * reference to server class
* *
* @var SabreForRainLoop\DAV\Server * @var Sabre\DAV\Server
*/ */
protected $server; protected $server;

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\DAV\Browser; namespace Sabre\DAV\Browser;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* Browser Plugin * Browser Plugin
@ -13,9 +13,9 @@ use SabreForRainLoop\DAV;
* The class intercepts GET requests to collection resources and generates a simple * The class intercepts GET requests to collection resources and generates a simple
* html index. * html index.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Plugin extends DAV\ServerPlugin { class Plugin extends DAV\ServerPlugin {
@ -31,12 +31,12 @@ class Plugin extends DAV\ServerPlugin {
* @var array * @var array
*/ */
public $iconMap = array( public $iconMap = array(
'SabreForRainLoop\\DAV\\IFile' => 'icons/file', 'Sabre\\DAV\\IFile' => 'icons/file',
'SabreForRainLoop\\DAV\\ICollection' => 'icons/collection', 'Sabre\\DAV\\ICollection' => 'icons/collection',
'SabreForRainLoop\\DAVACL\\IPrincipal' => 'icons/principal', 'Sabre\\DAVACL\\IPrincipal' => 'icons/principal',
'SabreForRainLoop\\CalDAV\\ICalendar' => 'icons/calendar', 'Sabre\\CalDAV\\ICalendar' => 'icons/calendar',
'SabreForRainLoop\\CardDAV\\IAddressBook' => 'icons/addressbook', 'Sabre\\CardDAV\\IAddressBook' => 'icons/addressbook',
'SabreForRainLoop\\CardDAV\\ICard' => 'icons/card', 'Sabre\\CardDAV\\ICard' => 'icons/card',
); );
/** /**
@ -49,7 +49,7 @@ class Plugin extends DAV\ServerPlugin {
/** /**
* reference to server class * reference to server class
* *
* @var SabreForRainLoop\DAV\Server * @var Sabre\DAV\Server
*/ */
protected $server; protected $server;
@ -374,7 +374,7 @@ class Plugin extends DAV\ServerPlugin {
$html.=$output; $html.=$output;
$html.= "</table> $html.= "</table>
<address>Generated by SabreDAV " . $version . " (c)2007-2013 <a href=\"http://code.google.com/p/sabredav/\">http://code.google.com/p/sabredav/</a></address> <address>Generated by SabreDAV " . $version . " (c)2007-2015 <a href=\"http://sabre.io/\">http://sabre.io/</a></address>
</body> </body>
</html>"; </html>";
@ -400,7 +400,7 @@ class Plugin extends DAV\ServerPlugin {
// We also know fairly certain that if an object is a non-extended // We also know fairly certain that if an object is a non-extended
// SimpleCollection, we won't need to show the panel either. // SimpleCollection, we won't need to show the panel either.
if (get_class($node)==='SabreForRainLoop\\DAV\\SimpleCollection') if (get_class($node)==='Sabre\\DAV\\SimpleCollection')
return; return;
$output.= '<tr><td colspan="2"><form method="post" action=""> $output.= '<tr><td colspan="2"><form method="post" action="">

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\DAV; namespace Sabre\DAV;
/** /**
* SabreDAV DAV client * SabreDAV DAV client
@ -10,9 +10,9 @@ namespace SabreForRainLoop\DAV;
* *
* NOTE: This class is experimental, it's api will likely change in the future. * NOTE: This class is experimental, it's api will likely change in the future.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Client { class Client {
@ -24,7 +24,7 @@ class Client {
* respective class. * respective class.
* *
* The {DAV:}resourcetype property is automatically added. This maps to * The {DAV:}resourcetype property is automatically added. This maps to
* SabreForRainLoop\DAV\Property\ResourceType * Sabre\DAV\Property\ResourceType
* *
* @var array * @var array
*/ */
@ -103,7 +103,7 @@ class Client {
$this->authType = self::AUTH_BASIC | self::AUTH_DIGEST; $this->authType = self::AUTH_BASIC | self::AUTH_DIGEST;
} }
$this->propertyMap['{DAV:}resourcetype'] = 'SabreForRainLoop\\DAV\\Property\\ResourceType'; $this->propertyMap['{DAV:}resourcetype'] = 'Sabre\\DAV\\Property\\ResourceType';
} }
@ -149,7 +149,7 @@ class Client {
* @param int $depth * @param int $depth
* @return array * @return array
*/ */
public function propFind($url, array $properties, $depth = 0) : array { public function propFind($url, array $properties, $depth = 0) {
$body = '<?xml version="1.0"?>' . "\n"; $body = '<?xml version="1.0"?>' . "\n";
$body.= '<d:propfind xmlns:d="DAV:">' . "\n"; $body.= '<d:propfind xmlns:d="DAV:">' . "\n";
@ -304,8 +304,9 @@ class Client {
* @param string $url * @param string $url
* @param string $body * @param string $body
* @param array $headers * @param array $headers
* @return array
*/ */
public function request($method, $url = '', $body = null, $headers = array()) : array { public function request($method, $url = '', $body = null, $headers = array()) {
$url = $this->getAbsoluteUrl($url); $url = $this->getAbsoluteUrl($url);
@ -313,22 +314,29 @@ class Client {
CURLOPT_RETURNTRANSFER => true, CURLOPT_RETURNTRANSFER => true,
// Return headers as part of the response // Return headers as part of the response
CURLOPT_HEADER => true, CURLOPT_HEADER => true,
CURLOPT_POSTFIELDS => $body,
CURLOPT_USERAGENT => 'SnappyMail DAV Client', // TODO rainloop // For security we cast this to a string. If somehow an array could
// be passed here, it would be possible for an attacker to use @ to
// post local files.
CURLOPT_POSTFIELDS => (string)$body,
CURLOPT_USERAGENT => 'SnappyMail DAV Client', // TODO rainloop
// Automatically follow redirects // Automatically follow redirects
CURLOPT_FOLLOWLOCATION => true, CURLOPT_FOLLOWLOCATION => true,
CURLOPT_MAXREDIRS => 5, CURLOPT_MAXREDIRS => 5,
CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
); );
if($this->verifyPeer !== null) { if($this->verifyPeer !== null) {
$curlSettings[CURLOPT_SSL_VERIFYPEER] = $this->verifyPeer; $curlSettings[CURLOPT_SSL_VERIFYPEER] = $this->verifyPeer;
// TODO rainloop // TODO rainloop
if (!$this->verifyPeer) { if (!$this->verifyPeer) {
$curlSettings[CURLOPT_SSL_VERIFYHOST] = 0; $curlSettings[CURLOPT_SSL_VERIFYHOST] = 0;
} // --- }
// END rainloop
} }
if($this->trustedCertificates) { if($this->trustedCertificates) {
$curlSettings[CURLOPT_CAINFO] = $this->trustedCertificates; $curlSettings[CURLOPT_CAINFO] = $this->trustedCertificates;
} }
@ -375,9 +383,6 @@ class Client {
$curlSettings[CURLOPT_USERPWD] = $this->userName . ':' . $this->password; $curlSettings[CURLOPT_USERPWD] = $this->userName . ':' . $this->password;
} }
// var_dump($url);
// var_dump($curlSettings);
list( list(
$response, $response,
$curlInfo, $curlInfo,
@ -385,12 +390,9 @@ class Client {
$curlError $curlError
) = $this->curlRequest($url, $curlSettings); ) = $this->curlRequest($url, $curlSettings);
// var_dump($response);
$headerBlob = substr($response, 0, $curlInfo['header_size']); $headerBlob = substr($response, 0, $curlInfo['header_size']);
$response = substr($response, $curlInfo['header_size']); $response = substr($response, $curlInfo['header_size']);
// In the case of 100 Continue, or redirects we'll have multiple lists // In the case of 100 Continue, or redirects we'll have multiple lists
// of headers for each separate HTTP response. We can easily split this // of headers for each separate HTTP response. We can easily split this
// because they are separated by \r\n\r\n // because they are separated by \r\n\r\n
@ -417,7 +419,7 @@ class Client {
); );
if ($curlErrNo) { if ($curlErrNo) {
throw new Exception('[CURL] Error while making request: ' . $curlError . ' (error code: ' . $curlErrNo . ', uri: ' . $url . ')'); throw new Exception('[CURL] Error while making request: ' . $curlError . ' (error code: ' . $curlErrNo . ')');
} }
if ($response['statusCode']>=400) { if ($response['statusCode']>=400) {
@ -468,70 +470,70 @@ class Client {
// @codeCoverageIgnoreStart // @codeCoverageIgnoreStart
protected function curlRequest($url, $settings) { protected function curlRequest($url, $settings) {
// TODO rainloop // TODO rainloop
$curl = curl_init($url); $curl = curl_init($url);
if (ini_get('open_basedir') === '') if (ini_get('open_basedir') === '')
{ {
curl_setopt_array($curl, $settings); curl_setopt_array($curl, $settings);
$data = curl_exec($curl); $data = curl_exec($curl);
} }
else else
{ {
$settings[CURLOPT_FOLLOWLOCATION] = false; $settings[CURLOPT_FOLLOWLOCATION] = false;
curl_setopt_array($curl, $settings); curl_setopt_array($curl, $settings);
$max_redirects = isset($settings[CURLOPT_MAXREDIRS]) ? $settings[CURLOPT_MAXREDIRS] : 5; $max_redirects = isset($settings[CURLOPT_MAXREDIRS]) ? $settings[CURLOPT_MAXREDIRS] : 5;
$mr = $max_redirects; $mr = $max_redirects;
if ($mr > 0) if ($mr > 0)
{ {
$newurl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL); $newurl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL);
$rcurl = curl_copy_handle($curl); $rcurl = curl_copy_handle($curl);
curl_setopt($rcurl, CURLOPT_HEADER, true); curl_setopt($rcurl, CURLOPT_HEADER, true);
curl_setopt($rcurl, CURLOPT_NOBODY, true); curl_setopt($rcurl, CURLOPT_NOBODY, true);
curl_setopt($rcurl, CURLOPT_FORBID_REUSE, false); curl_setopt($rcurl, CURLOPT_FORBID_REUSE, false);
curl_setopt($rcurl, CURLOPT_RETURNTRANSFER, true); curl_setopt($rcurl, CURLOPT_RETURNTRANSFER, true);
do do
{ {
curl_setopt($rcurl, CURLOPT_URL, $newurl); curl_setopt($rcurl, CURLOPT_URL, $newurl);
$header = curl_exec($rcurl); $header = curl_exec($rcurl);
if (curl_errno($rcurl)) if (curl_errno($rcurl))
{ {
$code = 0; $code = 0;
} }
else else
{ {
$code = curl_getinfo($rcurl, CURLINFO_HTTP_CODE); $code = curl_getinfo($rcurl, CURLINFO_HTTP_CODE);
if ($code == 301 || $code == 302) if ($code == 301 || $code == 302)
{ {
$matches = array(); $matches = array();
preg_match('/Location:(.*?)\n/', $header, $matches); preg_match('/Location:(.*?)\n/', $header, $matches);
$newurl = trim(array_pop($matches)); $newurl = trim(array_pop($matches));
} }
else else
{ {
$code = 0; $code = 0;
} }
} }
} while ($code && --$mr); } while ($code && --$mr);
curl_close($rcurl); curl_close($rcurl);
if ($mr > 0) if ($mr > 0)
{ {
curl_setopt($curl, CURLOPT_URL, $newurl); curl_setopt($curl, CURLOPT_URL, $newurl);
} }
} }
if ($mr == 0 && $max_redirects > 0) if ($mr == 0 && $max_redirects > 0)
{ {
$data = false; $data = false;
} }
else else
{ {
$data = curl_exec($curl); $data = curl_exec($curl);
} }
} }
return array( return array(
$data, $data,
@ -539,6 +541,17 @@ class Client {
curl_errno($curl), curl_errno($curl),
curl_error($curl) curl_error($curl)
); );
// END rainloop
$curl = curl_init($url);
curl_setopt_array($curl, $settings);
return array(
curl_exec($curl),
curl_getinfo($curl),
curl_errno($curl),
curl_error($curl)
);
} }
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd
@ -598,7 +611,12 @@ class Client {
$body = XMLUtil::convertDAVNamespace($body); $body = XMLUtil::convertDAVNamespace($body);
// Fixes an XXE vulnerability on PHP versions older than 5.3.23 or
// 5.4.13.
$previous = libxml_disable_entity_loader(true);
$responseXML = simplexml_load_string($body, null, LIBXML_NOBLANKS | LIBXML_NOCDATA); $responseXML = simplexml_load_string($body, null, LIBXML_NOBLANKS | LIBXML_NOCDATA);
libxml_disable_entity_loader($previous);
if ($responseXML===false) { if ($responseXML===false) {
throw new \InvalidArgumentException('The passed data is not valid XML'); throw new \InvalidArgumentException('The passed data is not valid XML');
} }

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\DAV; namespace Sabre\DAV;
/** /**
* Collection class * Collection class
@ -8,9 +8,9 @@ namespace SabreForRainLoop\DAV;
* This is a helper class, that should aid in getting collections classes setup. * This is a helper class, that should aid in getting collections classes setup.
* Most of its methods are implemented, and throw permission denied exceptions * Most of its methods are implemented, and throw permission denied exceptions
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
abstract class Collection extends Node implements ICollection { abstract class Collection extends Node implements ICollection {
@ -21,7 +21,7 @@ abstract class Collection extends Node implements ICollection {
* nodes, and compares the name. * nodes, and compares the name.
* Generally its wise to override this, as this can usually be optimized * Generally its wise to override this, as this can usually be optimized
* *
* This method must throw SabreForRainLoop\DAV\Exception\NotFound if the node does not * This method must throw Sabre\DAV\Exception\NotFound if the node does not
* exist. * exist.
* *
* @param string $name * @param string $name

View file

@ -5,12 +5,12 @@
* *
* This is SabreDAV's base exception file, use this to implement your own exception. * This is SabreDAV's base exception file, use this to implement your own exception.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
namespace SabreForRainLoop\DAV; namespace Sabre\DAV;
/** /**
* Main Exception class. * Main Exception class.

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
/** /**
* BadRequest * BadRequest
@ -8,11 +8,11 @@ namespace SabreForRainLoop\DAV\Exception;
* The BadRequest is thrown when the user submitted an invalid HTTP request * The BadRequest is thrown when the user submitted an invalid HTTP request
* BadRequest * BadRequest
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class BadRequest extends \SabreForRainLoop\DAV\Exception { class BadRequest extends \Sabre\DAV\Exception {
/** /**
* Returns the HTTP statuscode for this exception * Returns the HTTP statuscode for this exception

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
/** /**
* Conflict * Conflict
@ -8,11 +8,11 @@ namespace SabreForRainLoop\DAV\Exception;
* A 409 Conflict is thrown when a user tried to make a directory over an existing * A 409 Conflict is thrown when a user tried to make a directory over an existing
* file or in a parent directory that doesn't exist. * file or in a parent directory that doesn't exist.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Conflict extends \SabreForRainLoop\DAV\Exception { class Conflict extends \Sabre\DAV\Exception {
/** /**
* Returns the HTTP statuscode for this exception * Returns the HTTP statuscode for this exception

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* ConflictingLock * ConflictingLock
@ -10,9 +10,9 @@ use SabreForRainLoop\DAV;
* Similar to the Locked exception, this exception thrown when a LOCK request * Similar to the Locked exception, this exception thrown when a LOCK request
* was made, on a resource which was already locked * was made, on a resource which was already locked
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class ConflictingLock extends Locked { class ConflictingLock extends Locked {

View file

@ -0,0 +1,19 @@
<?php
namespace Sabre\DAV\Exception;
/**
* FileNotFound
*
* Deprecated: Warning, this class is deprecated and will be removed in a
* future version of SabreDAV. Please use Sabre\DAV\Exception\NotFound instead.
*
* @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @deprecated Use Sabre\DAV\Exception\NotFound instead
* @license http://sabre.io/license/ Modified BSD License
*/
class FileNotFound extends NotFound {
}

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
/** /**
* Forbidden * Forbidden
* *
* This exception is thrown whenever a user tries to do an operation he's not allowed to * This exception is thrown whenever a user tries to do an operation he's not allowed to
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Forbidden extends \SabreForRainLoop\DAV\Exception { class Forbidden extends \Sabre\DAV\Exception {
/** /**
* Returns the HTTP statuscode for this exception * Returns the HTTP statuscode for this exception

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
/** /**
* InsufficientStorage * InsufficientStorage
* *
* This Exception can be thrown, when for example a harddisk is full or a quota is exceeded * This Exception can be thrown, when for example a harddisk is full or a quota is exceeded
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class InsufficientStorage extends \SabreForRainLoop\DAV\Exception { class InsufficientStorage extends \Sabre\DAV\Exception {
/** /**
* Returns the HTTP statuscode for this exception * Returns the HTTP statuscode for this exception

View file

@ -1,6 +1,6 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
/** /**
* InvalidResourceType * InvalidResourceType
@ -10,9 +10,9 @@ namespace SabreForRainLoop\DAV\Exception;
* *
* See RFC5689 section 3.3 * See RFC5689 section 3.3
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class InvalidResourceType extends Forbidden { class InvalidResourceType extends Forbidden {
@ -23,7 +23,7 @@ class InvalidResourceType extends Forbidden {
* @param \DOMElement $errorNode * @param \DOMElement $errorNode
* @return void * @return void
*/ */
public function serialize(\SabreForRainLoop\DAV\Server $server,\DOMElement $errorNode) { public function serialize(\Sabre\DAV\Server $server,\DOMElement $errorNode) {
$error = $errorNode->ownerDocument->createElementNS('DAV:','d:valid-resourcetype'); $error = $errorNode->ownerDocument->createElementNS('DAV:','d:valid-resourcetype');
$errorNode->appendChild($error); $errorNode->appendChild($error);

View file

@ -0,0 +1,30 @@
<?php
namespace Sabre\DAV\Exception;
use Sabre\DAV;
/**
* LengthRequired
*
* This exception is thrown when a request was made that required a
* Content-Length header, but did not contain one.
*
* @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/)
* @license http://sabre.io/license/ Modified BSD License
*/
class LengthRequired extends DAV\Exception {
/**
* Returns the HTTP statuscode for this exception
*
* @return int
*/
public function getHTTPCode() {
return 411;
}
}

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* LockTokenMatchesRequestUri * LockTokenMatchesRequestUri
* *
* This exception is thrown by UNLOCK if a supplied lock-token is invalid * This exception is thrown by UNLOCK if a supplied lock-token is invalid
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class LockTokenMatchesRequestUri extends Conflict { class LockTokenMatchesRequestUri extends Conflict {

View file

@ -1,24 +1,24 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* Locked * Locked
* *
* The 423 is thrown when a client tried to access a resource that was locked, without supplying a valid lock token * The 423 is thrown when a client tried to access a resource that was locked, without supplying a valid lock token
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class Locked extends DAV\Exception { class Locked extends DAV\Exception {
/** /**
* Lock information * Lock information
* *
* @var SabreForRainLoop\DAV\Locks\LockInfo * @var Sabre\DAV\Locks\LockInfo
*/ */
protected $lock; protected $lock;

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
/** /**
* MethodNotAllowed * MethodNotAllowed
* *
* The 405 is thrown when a client tried to create a directory on an already existing directory * The 405 is thrown when a client tried to create a directory on an already existing directory
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class MethodNotAllowed extends \SabreForRainLoop\DAV\Exception { class MethodNotAllowed extends \Sabre\DAV\Exception {
/** /**
* Returns the HTTP statuscode for this exception * Returns the HTTP statuscode for this exception
@ -29,10 +29,10 @@ class MethodNotAllowed extends \SabreForRainLoop\DAV\Exception {
* *
* The headers must be returned as an array. * The headers must be returned as an array.
* *
* @param \SabreForRainLoop\DAV\Server $server * @param \Sabre\DAV\Server $server
* @return array * @return array
*/ */
public function getHTTPHeaders(\SabreForRainLoop\DAV\Server $server) { public function getHTTPHeaders(\Sabre\DAV\Server $server) {
$methods = $server->getAllowedMethods($server->getRequestUri()); $methods = $server->getAllowedMethods($server->getRequestUri());

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* NotAuthenticated * NotAuthenticated
@ -10,9 +10,9 @@ use SabreForRainLoop\DAV;
* This exception is thrown when the client did not provide valid * This exception is thrown when the client did not provide valid
* authentication credentials. * authentication credentials.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class NotAuthenticated extends DAV\Exception { class NotAuthenticated extends DAV\Exception {

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
/** /**
* NotFound * NotFound
* *
* This Exception is thrown when a Node couldn't be found. It returns HTTP error code 404 * This Exception is thrown when a Node couldn't be found. It returns HTTP error code 404
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class NotFound extends \SabreForRainLoop\DAV\Exception { class NotFound extends \Sabre\DAV\Exception {
/** /**
* Returns the HTTP statuscode for this exception * Returns the HTTP statuscode for this exception

View file

@ -1,17 +1,17 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
/** /**
* NotImplemented * NotImplemented
* *
* This exception is thrown when the client tried to call an unsupported HTTP method or other feature * This exception is thrown when the client tried to call an unsupported HTTP method or other feature
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class NotImplemented extends \SabreForRainLoop\DAV\Exception { class NotImplemented extends \Sabre\DAV\Exception {
/** /**
* Returns the HTTP statuscode for this exception * Returns the HTTP statuscode for this exception

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* Payment Required * Payment Required
@ -10,9 +10,9 @@ use SabreForRainLoop\DAV;
* The PaymentRequired exception may be thrown in a case where a user must pay * The PaymentRequired exception may be thrown in a case where a user must pay
* to access a certain resource or operation. * to access a certain resource or operation.
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class PaymentRequired extends DAV\Exception { class PaymentRequired extends DAV\Exception {

View file

@ -1,8 +1,8 @@
<?php <?php
namespace SabreForRainLoop\DAV\Exception; namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV; use Sabre\DAV;
/** /**
* PreconditionFailed * PreconditionFailed
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
* like for example an If, If-None-Match or If-Match header, which caused the HTTP * like for example an If, If-None-Match or If-Match header, which caused the HTTP
* request to not execute (the condition of the header failed) * request to not execute (the condition of the header failed)
* *
* @copyright Copyright (C) 2007-2013 fruux GmbH (https://fruux.com/). * @copyright Copyright (C) 2007-2015 fruux GmbH (https://fruux.com/).
* @author Evert Pot (http://evertpot.com/) * @author Evert Pot (http://evertpot.com/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License * @license http://sabre.io/license/ Modified BSD License
*/ */
class PreconditionFailed extends DAV\Exception { class PreconditionFailed extends DAV\Exception {

Some files were not shown because too many files have changed in this diff Show more