Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92661671
PhabricatorPinboardView.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
Fri, Nov 22, 12:46
Size
850 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 12:46 (2 d)
Engine
blob
Format
Raw Data
Handle
22481096
Attached To
rPH Phabricator
PhabricatorPinboardView.php
View Options
<?php
final
class
PhabricatorPinboardView
extends
AphrontView
{
private
$items
=
array
();
private
$noDataString
;
public
function
setNoDataString
(
$no_data_string
)
{
$this
->
noDataString
=
$no_data_string
;
return
$this
;
}
public
function
addItem
(
PhabricatorPinboardItemView
$item
)
{
$this
->
items
[]
=
$item
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'phabricator-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'
=>
'phabricator-pinboard-view'
,
),
$this
->
renderSingleView
(
$this
->
items
));
}
}
Event Timeline
Log In to Comment