Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117758063
Vtodo.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1013 B
Referenced Files
None
Subscribers
None
Vtodo.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rK kolab
Attached
Detach File
Event Timeline