Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F973016
PHUIPinboardView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
788 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
PHUIInfoView
())
->
setSeverity
(
PHUIInfoView
::
SEVERITY_NODATA
)
->
appendChild
(
$string
)
->
render
();
}
return
phutil_tag
(
'ul'
,
array
(
'class'
=>
'phui-pinboard-view'
,
),
$this
->
items
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 6:33 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
224490
Default Alt Text
PHUIPinboardView.php (788 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment