Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97231761
AphrontContextBarView.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, Jan 3, 15:51
Size
740 B
Mime Type
text/x-php
Expires
Sun, Jan 5, 15:51 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23360310
Attached To
rPH Phabricator
AphrontContextBarView.php
View Options
<?php
final
class
AphrontContextBarView
extends
AphrontView
{
protected
$buttons
=
array
();
public
function
addButton
(
$button
)
{
$this
->
buttons
[]
=
$button
;
return
$this
;
}
public
function
render
()
{
$view
=
new
AphrontNullView
();
$view
->
appendChild
(
$this
->
buttons
);
require_celerity_resource
(
'aphront-contextbar-view-css'
);
return
hsprintf
(
'<div class="aphront-contextbar-view">'
.
'<div class="aphront-contextbar-core">'
.
'<div class="aphront-contextbar-buttons">%s</div>'
.
'<div class="aphront-contextbar-content">%s</div>'
.
'</div>'
.
'<div style="clear: both;"></div>'
.
'</div>'
,
$view
->
render
(),
$this
->
renderChildren
());
}
}
Event Timeline
Log In to Comment