Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96123678
PHUIHandleView.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
Sun, Dec 22, 21:51
Size
848 B
Mime Type
text/x-php
Expires
Tue, Dec 24, 21:51 (2 d)
Engine
blob
Format
Raw Data
Handle
23127674
Attached To
rPH Phabricator
PHUIHandleView.php
View Options
<?php
/**
* Convenience class for rendering a single handle.
*
* This class simplifies rendering a single handle, and improves loading and
* caching semantics in the rendering pipeline by loading data at the last
* moment.
*/
final
class
PHUIHandleView
extends
AphrontView
{
private
$handleList
;
private
$handlePHID
;
private
$asTag
;
public
function
setHandleList
(
PhabricatorHandleList
$list
)
{
$this
->
handleList
=
$list
;
return
$this
;
}
public
function
setHandlePHID
(
$phid
)
{
$this
->
handlePHID
=
$phid
;
return
$this
;
}
public
function
setAsTag
(
$tag
)
{
$this
->
asTag
=
$tag
;
return
$this
;
}
public
function
render
()
{
$handle
=
$this
->
handleList
[
$this
->
handlePHID
];
if
(
$this
->
asTag
)
{
return
$handle
->
renderTag
();
}
else
{
return
$handle
->
renderLink
();
}
}
}
Event Timeline
Log In to Comment