Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F73869235
PhutilCalendarEventNode.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 24, 23:10
Size
2 KB
Mime Type
text/x-php
Expires
Fri, Jul 26, 23:10 (2 d)
Engine
blob
Format
Raw Data
Handle
19267965
Attached To
rPHU libphutil
PhutilCalendarEventNode.php
View Options
<?php
final
class
PhutilCalendarEventNode
extends
PhutilCalendarNode
{
const
NODETYPE
=
'event'
;
private
$uid
;
private
$name
;
private
$description
;
private
$startDateTime
;
private
$endDateTime
;
private
$duration
;
private
$createdDateTime
;
private
$modifiedDateTime
;
private
$organizer
;
private
$attendees
=
array
();
public
function
setUID
(
$uid
)
{
$this
->
uid
=
$uid
;
return
$this
;
}
public
function
getUID
()
{
return
$this
->
uid
;
}
public
function
setName
(
$name
)
{
$this
->
name
=
$name
;
return
$this
;
}
public
function
getName
()
{
return
$this
->
name
;
}
public
function
setDescription
(
$description
)
{
$this
->
description
=
$description
;
return
$this
;
}
public
function
getDescription
()
{
return
$this
->
description
;
}
public
function
setStartDateTime
(
PhutilCalendarDateTime
$start
)
{
$this
->
startDateTime
=
$start
;
return
$this
;
}
public
function
getStartDateTime
()
{
return
$this
->
startDateTime
;
}
public
function
setEndDateTime
(
PhutilCalendarDateTime
$end
)
{
$this
->
endDateTime
=
$end
;
return
$this
;
}
public
function
getEndDateTime
()
{
$end
=
$this
->
endDateTime
;
if
(
$end
)
{
return
$end
;
}
$start
=
$this
->
getStartDateTime
();
$duration
=
$this
->
getDuration
();
if
(
$start
&&
$duration
)
{
return
id
(
new
PhutilCalendarRelativeDateTime
())
->
setOrigin
(
$start
)
->
setDuration
(
$duration
);
}
return
null
;
}
public
function
setDuration
(
PhutilCalendarDuration
$duration
)
{
$this
->
duration
=
$duration
;
return
$this
;
}
public
function
getDuration
()
{
return
$this
->
duration
;
}
public
function
setCreatedDateTime
(
PhutilCalendarDateTime
$created
)
{
$this
->
createdDateTime
=
$created
;
return
$this
;
}
public
function
getCreatedDateTime
()
{
return
$this
->
createdDateTime
;
}
public
function
setModifiedDateTime
(
PhutilCalendarDateTime
$modified
)
{
$this
->
modifiedDateTime
=
$modified
;
return
$this
;
}
public
function
getModifiedDateTime
()
{
return
$this
->
modifiedDateTime
;
}
public
function
setOrganizer
(
PhutilCalendarUserNode
$organizer
)
{
$this
->
organizer
=
$organizer
;
return
$this
;
}
public
function
getOrganizer
()
{
return
$this
->
organizer
;
}
public
function
setAttendees
(
array
$attendees
)
{
assert_instances_of
(
$attendees
,
'PhutilCalendarUserNode'
);
$this
->
attendees
=
$attendees
;
return
$this
;
}
public
function
getAttendees
()
{
return
$this
->
attendees
;
}
public
function
addAttendee
(
PhutilCalendarUserNode
$attendee
)
{
$this
->
attendees
[]
=
$attendee
;
return
$this
;
}
}
Event Timeline
Log In to Comment