Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F432432
PhabricatorPinboardView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
877 B
Referenced Files
None
Subscribers
None
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
(
phutil_escape_html
(
$string
))
->
render
();
}
return
phutil_render_tag
(
'div'
,
array
(
'class'
=>
'phabricator-pinboard-view'
,
),
$this
->
renderSingleView
(
$this
->
items
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 2:02 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
60622
Default Alt Text
PhabricatorPinboardView.php (877 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment