aboutsummaryrefslogtreecommitdiffstats
path: root/lib/vobject.php
diff options
context:
space:
mode:
authorSusinthiran Sithamparanathan <chesusin@gmail.com>2012-10-17 12:25:34 +0200
committerSusinthiran Sithamparanathan <chesusin@gmail.com>2012-10-17 16:17:36 +0200
commitb2b84f3a6f3c98005f80c6c7c558a33b4ea36193 (patch)
tree1ae0c571e25ab7322e9a942dfdcc593f67e98ad6 /lib/vobject.php
parent45dec77d92c9a7804489bee34b218bbe8c85f7c5 (diff)
downloadnextcloud-server-b2b84f3a6f3c98005f80c6c7c558a33b4ea36193.tar.gz
nextcloud-server-b2b84f3a6f3c98005f80c6c7c558a33b4ea36193.zip
Update Sabre to version 1.7.1
Diffstat (limited to 'lib/vobject.php')
-rw-r--r--lib/vobject.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/vobject.php b/lib/vobject.php
index b5a04b4bf65..5070c3f1ee6 100644
--- a/lib/vobject.php
+++ b/lib/vobject.php
@@ -24,11 +24,11 @@
* This class provides a streamlined interface to the Sabre VObject classes
*/
class OC_VObject{
- /** @var Sabre_VObject_Component */
+ /** @var Sabre\VObject\Component */
protected $vobject;
/**
- * @returns Sabre_VObject_Component
+ * @returns Sabre\VObject\Component
*/
public function getVObject() {
return $this->vobject;
@@ -41,9 +41,9 @@ class OC_VObject{
*/
public static function parse($data) {
try {
- Sabre_VObject_Property::$classMap['LAST-MODIFIED'] = 'Sabre_VObject_Property_DateTime';
- $vobject = Sabre_VObject_Reader::read($data);
- if ($vobject instanceof Sabre_VObject_Component) {
+ Sabre\VObject\Property::$classMap['LAST-MODIFIED'] = 'Sabre\VObject\Property\DateTime';
+ $vobject = Sabre\VObject\Reader::read($data);
+ if ($vobject instanceof Sabre\VObject\Component) {
$vobject = new OC_VObject($vobject);
}
return $vobject;
@@ -89,13 +89,13 @@ class OC_VObject{
/**
* Constuctor
- * @param Sabre_VObject_Component or string
+ * @param Sabre\VObject\Component or string
*/
public function __construct($vobject_or_name) {
if (is_object($vobject_or_name)) {
$this->vobject = $vobject_or_name;
} else {
- $this->vobject = new Sabre_VObject_Component($vobject_or_name);
+ $this->vobject = new Sabre\VObject\Component($vobject_or_name);
}
}
@@ -117,9 +117,9 @@ class OC_VObject{
if(is_array($value)) {
$value = OC_VObject::escapeSemicolons($value);
}
- $property = new Sabre_VObject_Property( $name, $value );
+ $property = new Sabre\VObject\Property( $name, $value );
foreach($parameters as $name => $value) {
- $property->parameters[] = new Sabre_VObject_Parameter($name, $value);
+ $property->parameters[] = new Sabre\VObject\Parameter($name, $value);
}
$this->vobject->add($property);
@@ -150,12 +150,12 @@ class OC_VObject{
* @param int $dateType
* @return void
*/
- public function setDateTime($name, $datetime, $dateType=Sabre_VObject_Property_DateTime::LOCALTZ) {
+ public function setDateTime($name, $datetime, $dateType=Sabre\VObject\Property\DateTime::LOCALTZ) {
if ($datetime == 'now') {
$datetime = new DateTime();
}
if ($datetime instanceof DateTime) {
- $datetime_element = new Sabre_VObject_Property_DateTime($name);
+ $datetime_element = new Sabre\VObject\Property\DateTime($name);
$datetime_element->setDateTime($datetime, $dateType);
$this->vobject->__set($name, $datetime_element);
}else{
@@ -183,7 +183,7 @@ class OC_VObject{
return $this->vobject->children;
}
$return = $this->vobject->__get($name);
- if ($return instanceof Sabre_VObject_Component) {
+ if ($return instanceof Sabre\VObject\Component) {
$return = new OC_VObject($return);
}
return $return;