Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97802558
PHUICalendarWidgetView.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
Mon, Jan 6, 13:19
Size
789 B
Mime Type
text/x-php
Expires
Wed, Jan 8, 13:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23454129
Attached To
rPH Phabricator
PHUICalendarWidgetView.php
View Options
<?php
final
class
PHUICalendarWidgetView
extends
AphrontTagView
{
private
$header
;
private
$list
;
public
function
setHeader
(
$date
)
{
$this
->
header
=
$date
;
return
$this
;
}
public
function
setCalendarList
(
PHUICalendarListView
$list
)
{
$this
->
list
=
$list
;
return
$this
;
}
protected
function
getTagName
()
{
return
'div'
;
}
protected
function
getTagAttributes
()
{
require_celerity_resource
(
'phui-calendar-list-css'
);
return
array
(
'class'
=>
'phui-calendar-list-container'
);
}
protected
function
getTagContent
()
{
$header
=
id
(
new
PHUIHeaderView
())
->
setHeader
(
$this
->
header
);
$box
=
id
(
new
PHUIObjectBoxView
())
->
setHeader
(
$header
)
->
setFlush
(
true
)
->
appendChild
(
$this
->
list
);
return
$box
;
}
}
Event Timeline
Log In to Comment