Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92659589
AphrontCrumbsView.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
Fri, Nov 22, 12:10
Size
669 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 12:10 (2 d)
Engine
blob
Format
Raw Data
Handle
22480980
Attached To
rPH Phabricator
AphrontCrumbsView.php
View Options
<?php
final
class
AphrontCrumbsView
extends
AphrontView
{
private
$crumbs
=
array
();
public
function
setCrumbs
(
array
$crumbs
)
{
$this
->
crumbs
=
$crumbs
;
return
$this
;
}
public
function
render
()
{
require_celerity_resource
(
'aphront-crumbs-view-css'
);
$out
=
array
();
foreach
(
$this
->
crumbs
as
$crumb
)
{
$out
[]
=
$this
->
renderSingleView
(
$crumb
);
}
$out
=
phutil_implode_html
(
hsprintf
(
'<span class="aphront-crumbs-spacer">'
.
"
\x
C2
\x
BB"
.
'</span>'
),
$out
);
return
hsprintf
(
'<div class="aphront-crumbs-view">'
.
'<div class="aphront-crumbs-content">%s</div>'
.
'</div>'
,
$out
);
}
}
Event Timeline
Log In to Comment