Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F988092
PHUICurtainObjectRefListView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PHUICurtainObjectRefListView.php
View Options
<?php
final
class
PHUICurtainObjectRefListView
extends
AphrontTagView
{
private
$refs
=
array
();
private
$emptyMessage
;
private
$tail
=
array
();
protected
function
getTagAttributes
()
{
return
array
(
'class'
=>
'phui-curtain-object-ref-list-view'
,
);
}
public
function
setEmptyMessage
(
$empty_message
)
{
$this
->
emptyMessage
=
$empty_message
;
return
$this
;
}
protected
function
getTagContent
()
{
$refs
=
$this
->
refs
;
if
(!
$refs
&&
(
$this
->
emptyMessage
!==
null
))
{
$view
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-curtain-object-ref-list-view-empty'
,
),
$this
->
emptyMessage
);
}
else
{
$view
=
$refs
;
}
$tail
=
null
;
if
(
$this
->
tail
)
{
$tail
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-curtain-object-ref-list-view-tail'
,
),
$this
->
tail
);
}
return
array
(
$view
,
$tail
,
);
}
public
function
newObjectRefView
()
{
$ref_view
=
id
(
new
PHUICurtainObjectRefView
())
->
setViewer
(
$this
->
getViewer
());
$this
->
refs
[]
=
$ref_view
;
return
$ref_view
;
}
public
function
newTailLink
()
{
$link
=
new
PHUILinkView
();
$this
->
tail
[]
=
$link
;
return
$link
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 6:59 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
213546
Default Alt Text
PHUICurtainObjectRefListView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment