Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99129653
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
Mon, Jan 20, 21:55
Size
669 B
Mime Type
text/x-php
Expires
Wed, Jan 22, 21:55 (2 d)
Engine
blob
Format
Raw Data
Handle
23710950
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