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

View file

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

View file

@ -214,7 +214,7 @@ class PdoAddressBook
return $aResponse;
}
private function detectionPropFind(\SabreForRainLoop\DAV\Client $oClient, string $sPath) : ?array
private function detectionPropFind(\Sabre\DAV\Client $oClient, string $sPath) : ?array
{
$aResponse = null;
@ -239,7 +239,7 @@ class PdoAddressBook
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();
@ -285,7 +285,7 @@ class PdoAddressBook
if (empty($sNextPath))
{
$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'))
{
$sNextPath = $sKey;
@ -408,7 +408,7 @@ class PdoAddressBook
if (!empty($sKey) && $aItem && isset($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'))
{
@ -425,7 +425,7 @@ class PdoAddressBook
return $aContactsPaths;
}
private function checkContactsPath(\SabreForRainLoop\DAV\Client $oClient, string $sPath) : bool
private function checkContactsPath(\Sabre\DAV\Client $oClient, string $sPath) : bool
{
if (!$oClient)
{
@ -456,7 +456,7 @@ class PdoAddressBook
if (!empty($sKey) && isset($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') &&
$oResourceType->is('{urn:ietf:params:xml:ns:carddav}addressbook'))
@ -475,7 +475,7 @@ class PdoAddressBook
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))
{
@ -509,7 +509,7 @@ class PdoAddressBook
$aSettings['proxy'] = $sProxy;
}
$oClient = new \SabreForRainLoop\DAV\Client($aSettings);
$oClient = new \Sabre\DAV\Client($aSettings);
$oClient->setVerifyPeer(false);
$oClient->__UrlPath__ = $aUrl['path'];
@ -519,9 +519,9 @@ class PdoAddressBook
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;
}

View file

@ -1,18 +1,18 @@
<?php
namespace SabreForRainLoop\CalDAV\Backend;
namespace Sabre\CalDAV\Backend;
use SabreForRainLoop\VObject;
use SabreForRainLoop\CalDAV;
use Sabre\VObject;
use Sabre\CalDAV;
/**
* Abstract Calendaring backend. Extend this class to create your own backends.
*
* 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/)
* @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 {
@ -70,7 +70,7 @@ abstract class AbstractBackend implements BackendInterface {
* query.
*
* 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
* 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
* recurrence rules correctly.
* 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
* to think of.
*
@ -112,7 +112,7 @@ abstract class AbstractBackend implements BackendInterface {
$result = array();
$objects = $this->getCalendarObjects($calendarId);
$validator = new \SabreForRainLoop\CalDAV\CalendarQueryValidator();
$validator = new \Sabre\CalDAV\CalendarQueryValidator();
foreach($objects as $object) {

View file

@ -1,13 +1,13 @@
<?php
namespace SabreForRainLoop\CalDAV\Backend;
namespace Sabre\CalDAV\Backend;
/**
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
interface BackendInterface {
@ -191,7 +191,7 @@ interface BackendInterface {
* query.
*
* 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
* 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
* recurrence rules correctly.
* 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
* to think of.
*

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\CalDAV\Backend;
namespace Sabre\CalDAV\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.
*
* @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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
interface NotificationSupport extends BackendInterface {
@ -26,7 +26,7 @@ interface NotificationSupport extends BackendInterface {
* Returns a list of notifications for a given principal url.
*
* The returned array should only consist of implementations of
* \SabreForRainLoop\CalDAV\Notifications\INotificationType.
* \Sabre\CalDAV\Notifications\INotificationType.
*
* @param string $principalUri
* @return array
@ -39,9 +39,9 @@ interface NotificationSupport extends BackendInterface {
* This may be called by a client once it deems a notification handled.
*
* @param string $principalUri
* @param \SabreForRainLoop\CalDAV\Notifications\INotificationType $notification
* @param \Sabre\CalDAV\Notifications\INotificationType $notification
* @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
namespace SabreForRainLoop\CalDAV\Backend;
namespace Sabre\CalDAV\Backend;
use SabreForRainLoop\VObject;
use SabreForRainLoop\CalDAV;
use SabreForRainLoop\DAV;
use Sabre\VObject;
use Sabre\CalDAV;
use Sabre\DAV;
/**
* PDO CalDAV backend
@ -12,9 +12,9 @@ use SabreForRainLoop\DAV;
* This backend is used to store calendar-data in a PDO database, such as
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class PDO extends AbstractBackend {
@ -175,7 +175,7 @@ class PDO extends AbstractBackend {
$values[':components'] = 'VEVENT,VTODO';
} else {
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());
}
@ -255,16 +255,16 @@ class PDO extends AbstractBackend {
break;
default :
// Checking the property map
if (!isset($this->propertyMap[$propertyName])) {
if (isset($this->propertyMap[$propertyName])) {
// We don't know about this property.
$hasError = true;
$result[403][$propertyName] = null;
unset($mutations[$propertyName]);
break;
}
} else {
$fieldName = $this->propertyMap[$propertyName];
$newValues[$fieldName] = $propertyValue;
$fieldName = $this->propertyMap[$propertyName];
$newValues[$fieldName] = $propertyValue;
}
}
}
@ -497,7 +497,7 @@ class PDO extends AbstractBackend {
}
}
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') {
$firstOccurence = $component->DTSTART->getDateTime()->getTimeStamp();
@ -572,7 +572,7 @@ class PDO extends AbstractBackend {
* query.
*
* 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
* 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
* recurrence rules correctly.
* 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
* to think of.
*
@ -615,7 +615,7 @@ class PDO extends AbstractBackend {
public function calendarQuery($calendarId, array $filters) {
$result = array();
$validator = new \SabreForRainLoop\CalDAV\CalendarQueryValidator();
$validator = new \Sabre\CalDAV\CalendarQueryValidator();
$componentType = null;
$requirePostFilter = true;

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\CalDAV\Backend;
namespace Sabre\CalDAV\Backend;
/**
* Adds support for sharing features to a CalDAV server.
@ -65,12 +65,12 @@ namespace SabreForRainLoop\CalDAV\Backend;
* change.
* 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
* 'decline'. These are always represented by:
*
* SabreForRainLoop\CalDAV\Notifications\Notification\Invite
* Sabre\CalDAV\Notifications\Notification\Invite
*
*
* Calendar access by sharees
@ -156,7 +156,7 @@ namespace SabreForRainLoop\CalDAV\Backend;
* 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,
* or publishing is supported.
*
@ -165,9 +165,9 @@ namespace SabreForRainLoop\CalDAV\Backend;
* the backend, the SharingPlugin automatically injects it and assumes both
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
interface SharingSupport extends NotificationSupport {
@ -202,7 +202,7 @@ interface SharingSupport extends NotificationSupport {
* Every element in this array should have the following properties:
* * href - Often a mailto: address
* * 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
* * summary - Optional, a description for the share
*

View file

@ -1,19 +1,19 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
use SabreForRainLoop\DAV;
use SabreForRainLoop\DAVACL;
use Sabre\DAV;
use Sabre\DAVACL;
/**
* This object represents a CalDAV calendar.
*
* 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/)
* @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 {
@ -103,7 +103,7 @@ class Calendar implements ICalendar, DAV\IProperties, DAVACL\IACL {
* The contained calendar objects are for example Events or Todo's.
*
* @param string $name
* @return \SabreForRainLoop\CalDAV\ICalendarObject
* @return \Sabre\CalDAV\ICalendarObject
*/
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.
*
* 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.
*
* 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.
*
* 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
* @return array

View file

@ -1,20 +1,20 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
/**
* 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/)
* @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;
@ -253,7 +253,7 @@ class CalendarObject extends \SabreForRainLoop\DAV\File implements ICalendarObje
*/
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.
*
* 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.
*
* If null is returned from this method, the default privilege set is used,

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
use SabreForRainLoop\VObject;
use Sabre\VObject;
/**
* 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,
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class CalendarQueryParser {
@ -84,16 +84,16 @@ class CalendarQueryParser {
$filter = $this->xpath->query('/cal:calendar-query/cal:filter');
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));
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->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');
if ($expand->length>0) {
@ -132,7 +132,7 @@ class CalendarQueryParser {
'VFREEBUSY',
'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;
@ -253,7 +253,7 @@ class CalendarQueryParser {
}
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(
@ -273,19 +273,19 @@ class CalendarQueryParser {
$start = $parentNode->getAttribute('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);
$end = $parentNode->getAttribute('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);
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(

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
use SabreForRainLoop\VObject;
use Sabre\VObject;
use DateTime;
/**
@ -14,16 +14,16 @@ use DateTime;
* This is used to determine which icalendar objects should be returned for a
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class CalendarQueryValidator {
/**
* 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 array $filters
@ -273,7 +273,7 @@ class CalendarQueryValidator {
$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);
@ -369,7 +369,7 @@ class CalendarQueryValidator {
}
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 'CREATED' :
@ -383,7 +383,7 @@ class CalendarQueryValidator {
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
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
use SabreForRainLoop\DAVACL\PrincipalBackend;
use Sabre\DAVACL\PrincipalBackend;
/**
* Calendars collection
@ -10,16 +10,16 @@ use SabreForRainLoop\DAVACL\PrincipalBackend;
* This object is responsible for generating a list of calendar-homes for each
* 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/)
* @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
*
* @var SabreForRainLoop\CalDAV\Backend\BackendInterface
* @var Sabre\CalDAV\Backend\BackendInterface
*/
protected $caldavBackend;
@ -48,7 +48,7 @@ class CalendarRootNode extends \SabreForRainLoop\DAVACL\AbstractPrincipalCollect
* Returns the nodename
*
* 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
*/
@ -66,7 +66,7 @@ class CalendarRootNode extends \SabreForRainLoop\DAVACL\AbstractPrincipalCollect
* supplied by the authentication backend.
*
* @param array $principal
* @return \SabreForRainLoop\DAV\INode
* @return \Sabre\DAV\INode
*/
public function getChildForPrincipal(array $principal) {

View file

@ -1,16 +1,16 @@
<?php
namespace SabreForRainLoop\CalDAV\Exception;
namespace Sabre\CalDAV\Exception;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use Sabre\DAV;
use Sabre\CalDAV;
/**
* 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/)
* @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 {

View file

@ -1,9 +1,9 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
use SabreForRainLoop\DAV;
use SabreForRainLoop\VObject;
use Sabre\DAV;
use Sabre\VObject;
/**
* ICS Exporter
@ -12,23 +12,23 @@ use SabreForRainLoop\VObject;
* This is useful for clients that don't support CalDAV yet. They often do
* 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/)
* @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 {
/**
* Reference to Server class
*
* @var \SabreForRainLoop\DAV\Server
* @var \Sabre\DAV\Server
*/
protected $server;
/**
* Initializes the plugin and registers event handlers
*
* @param \SabreForRainLoop\DAV\Server $server
* @param \Sabre\DAV\Server $server
* @return void
*/
public function initialize(DAV\Server $server) {

View file

@ -1,16 +1,16 @@
<?php
namespace SabreForRainLoop\CalDAV;
use SabreForRainLoop\DAV;
namespace Sabre\CalDAV;
use Sabre\DAV;
/**
* Calendar interface
*
* 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/)
* @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 {
@ -26,7 +26,7 @@ interface ICalendar extends DAV\ICollection {
* query.
*
* 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
* @return array

View file

@ -1,7 +1,7 @@
<?php
namespace SabreForRainLoop\CalDAV;
use SabreForRainLoop\DAV;
namespace Sabre\CalDAV;
use Sabre\DAV;
/**
* CalendarObject interface
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
*
* 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/)
* @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 {

View file

@ -1,13 +1,13 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
/**
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
interface IShareableCalendar extends ICalendar {
@ -37,7 +37,7 @@ interface IShareableCalendar extends ICalendar {
* Every element in this array should have the following properties:
* * href - Often a mailto: address
* * 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
* * summary - Optional, a description for the share
*

View file

@ -1,13 +1,13 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
/**
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
interface ISharedCalendar extends ICalendar {
@ -25,7 +25,7 @@ interface ISharedCalendar extends ICalendar {
* Every element in this array should have the following properties:
* * href - Often a mailto: address
* * 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
* * summary - Optional, a description for the share
*

View file

@ -1,10 +1,10 @@
<?php
namespace SabreForRainLoop\CalDAV\Notifications;
namespace Sabre\CalDAV\Notifications;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use SabreForRainLoop\DAVACL;
use Sabre\DAV;
use Sabre\CalDAV;
use Sabre\DAVACL;
/**
* This node represents a list of notifications.
@ -13,19 +13,19 @@ use SabreForRainLoop\DAVACL;
* interface to allow the Notifications plugin to mark the 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.
*
* @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/)
* @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 {
/**
* The notification backend
*
* @var SabreForRainLoop\CalDAV\Backend\NotificationSupport
* @var Sabre\CalDAV\Backend\NotificationSupport
*/
protected $caldavBackend;
@ -156,7 +156,7 @@ class Collection extends DAV\Collection implements ICollection, DAVACL\IACL {
* Returns the list of supported privileges for this node.
*
* 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.
*
* If null is returned from this method, the default privilege set is used,

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV\Notifications;
namespace Sabre\CalDAV\Notifications;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* This node represents a list of notifications.
@ -11,12 +11,12 @@ use SabreForRainLoop\DAV;
* interface to allow the Notifications plugin to mark the 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.
*
* @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/)
* @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 {

View file

@ -1,26 +1,26 @@
<?php
namespace SabreForRainLoop\CalDAV\Notifications;
namespace Sabre\CalDAV\Notifications;
/**
* 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
* 'caldav-notifications.txt' spec.
*
* For a complete example, check out the Notification class, which contains
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
interface INode {
/**
* This method must return an xml element, using the
* SabreForRainLoop\CalDAV\Notifications\INotificationType classes.
* Sabre\CalDAV\Notifications\INotificationType classes.
*
* @return INotificationType
*/

View file

@ -1,14 +1,14 @@
<?php
namespace SabreForRainLoop\CalDAV\Notifications;
use SabreForRainLoop\DAV;
namespace Sabre\CalDAV\Notifications;
use Sabre\DAV;
/**
* 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/)
* @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 {

View file

@ -1,35 +1,35 @@
<?php
namespace SabreForRainLoop\CalDAV\Notifications;
namespace Sabre\CalDAV\Notifications;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use SabreForRainLoop\DAVACL;
use Sabre\DAV;
use Sabre\CalDAV;
use Sabre\DAVACL;
/**
* 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
* '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/)
* @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 {
/**
* The notification backend
*
* @var SabreForRainLoop\CalDAV\Backend\NotificationSupport
* @var Sabre\CalDAV\Backend\NotificationSupport
*/
protected $caldavBackend;
/**
* The actual notification
*
* @var SabreForRainLoop\CalDAV\Notifications\INotificationType
* @var Sabre\CalDAV\Notifications\INotificationType
*/
protected $notification;
@ -81,7 +81,7 @@ class Node extends DAV\File implements INode, DAVACL\IACL {
/**
* This method must return an xml element, using the
* SabreForRainLoop\CalDAV\Notifications\INotificationType classes.
* Sabre\CalDAV\Notifications\INotificationType classes.
*
* @return INotificationType
*/
@ -175,7 +175,7 @@ class Node extends DAV\File implements INode, DAVACL\IACL {
* Returns the list of supported privileges for this node.
*
* 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.
*
* If null is returned from this method, the default privilege set is used,

View file

@ -1,17 +1,17 @@
<?php
namespace SabreForRainLoop\CalDAV\Notifications\Notification;
namespace Sabre\CalDAV\Notifications\Notification;
use SabreForRainLoop\CalDAV\SharingPlugin as SharingPlugin;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use Sabre\CalDAV\SharingPlugin as SharingPlugin;
use Sabre\DAV;
use Sabre\CalDAV;
/**
* 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/)
* @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 {
@ -103,7 +103,7 @@ class Invite extends DAV\Property implements CalDAV\Notifications\INotificationT
/**
* The list of supported components
*
* @var SabreForRainLoop\CalDAV\Property\SupportedCalendarComponentSet
* @var Sabre\CalDAV\Property\SupportedCalendarComponentSet
*/
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
* calendar, but may also be modified (optional).
* * supportedComponents - An instance of
* SabreForRainLoop\CalDAV\Property\SupportedCalendarComponentSet.
* Sabre\CalDAV\Property\SupportedCalendarComponentSet.
* This allows the client to determine which components
* will be supported in the shared calendar. This is
* also optional.

View file

@ -1,17 +1,17 @@
<?php
namespace SabreForRainLoop\CalDAV\Notifications\Notification;
namespace Sabre\CalDAV\Notifications\Notification;
use SabreForRainLoop\CalDAV\SharingPlugin as SharingPlugin;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use Sabre\CalDAV\SharingPlugin as SharingPlugin;
use Sabre\DAV;
use Sabre\CalDAV;
/**
* 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/)
* @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 {

View file

@ -1,9 +1,9 @@
<?php
namespace SabreForRainLoop\CalDAV\Notifications\Notification;
namespace Sabre\CalDAV\Notifications\Notification;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use Sabre\DAV;
use Sabre\CalDAV;
/**
* SystemStatus notification
@ -11,9 +11,9 @@ use SabreForRainLoop\CalDAV;
* This notification can be used to indicate to the user that the system is
* 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/)
* @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 {

View file

@ -1,10 +1,10 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
use SabreForRainLoop\DAV;
use SabreForRainLoop\DAVACL;
use SabreForRainLoop\VObject;
use Sabre\DAV;
use Sabre\DAVACL;
use Sabre\VObject;
/**
* CalDAV plugin
@ -12,9 +12,9 @@ use SabreForRainLoop\VObject;
* This plugin provides functionality added by CalDAV (RFC 4791)
* 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/)
* @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 {
@ -171,14 +171,14 @@ class Plugin extends DAV\ServerPlugin {
$server->xmlNamespaces[self::NS_CALDAV] = 'cal';
$server->xmlNamespaces[self::NS_CALENDARSERVER] = 'cs';
$server->propertyMap['{' . self::NS_CALDAV . '}supported-calendar-component-set'] = 'SabreForRainLoop\\CalDAV\\Property\\SupportedCalendarComponentSet';
$server->propertyMap['{' . self::NS_CALDAV . '}schedule-calendar-transp'] = 'SabreForRainLoop\\CalDAV\\Property\\ScheduleCalendarTransp';
$server->propertyMap['{' . self::NS_CALDAV . '}supported-calendar-component-set'] = 'Sabre\\CalDAV\\Property\\SupportedCalendarComponentSet';
$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['\\SabreForRainLoop\\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['\\SabreForRainLoop\\CalDAV\\Principal\\IProxyWrite'] = '{http://calendarserver.org/ns/}calendar-proxy-write';
$server->resourceTypeMapping['\\SabreForRainLoop\\CalDAV\\Notifications\\ICollection'] = '{' . self::NS_CALENDARSERVER . '}notification';
$server->resourceTypeMapping['\\Sabre\\CalDAV\\ICalendar'] = '{urn:ietf:params:xml:ns:caldav}calendar';
$server->resourceTypeMapping['\\Sabre\\CalDAV\\Schedule\\IOutbox'] = '{urn:ietf:params:xml:ns:caldav}schedule-outbox';
$server->resourceTypeMapping['\\Sabre\\CalDAV\\Principal\\IProxyRead'] = '{http://calendarserver.org/ns/}calendar-proxy-read';
$server->resourceTypeMapping['\\Sabre\\CalDAV\\Principal\\IProxyWrite'] = '{http://calendarserver.org/ns/}calendar-proxy-write';
$server->resourceTypeMapping['\\Sabre\\CalDAV\\Notifications\\ICollection'] = '{' . self::NS_CALENDARSERVER . '}notification';
array_push($server->protectedProperties,
@ -286,7 +286,7 @@ class Plugin extends DAV\ServerPlugin {
// for clients matching iCal in the user agent
//$ua = $this->server->httpRequest->getHeader('User-Agent');
//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);

View file

@ -1,7 +1,7 @@
<?php
namespace SabreForRainLoop\CalDAV\Principal;
use SabreForRainLoop\DAVACL;
namespace Sabre\CalDAV\Principal;
use Sabre\DAVACL;
/**
* Principal collection
@ -11,9 +11,9 @@ use SabreForRainLoop\DAVACL;
* calendar-proxy-write sub-principals, as defined by the caldav-proxy
* 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/)
* @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 {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV\Principal;
namespace Sabre\CalDAV\Principal;
use SabreForRainLoop\DAVACL;
use Sabre\DAVACL;
/**
* ProxyRead principal interface
@ -10,9 +10,9 @@ use SabreForRainLoop\DAVACL;
* Any principal node implementing this interface will be picked up as a 'proxy
* 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/)
* @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 {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV\Principal;
namespace Sabre\CalDAV\Principal;
use SabreForRainLoop\DAVACL;
use Sabre\DAVACL;
/**
* ProxyWrite principal interface
@ -10,9 +10,9 @@ use SabreForRainLoop\DAVACL;
* Any principal node implementing this interface will be picked up as a 'proxy
* 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/)
* @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 {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV\Principal;
use SabreForRainLoop\DAVACL;
use SabreForRainLoop\DAV;
namespace Sabre\CalDAV\Principal;
use Sabre\DAVACL;
use Sabre\DAV;
/**
* ProxyRead principal
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
* This is needed to implement 'Calendar delegation' support. This class is
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class ProxyRead implements IProxyRead {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV\Principal;
use SabreForRainLoop\DAVACL;
use SabreForRainLoop\DAV;
namespace Sabre\CalDAV\Principal;
use Sabre\DAVACL;
use Sabre\DAV;
/**
* ProxyWrite principal
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
* This is needed to implement 'Calendar delegation' support. This class is
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class ProxyWrite implements IProxyWrite {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV\Principal;
use SabreForRainLoop\DAV;
use SabreForRainLoop\DAVACL;
namespace Sabre\CalDAV\Principal;
use Sabre\DAV;
use Sabre\DAVACL;
/**
* CalDAV principal
@ -11,9 +11,9 @@ use SabreForRainLoop\DAVACL;
* collection and returns the caldav-proxy-read and caldav-proxy-write child
* 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/)
* @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 {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV\Property;
namespace Sabre\CalDAV\Property;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* AllowedSharingModes
@ -16,9 +16,9 @@ use SabreForRainLoop\DAV;
* such as VEVENT, VTODO
*
* @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/)
* @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 {

View file

@ -1,10 +1,10 @@
<?php
namespace SabreForRainLoop\CalDAV\Property;
namespace Sabre\CalDAV\Property;
use SabreForRainLoop\CalDAV\SharingPlugin as SharingPlugin;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use Sabre\CalDAV\SharingPlugin as SharingPlugin;
use Sabre\DAV;
use Sabre\CalDAV;
/**
* Invite property
@ -14,9 +14,9 @@ use SabreForRainLoop\CalDAV;
* namespace.
*
* @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/)
* @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 {

View file

@ -1,9 +1,9 @@
<?php
namespace SabreForRainLoop\CalDAV\Property;
namespace Sabre\CalDAV\Property;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use Sabre\DAV;
use Sabre\CalDAV;
/**
* schedule-calendar-transp property.
@ -15,9 +15,9 @@ use SabreForRainLoop\CalDAV;
* 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.
*
* @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/)
* @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 {

View file

@ -1,9 +1,9 @@
<?php
namespace SabreForRainLoop\CalDAV\Property;
namespace Sabre\CalDAV\Property;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use Sabre\DAV;
use Sabre\CalDAV;
/**
* Supported component set property
@ -12,9 +12,9 @@ use SabreForRainLoop\CalDAV;
* property in the CalDAV namespace. It simply requires an array of components,
* 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/)
* @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 {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV\Property;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV\Plugin;
namespace Sabre\CalDAV\Property;
use Sabre\DAV;
use Sabre\CalDAV\Plugin;
/**
* 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
* 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/)
* @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 {

View file

@ -1,7 +1,7 @@
<?php
namespace SabreForRainLoop\CalDAV\Property;
use SabreForRainLoop\DAV;
namespace Sabre\CalDAV\Property;
use Sabre\DAV;
/**
* supported-collation-set property
@ -9,9 +9,9 @@ use SabreForRainLoop\DAV;
* This property is a representation of the supported-collation-set property
* 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/)
* @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 {

View file

@ -1,9 +1,9 @@
<?php
namespace SabreForRainLoop\CalDAV\Schedule;
namespace Sabre\CalDAV\Schedule;
use SabreForRainLoop\VObject;
use SabreForRainLoop\DAV;
use Sabre\VObject;
use Sabre\DAV;
/**
* 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
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
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
namespace SabreForRainLoop\CalDAV\Schedule;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CalDAV;
use SabreForRainLoop\DAVACL;
namespace Sabre\CalDAV\Schedule;
use Sabre\DAV;
use Sabre\CalDAV;
use Sabre\DAVACL;
/**
* The CalDAV scheduling outbox
@ -12,9 +12,9 @@ use SabreForRainLoop\DAVACL;
* free-busy requests. This functionality is completely handled by the
* 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/)
* @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 {
@ -52,7 +52,7 @@ class Outbox extends DAV\Collection implements IOutbox {
/**
* Returns an array with all the child nodes
*
* @return \SabreForRainLoop\DAV\INode[]
* @return \Sabre\DAV\INode[]
*/
public function getChildren() {
@ -138,7 +138,7 @@ class Outbox extends DAV\Collection implements IOutbox {
* Returns the list of supported privileges for this node.
*
* 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.
*
* If null is returned from this method, the default privilege set is used,

View file

@ -1,14 +1,14 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
/**
* This object represents a CalDAV 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/)
* @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 {
@ -42,7 +42,7 @@ class ShareableCalendar extends Calendar implements IShareableCalendar {
* Every element in this array should have the following properties:
* * href - Often a mailto: address
* * 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
* * summary - Optional, a description for the share
*

View file

@ -1,15 +1,15 @@
<?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.
*
* @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/)
* @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 {
@ -101,7 +101,7 @@ class SharedCalendar extends Calendar implements ISharedCalendar {
* Every element in this array should have the following properties:
* * href - Often a mailto: address
* * 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
* * summary - Optional, a description for the share
*

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* 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
*
* 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
* 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/)
* @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 {
@ -34,7 +34,7 @@ class SharingPlugin extends DAV\ServerPlugin {
/**
* Reference to SabreDAV server object.
*
* @var SabreForRainLoop\DAV\Server
* @var Sabre\DAV\Server
*/
protected $server;
@ -56,7 +56,7 @@ class SharingPlugin extends DAV\ServerPlugin {
* Returns a plugin name.
*
* Using this name other plugins will be able to access other plugins
* using SabreForRainLoop\DAV\Server::getPlugin
* using Sabre\DAV\Server::getPlugin
*
* @return string
*/
@ -69,7 +69,7 @@ class SharingPlugin extends DAV\ServerPlugin {
/**
* 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.
*
* This method should set up the required event subscriptions.
@ -80,7 +80,7 @@ class SharingPlugin extends DAV\ServerPlugin {
public function initialize(DAV\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(
$this->server->protectedProperties,

View file

@ -1,23 +1,23 @@
<?php
namespace SabreForRainLoop\CalDAV;
namespace Sabre\CalDAV;
use SabreForRainLoop\DAV;
use SabreForRainLoop\DAVACL;
use Sabre\DAV;
use Sabre\DAVACL;
/**
* 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/)
* @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 {
/**
* CalDAV backend
*
* @var SabreForRainLoop\CalDAV\Backend\BackendInterface
* @var Sabre\CalDAV\Backend\BackendInterface
*/
protected $caldavBackend;
@ -302,7 +302,7 @@ class UserCalendars implements DAV\IExtendedCollection, DAVACL\IACL {
* Returns the list of supported privileges for this node.
*
* 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.
*
* If null is returned from this method, the default privilege set is used,

View file

@ -1,13 +1,13 @@
<?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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class Version {

View file

@ -1,18 +1,18 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
use SabreForRainLoop\DAV;
use SabreForRainLoop\DAVACL;
use Sabre\DAV;
use Sabre\DAVACL;
/**
* The AddressBook class represents a CardDAV addressbook, owned by a specific user
*
* 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/)
* @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 {
@ -298,7 +298,7 @@ class AddressBook extends DAV\Collection implements IAddressBook, DAV\IPropertie
* Returns the list of supported privileges for this node.
*
* 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.
*
* If null is returned from this method, the default privilege set is used,

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* 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,
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class AddressBookQueryParser {

View file

@ -1,24 +1,24 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
use SabreForRainLoop\DAVACL;
use Sabre\DAVACL;
/**
* AddressBook rootnode
*
* 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/)
* @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 {
/**
* Principal Backend
*
* @var SabreForRainLoop\DAVACL\PrincipalBackend\BackendInteface
* @var Sabre\DAVACL\PrincipalBackend\BackendInteface
*/
protected $principalBackend;
@ -69,7 +69,7 @@ class AddressBookRoot extends DAVACL\AbstractPrincipalCollection {
* supplied by the authentication backend.
*
* @param array $principal
* @return \SabreForRainLoop\DAV\INode
* @return \Sabre\DAV\INode
*/
public function getChildForPrincipal(array $principal) {

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\CardDAV\Backend;
namespace Sabre\CardDAV\Backend;
/**
* CardDAV abstract Backend
@ -9,9 +9,9 @@ namespace SabreForRainLoop\CardDAV\Backend;
*
* 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/)
* @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 {

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\CardDAV\Backend;
namespace Sabre\CardDAV\Backend;
/**
* 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
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
interface BackendInterface {
@ -39,12 +39,12 @@ interface BackendInterface {
/**
* 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.
*
* @param mixed $addressBookId
* @param array $mutations
* @see SabreForRainLoop\DAV\IProperties::updateProperties
* @see Sabre\DAV\IProperties::updateProperties
* @return bool|array
*/
public function updateAddressBook($addressBookId, array $mutations);

View file

@ -1,18 +1,18 @@
<?php
namespace SabreForRainLoop\CardDAV\Backend;
namespace Sabre\CardDAV\Backend;
use SabreForRainLoop\CardDAV;
use SabreForRainLoop\DAV;
use Sabre\CardDAV;
use Sabre\DAV;
/**
* PDO CardDAV backend
*
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class PDO extends AbstractBackend {
@ -84,12 +84,12 @@ class PDO extends AbstractBackend {
/**
* 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.
*
* @param mixed $addressBookId
* @param array $mutations
* @see SabreForRainLoop\DAV\IProperties::updateProperties
* @see Sabre\DAV\IProperties::updateProperties
* @return bool|array
*/
public function updateAddressBook($addressBookId, array $mutations) {

View file

@ -1,17 +1,17 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
use SabreForRainLoop\DAVACL;
use SabreForRainLoop\DAV;
use Sabre\DAVACL;
use Sabre\DAV;
/**
* 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/)
* @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 {
@ -242,7 +242,7 @@ class Card extends DAV\File implements ICard, DAVACL\IACL {
* Returns the list of supported privileges for this node.
*
* 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.
*
* If null is returned from this method, the default privilege set is used,

View file

@ -1,17 +1,17 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* AddressBook interface
*
* 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/)
* @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 {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* Card interface
@ -10,9 +10,9 @@ use SabreForRainLoop\DAV;
* Extend the ICard interface to allow your custom nodes to be picked up as
* '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/)
* @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 {

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
/**
* IDirectory interface
@ -11,9 +11,9 @@ namespace SabreForRainLoop\CardDAV;
* A full description can be found in the IETF draft:
* - 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
interface IDirectory extends IAddressBook {

View file

@ -1,19 +1,19 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
use SabreForRainLoop\DAV;
use SabreForRainLoop\DAVACL;
use SabreForRainLoop\VObject;
use Sabre\DAV;
use Sabre\DAVACL;
use Sabre\VObject;
/**
* CardDAV plugin
*
* 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/)
* @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 {
@ -38,7 +38,7 @@ class Plugin extends DAV\ServerPlugin {
/**
* Server class
*
* @var SabreForRainLoop\DAV\Server
* @var Sabre\DAV\Server
*/
protected $server;
@ -64,8 +64,8 @@ class Plugin extends DAV\ServerPlugin {
$server->xmlNamespaces[self::NS_CARDDAV] = 'card';
/* Mapping Interfaces to {DAV:}resourcetype values */
$server->resourceTypeMapping['SabreForRainLoop\\CardDAV\\IAddressBook'] = '{' . self::NS_CARDDAV . '}addressbook';
$server->resourceTypeMapping['SabreForRainLoop\\CardDAV\\IDirectory'] = '{' . self::NS_CARDDAV . '}directory';
$server->resourceTypeMapping['Sabre\\CardDAV\\IAddressBook'] = '{' . self::NS_CARDDAV . '}addressbook';
$server->resourceTypeMapping['Sabre\\CardDAV\\IDirectory'] = '{' . self::NS_CARDDAV . '}directory';
/* Adding properties that may never be changed */
$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 . '}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;
@ -654,7 +654,7 @@ class Plugin extends DAV\ServerPlugin {
/**
* 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.
*
* @param DAV\INode $node

View file

@ -1,9 +1,9 @@
<?php
namespace SabreForRainLoop\CardDAV\Property;
namespace Sabre\CardDAV\Property;
use SabreForRainLoop\DAV;
use SabreForRainLoop\CardDAV;
use Sabre\DAV;
use Sabre\CardDAV;
/**
* Supported-address-data property
@ -11,9 +11,9 @@ use SabreForRainLoop\CardDAV;
* This property is a representation of the supported-address-data property
* 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/)
* @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 {

View file

@ -1,18 +1,18 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
use SabreForRainLoop\DAV;
use SabreForRainLoop\DAVACL;
use Sabre\DAV;
use Sabre\DAVACL;
/**
* UserAddressBooks class
*
* 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/)
* @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 {
@ -243,7 +243,7 @@ class UserAddressBooks extends DAV\Collection implements DAV\IExtendedCollection
* Returns the list of supported privileges for this node.
*
* 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.
*
* If null is returned from this method, the default privilege set is used,

View file

@ -1,9 +1,9 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
use SabreForRainLoop\DAV;
use SabreForRainLoop\VObject;
use Sabre\DAV;
use Sabre\VObject;
/**
* VCF Exporter
@ -12,17 +12,17 @@ use SabreForRainLoop\VObject;
* This is useful for clients that don't support CardDAV yet. They often do
* 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 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 {
/**
* Reference to Server class
*
* @var SabreForRainLoop\DAV\Server
* @var Sabre\DAV\Server
*/
protected $server;

View file

@ -1,15 +1,15 @@
<?php
namespace SabreForRainLoop\CardDAV;
namespace Sabre\CardDAV;
/**
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class Version {

View file

@ -1,9 +1,9 @@
<?php
namespace SabreForRainLoop\DAV\Auth\Backend;
namespace Sabre\DAV\Auth\Backend;
use SabreForRainLoop\DAV;
use SabreForRainLoop\HTTP;
use Sabre\DAV;
use Sabre\HTTP;
/**
* 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
* 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 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 {

View file

@ -1,9 +1,9 @@
<?php
namespace SabreForRainLoop\DAV\Auth\Backend;
namespace Sabre\DAV\Auth\Backend;
use SabreForRainLoop\HTTP;
use SabreForRainLoop\DAV;
use Sabre\HTTP;
use Sabre\DAV;
/**
* 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
* 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/)
* @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 {

View file

@ -1,7 +1,7 @@
<?php
namespace SabreForRainLoop\DAV\Auth\Backend;
use SabreForRainLoop\DAV;
namespace Sabre\DAV\Auth\Backend;
use Sabre\DAV;
/**
* Apache authenticator
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
*
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class Apache implements BackendInterface {

View file

@ -1,13 +1,13 @@
<?php
namespace SabreForRainLoop\DAV\Auth\Backend;
namespace Sabre\DAV\Auth\Backend;
/**
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
interface BackendInterface {
@ -17,11 +17,11 @@ interface BackendInterface {
* If authentication is successful, true must be returned.
* If authentication fails, an exception must be thrown.
*
* @param \SabreForRainLoop\DAV\Server $server
* @param \Sabre\DAV\Server $server
* @param string $realm
* @return bool
*/
function authenticate(\SabreForRainLoop\DAV\Server $server,$realm);
function authenticate(\Sabre\DAV\Server $server,$realm);
/**
* Returns information about the currently logged in username.

View file

@ -1,17 +1,17 @@
<?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.
*
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class File extends AbstractDigest {

View file

@ -1,15 +1,15 @@
<?php
namespace SabreForRainLoop\DAV\Auth\Backend;
namespace Sabre\DAV\Auth\Backend;
/**
* This is an authentication backend that uses a file to manage passwords.
*
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class PDO extends AbstractDigest {

View file

@ -1,7 +1,7 @@
<?php
namespace SabreForRainLoop\DAV\Auth;
use SabreForRainLoop\DAV;
namespace Sabre\DAV\Auth;
use Sabre\DAV;
/**
* This plugin provides Authentication for a WebDAV server.
@ -12,16 +12,16 @@ use SabreForRainLoop\DAV;
* * {DAV:}current-user-principal property from RFC5397
* * {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/)
* @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 {
/**
* Reference to main server object
*
* @var SabreForRainLoop\DAV\Server
* @var Sabre\DAV\Server
*/
protected $server;
@ -100,7 +100,7 @@ class Plugin extends DAV\ServerPlugin {
*
* @param string $method
* @param string $uri
* @throws SabreForRainLoop\DAV\Exception\NotAuthenticated
* @throws Sabre\DAV\Exception\NotAuthenticated
* @return bool
*/
public function beforeMethod($method, $uri) {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\DAV\Browser;
namespace Sabre\DAV\Browser;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* GuessContentType plugin
@ -15,9 +15,9 @@ use SabreForRainLoop\DAV;
* so this extension does what the rest of the world does, and guesses it based
* 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/)
* @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 {

View file

@ -1,8 +1,8 @@
<?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
@ -10,16 +10,16 @@ use SabreForRainLoop\DAV;
*
* 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/)
* @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 {
/**
* reference to server class
*
* @var SabreForRainLoop\DAV\Server
* @var Sabre\DAV\Server
*/
protected $server;

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\DAV\Browser;
namespace Sabre\DAV\Browser;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* Browser Plugin
@ -13,9 +13,9 @@ use SabreForRainLoop\DAV;
* The class intercepts GET requests to collection resources and generates a simple
* 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/)
* @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 {
@ -31,12 +31,12 @@ class Plugin extends DAV\ServerPlugin {
* @var array
*/
public $iconMap = array(
'SabreForRainLoop\\DAV\\IFile' => 'icons/file',
'SabreForRainLoop\\DAV\\ICollection' => 'icons/collection',
'SabreForRainLoop\\DAVACL\\IPrincipal' => 'icons/principal',
'SabreForRainLoop\\CalDAV\\ICalendar' => 'icons/calendar',
'SabreForRainLoop\\CardDAV\\IAddressBook' => 'icons/addressbook',
'SabreForRainLoop\\CardDAV\\ICard' => 'icons/card',
'Sabre\\DAV\\IFile' => 'icons/file',
'Sabre\\DAV\\ICollection' => 'icons/collection',
'Sabre\\DAVACL\\IPrincipal' => 'icons/principal',
'Sabre\\CalDAV\\ICalendar' => 'icons/calendar',
'Sabre\\CardDAV\\IAddressBook' => 'icons/addressbook',
'Sabre\\CardDAV\\ICard' => 'icons/card',
);
/**
@ -49,7 +49,7 @@ class Plugin extends DAV\ServerPlugin {
/**
* reference to server class
*
* @var SabreForRainLoop\DAV\Server
* @var Sabre\DAV\Server
*/
protected $server;
@ -374,7 +374,7 @@ class Plugin extends DAV\ServerPlugin {
$html.=$output;
$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>
</html>";
@ -400,7 +400,7 @@ class Plugin extends DAV\ServerPlugin {
// We also know fairly certain that if an object is a non-extended
// 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;
$output.= '<tr><td colspan="2"><form method="post" action="">

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\DAV;
namespace Sabre\DAV;
/**
* SabreDAV DAV client
@ -10,9 +10,9 @@ namespace SabreForRainLoop\DAV;
*
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class Client {
@ -24,7 +24,7 @@ class Client {
* respective class.
*
* The {DAV:}resourcetype property is automatically added. This maps to
* SabreForRainLoop\DAV\Property\ResourceType
* Sabre\DAV\Property\ResourceType
*
* @var array
*/
@ -103,7 +103,7 @@ class Client {
$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
* @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.= '<d:propfind xmlns:d="DAV:">' . "\n";
@ -304,8 +304,9 @@ class Client {
* @param string $url
* @param string $body
* @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);
@ -313,22 +314,29 @@ class Client {
CURLOPT_RETURNTRANSFER => true,
// Return headers as part of the response
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
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_MAXREDIRS => 5,
CURLOPT_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
CURLOPT_REDIR_PROTOCOLS => CURLPROTO_HTTP | CURLPROTO_HTTPS,
);
if($this->verifyPeer !== null) {
$curlSettings[CURLOPT_SSL_VERIFYPEER] = $this->verifyPeer;
// TODO rainloop
if (!$this->verifyPeer) {
$curlSettings[CURLOPT_SSL_VERIFYHOST] = 0;
} // ---
// TODO rainloop
if (!$this->verifyPeer) {
$curlSettings[CURLOPT_SSL_VERIFYHOST] = 0;
}
// END rainloop
}
if($this->trustedCertificates) {
if($this->trustedCertificates) {
$curlSettings[CURLOPT_CAINFO] = $this->trustedCertificates;
}
@ -375,9 +383,6 @@ class Client {
$curlSettings[CURLOPT_USERPWD] = $this->userName . ':' . $this->password;
}
// var_dump($url);
// var_dump($curlSettings);
list(
$response,
$curlInfo,
@ -385,12 +390,9 @@ class Client {
$curlError
) = $this->curlRequest($url, $curlSettings);
// var_dump($response);
$headerBlob = substr($response, 0, $curlInfo['header_size']);
$response = substr($response, $curlInfo['header_size']);
// 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
// because they are separated by \r\n\r\n
@ -417,7 +419,7 @@ class Client {
);
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) {
@ -468,70 +470,70 @@ class Client {
// @codeCoverageIgnoreStart
protected function curlRequest($url, $settings) {
// TODO rainloop
// TODO rainloop
$curl = curl_init($url);
if (ini_get('open_basedir') === '')
{
curl_setopt_array($curl, $settings);
$data = curl_exec($curl);
}
else
{
$settings[CURLOPT_FOLLOWLOCATION] = false;
curl_setopt_array($curl, $settings);
if (ini_get('open_basedir') === '')
{
curl_setopt_array($curl, $settings);
$data = curl_exec($curl);
}
else
{
$settings[CURLOPT_FOLLOWLOCATION] = false;
curl_setopt_array($curl, $settings);
$max_redirects = isset($settings[CURLOPT_MAXREDIRS]) ? $settings[CURLOPT_MAXREDIRS] : 5;
$mr = $max_redirects;
if ($mr > 0)
{
$newurl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL);
$max_redirects = isset($settings[CURLOPT_MAXREDIRS]) ? $settings[CURLOPT_MAXREDIRS] : 5;
$mr = $max_redirects;
if ($mr > 0)
{
$newurl = curl_getinfo($curl, CURLINFO_EFFECTIVE_URL);
$rcurl = curl_copy_handle($curl);
curl_setopt($rcurl, CURLOPT_HEADER, true);
curl_setopt($rcurl, CURLOPT_NOBODY, true);
curl_setopt($rcurl, CURLOPT_FORBID_REUSE, false);
curl_setopt($rcurl, CURLOPT_RETURNTRANSFER, true);
do
{
curl_setopt($rcurl, CURLOPT_URL, $newurl);
$header = curl_exec($rcurl);
if (curl_errno($rcurl))
{
$code = 0;
}
else
{
$code = curl_getinfo($rcurl, CURLINFO_HTTP_CODE);
if ($code == 301 || $code == 302)
{
$matches = array();
preg_match('/Location:(.*?)\n/', $header, $matches);
$newurl = trim(array_pop($matches));
}
else
{
$code = 0;
}
}
} while ($code && --$mr);
$rcurl = curl_copy_handle($curl);
curl_setopt($rcurl, CURLOPT_HEADER, true);
curl_setopt($rcurl, CURLOPT_NOBODY, true);
curl_setopt($rcurl, CURLOPT_FORBID_REUSE, false);
curl_setopt($rcurl, CURLOPT_RETURNTRANSFER, true);
do
{
curl_setopt($rcurl, CURLOPT_URL, $newurl);
$header = curl_exec($rcurl);
if (curl_errno($rcurl))
{
$code = 0;
}
else
{
$code = curl_getinfo($rcurl, CURLINFO_HTTP_CODE);
if ($code == 301 || $code == 302)
{
$matches = array();
preg_match('/Location:(.*?)\n/', $header, $matches);
$newurl = trim(array_pop($matches));
}
else
{
$code = 0;
}
}
} while ($code && --$mr);
curl_close($rcurl);
if ($mr > 0)
{
curl_setopt($curl, CURLOPT_URL, $newurl);
}
}
curl_close($rcurl);
if ($mr > 0)
{
curl_setopt($curl, CURLOPT_URL, $newurl);
}
}
if ($mr == 0 && $max_redirects > 0)
{
$data = false;
}
else
{
$data = curl_exec($curl);
}
}
if ($mr == 0 && $max_redirects > 0)
{
$data = false;
}
else
{
$data = curl_exec($curl);
}
}
return array(
$data,
@ -539,6 +541,17 @@ class Client {
curl_errno($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
@ -598,7 +611,12 @@ class Client {
$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);
libxml_disable_entity_loader($previous);
if ($responseXML===false) {
throw new \InvalidArgumentException('The passed data is not valid XML');
}

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\DAV;
namespace Sabre\DAV;
/**
* Collection class
@ -8,9 +8,9 @@ namespace SabreForRainLoop\DAV;
* This is a helper class, that should aid in getting collections classes setup.
* 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/)
* @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 {
@ -21,7 +21,7 @@ abstract class Collection extends Node implements ICollection {
* nodes, and compares the name.
* 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.
*
* @param string $name

View file

@ -5,12 +5,12 @@
*
* 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/)
* @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.

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
/**
* BadRequest
@ -8,11 +8,11 @@ namespace SabreForRainLoop\DAV\Exception;
* The BadRequest is thrown when the user submitted an invalid HTTP request
* 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/)
* @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

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
/**
* 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
* 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/)
* @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

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* ConflictingLock
@ -10,9 +10,9 @@ use SabreForRainLoop\DAV;
* Similar to the Locked exception, this exception thrown when a LOCK request
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
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
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
/**
* Forbidden
*
* 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/)
* @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

View file

@ -1,17 +1,17 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
/**
* InsufficientStorage
*
* 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/)
* @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

View file

@ -1,6 +1,6 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
/**
* InvalidResourceType
@ -10,9 +10,9 @@ namespace SabreForRainLoop\DAV\Exception;
*
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class InvalidResourceType extends Forbidden {
@ -23,7 +23,7 @@ class InvalidResourceType extends Forbidden {
* @param \DOMElement $errorNode
* @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');
$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
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* LockTokenMatchesRequestUri
*
* 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/)
* @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
* @license http://sabre.io/license/ Modified BSD License
*/
class LockTokenMatchesRequestUri extends Conflict {

View file

@ -1,24 +1,24 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* Locked
*
* 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/)
* @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 {
/**
* Lock information
*
* @var SabreForRainLoop\DAV\Locks\LockInfo
* @var Sabre\DAV\Locks\LockInfo
*/
protected $lock;

View file

@ -1,17 +1,17 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
/**
* MethodNotAllowed
*
* 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/)
* @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
@ -29,10 +29,10 @@ class MethodNotAllowed extends \SabreForRainLoop\DAV\Exception {
*
* The headers must be returned as an array.
*
* @param \SabreForRainLoop\DAV\Server $server
* @param \Sabre\DAV\Server $server
* @return array
*/
public function getHTTPHeaders(\SabreForRainLoop\DAV\Server $server) {
public function getHTTPHeaders(\Sabre\DAV\Server $server) {
$methods = $server->getAllowedMethods($server->getRequestUri());

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* NotAuthenticated
@ -10,9 +10,9 @@ use SabreForRainLoop\DAV;
* This exception is thrown when the client did not provide valid
* 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/)
* @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 {

View file

@ -1,17 +1,17 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
/**
* NotFound
*
* 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/)
* @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

View file

@ -1,17 +1,17 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
/**
* NotImplemented
*
* 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/)
* @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

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* Payment Required
@ -10,9 +10,9 @@ use SabreForRainLoop\DAV;
* The PaymentRequired exception may be thrown in a case where a user must pay
* 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/)
* @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 {

View file

@ -1,8 +1,8 @@
<?php
namespace SabreForRainLoop\DAV\Exception;
namespace Sabre\DAV\Exception;
use SabreForRainLoop\DAV;
use Sabre\DAV;
/**
* PreconditionFailed
@ -11,9 +11,9 @@ use SabreForRainLoop\DAV;
* 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)
*
* @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/)
* @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 {

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