Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1599990
PHUILeftRightView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PHUILeftRightView.php
View Options
<?php
final
class
PHUILeftRightView
extends
AphrontTagView
{
private
$left
;
private
$right
;
private
$verticalAlign
;
const
ALIGN_TOP
=
'top'
;
const
ALIGN_MIDDLE
=
'middle'
;
const
ALIGN_BOTTOM
=
'bottom'
;
public
function
setLeft
(
$left
)
{
$this
->
left
=
$left
;
return
$this
;
}
public
function
setRight
(
$right
)
{
$this
->
right
=
$right
;
return
$this
;
}
public
function
setVerticalAlign
(
$align
)
{
$this
->
verticalAlign
=
$align
;
return
$this
;
}
protected
function
getTagAttributes
()
{
require_celerity_resource
(
'phui-left-right-css'
);
$classes
=
array
();
$classes
[]
=
'phui-left-right-view'
;
if
(
$this
->
verticalAlign
)
{
$classes
[]
=
'phui-lr-view-'
.
$this
->
verticalAlign
;
}
return
array
(
'class'
=>
implode
(
' '
,
$classes
));
}
protected
function
getTagName
()
{
return
'div'
;
}
protected
function
getTagContent
()
{
$left
=
phutil_tag_div
(
'phui-left-view'
,
$this
->
left
);
$right
=
phutil_tag_div
(
'phui-right-view'
,
$this
->
right
);
return
phutil_tag_div
(
'phui-lr-container'
,
array
(
$left
,
$right
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 16, 9:18 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
360745
Default Alt Text
PHUILeftRightView.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment