Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121914065
PhabricatorAnchorView.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
Mon, Jul 14, 19:29
Size
935 B
Mime Type
text/x-php
Expires
Wed, Jul 16, 19:29 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
27412379
Attached To
rPH Phabricator
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
$this
->
renderHTMLView
(
array
(
$marker
,
$anchor
));
}
}
Event Timeline
Log In to Comment