Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101677739
PHUIPinboardView.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 12, 16:56
Size
797 B
Mime Type
text/x-php
Expires
Fri, Feb 14, 16:56 (2 d)
Engine
blob
Format
Raw Data
Handle
24186633
Attached To
rPH Phabricator
PHUIPinboardView.php
View Options
<?php
final
class
PHUIPinboardView
extends
AphrontView
{
private
$items
=
array
();
private
$noDataString
;
public
function
setNoDataString
(
$no_data_string
)
{
$this
->
noDataString
=
$no_data_string
;
return
$this
;
}
public
function
addItem
(
PHUIPinboardItemView
$item
)
{
$this
->
items
[]
=
$item
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'phui-pinboard-view-css'
);
if
(!
$this
->
items
)
{
$string
=
nonempty
(
$this
->
noDataString
,
pht
(
'No data.'
));
return
id
(
new
AphrontErrorView
())
->
setSeverity
(
AphrontErrorView
::
SEVERITY_NODATA
)
->
appendChild
(
$string
)
->
render
();
}
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-pinboard-view'
,
),
$this
->
items
);
}
}
Event Timeline
Log In to Comment