Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93513530
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 29, 09:01
Size
669 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 09:01 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22657773
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