Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F117347073
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, Jun 13, 05:08
Size
669 B
Mime Type
text/x-php
Expires
Sun, Jun 15, 05:08 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26647386
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