Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99770905
PhabricatorMainMenuGroupView.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
Sun, Jan 26, 13:31
Size
753 B
Mime Type
text/x-php
Expires
Tue, Jan 28, 13:31 (2 d)
Engine
blob
Format
Raw Data
Handle
23817281
Attached To
rPH Phabricator
PhabricatorMainMenuGroupView.php
View Options
<?php
final
class
PhabricatorMainMenuGroupView
extends
AphrontView
{
private
$collapsible
=
true
;
private
$classes
=
array
();
public
function
addClass
(
$class
)
{
$this
->
classes
[]
=
$class
;
return
$this
;
}
public
function
setCollapsible
(
$collapsible
)
{
$this
->
collapsible
=
$collapsible
;
return
$this
;
}
public
function
render
()
{
$classes
=
array
(
'phabricator-main-menu-group'
,
);
if
(
$this
->
collapsible
)
{
$classes
[]
=
'phabricator-main-menu-collapsible'
;
}
if
(
$this
->
classes
)
{
$classes
=
array_merge
(
$classes
,
$this
->
classes
);
}
return
phutil_tag
(
'div'
,
array
(
'class'
=>
implode
(
' '
,
$classes
),
),
$this
->
renderChildren
());
}
}
Event Timeline
Log In to Comment