Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F458693
PHUIPinboardView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
797 B
Referenced Files
None
Subscribers
None
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 12:30 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
71518
Default Alt Text
PHUIPinboardView.php (797 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment