Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98641282
PHUITwoColumnView.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
Wed, Jan 15, 04:33
Size
897 B
Mime Type
text/x-php
Expires
Fri, Jan 17, 04:33 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
23602462
Attached To
rPH Phabricator
PHUITwoColumnView.php
View Options
<?php
final
class
PHUITwoColumnView
extends
AphrontTagView
{
private
$mainColumn
;
private
$sideColumn
;
public
function
setMainColumn
(
$main
)
{
$this
->
mainColumn
=
$main
;
return
$this
;
}
public
function
setSideColumn
(
$side
)
{
$this
->
sideColumn
=
$side
;
return
$this
;
}
protected
function
getTagAttributes
()
{
return
array
(
'class'
=>
'phui-two-column-view grouped'
,
);
}
protected
function
getTagContent
()
{
require_celerity_resource
(
'phui-two-column-view-css'
);
$main
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-main-column'
,
),
$this
->
mainColumn
);
$side
=
phutil_tag
(
'div'
,
array
(
'class'
=>
'phui-side-column'
,
),
$this
->
sideColumn
);
return
phutil_tag_div
(
'phui-two-column-row'
,
array
(
$main
,
$side
,
));
}
}
Event Timeline
Log In to Comment