Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852228
PhabricatorAnchorView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
912 B
Referenced Files
None
Subscribers
None
PhabricatorAnchorView.php
View Options
<?php
final
class
PhabricatorAnchorView
extends
AphrontView
{
private
$anchorName
;
private
$navigationMarker
;
public
function
setAnchorName
(
$name
)
{
$this
->
anchorName
=
$name
;
return
$this
;
}
public
function
setNavigationMarker
(
$marker
)
{
$this
->
navigationMarker
=
$marker
;
return
$this
;
}
public
function
render
(
)
{
$marker
=
null
;
if
(
$this
->
navigationMarker
)
{
$marker
=
javelin_tag
(
'legend'
,
array
(
'class'
=>
'phabricator-anchor-navigation-marker'
,
'sigil'
=>
'marker'
,
'meta'
=>
array
(
'anchor'
=>
$this
->
anchorName
,
)
,
)
,
''
)
;
}
$anchor
=
phutil_tag
(
'a'
,
array
(
'name'
=>
$this
->
anchorName
,
'id'
=>
$this
->
anchorName
,
'class'
=>
'phabricator-anchor-view'
,
)
,
''
)
;
return
array
(
$marker
,
$anchor
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:16 (1 d, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1762928
Default Alt Text
PhabricatorAnchorView.php (912 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment