Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106344906
AphrontCalendarEventView.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
Tue, Mar 25, 00:15
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Mar 27, 00:15 (2 d)
Engine
blob
Format
Raw Data
Handle
25170148
Attached To
rPH Phabricator
AphrontCalendarEventView.php
View Options
<?php
final
class
AphrontCalendarEventView
extends
AphrontView
{
private
$userPHID
;
private
$name
;
private
$epochStart
;
private
$epochEnd
;
private
$description
;
private
$eventID
;
private
$color
;
public
function
setEventID
(
$event_id
)
{
$this
->
eventID
=
$event_id
;
return
$this
;
}
public
function
getEventID
()
{
return
$this
->
eventID
;
}
public
function
setUserPHID
(
$user_phid
)
{
$this
->
userPHID
=
$user_phid
;
return
$this
;
}
public
function
getUserPHID
()
{
return
$this
->
userPHID
;
}
public
function
setName
(
$name
)
{
$this
->
name
=
$name
;
return
$this
;
}
public
function
setEpochRange
(
$start
,
$end
)
{
$this
->
epochStart
=
$start
;
$this
->
epochEnd
=
$end
;
return
$this
;
}
public
function
getEpochStart
()
{
return
$this
->
epochStart
;
}
public
function
getEpochEnd
()
{
return
$this
->
epochEnd
;
}
public
function
getName
()
{
return
$this
->
name
;
}
public
function
setDescription
(
$description
)
{
$this
->
description
=
$description
;
return
$this
;
}
public
function
getDescription
()
{
return
$this
->
description
;
}
public
function
setColor
(
$color
)
{
$this
->
color
=
$color
;
return
$this
;
}
public
function
getColor
()
{
if
(
$this
->
color
)
{
return
$this
->
color
;
}
else
{
return
CalendarColors
::
COLOR_SKY
;
}
}
public
function
render
()
{
throw
new
Exception
(
"Events are only rendered indirectly."
);
}
}
Event Timeline
Log In to Comment