Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101928856
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
Sat, Feb 15, 06:33
Size
797 B
Mime Type
text/x-php
Expires
Mon, Feb 17, 06:33 (2 d)
Engine
blob
Format
Raw Data
Handle
24247634
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