Page MenuHomePhorge

Vtodo.php
No OneTemporary

Authored By
Unknown
Size
1013 B
Referenced Files
None
Subscribers
None

Vtodo.php

<?php
namespace App\Backends\DAV;
use Sabre\VObject\Component;
use Sabre\VObject\Property;
class Vtodo extends Vevent
{
public $due;
public $percentComplete;
/**
* Set object properties from a Sabre/VObject component object
*
* @param Component $vobject Sabre/VObject component
*/
public function fromVObject(Component $vobject): void
{
// Handle common properties with VEVENT
parent::fromVObject($vobject);
// map other properties
foreach ($vobject->children() as $prop) {
if (!$prop instanceof Property) {
continue;
}
switch ($prop->name) {
case 'DUE':
// This is of type Sabre\VObject\Property\ICalendar\DateTime
$this->due = $prop;
break;
case 'PERCENT-COMPLETE':
$this->percentComplete = $prop->getValue();
break;
}
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Apr 4, 9:35 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823482
Default Alt Text
Vtodo.php (1013 B)

Event Timeline