Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102365274
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
Wed, Feb 19, 23:09
Size
783 B
Mime Type
text/x-php
Expires
Fri, Feb 21, 23:09 (2 d)
Engine
blob
Format
Raw Data
Handle
24276645
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
;
}
public
function
getTagName
()
{
return
'div'
;
}
public
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