Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98078238
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
Thu, Jan 9, 13:44
Size
791 B
Mime Type
text/x-php
Expires
Sat, Jan 11, 13:44 (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
23499897
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
PHUIErrorView
())
->
setSeverity
(
PHUIErrorView
::
SEVERITY_NODATA
)
->
appendChild
(
$string
)
->
render
();
}
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-pinboard-view'
,
),
$this
->
items
);
}
}
Event Timeline
Log In to Comment