Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F992876
AphrontFormLayoutView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
942 B
Referenced Files
None
Subscribers
None
AphrontFormLayoutView.php
View Options
<?php
/**
* This provides the layout of an AphrontFormView without actually providing
* the <form /> tag. Useful on its own for creating forms in other forms (like
* dialogs) or forms which aren't submittable.
*/
final
class
AphrontFormLayoutView
extends
AphrontView
{
private
$backgroundShading
;
private
$padded
;
public
function
setBackgroundShading
(
$shading
)
{
$this
->
backgroundShading
=
$shading
;
return
$this
;
}
public
function
setPadded
(
$padded
)
{
$this
->
padded
=
$padded
;
return
$this
;
}
public
function
render
()
{
$classes
=
array
(
'aphront-form-view'
);
if
(
$this
->
backgroundShading
)
{
$classes
[]
=
'aphront-form-view-shaded'
;
}
if
(
$this
->
padded
)
{
$classes
[]
=
'aphront-form-view-padded'
;
}
$classes
=
implode
(
' '
,
$classes
);
return
phutil_tag
(
'div'
,
array
(
'class'
=>
$classes
,
),
$this
->
renderHTMLChildren
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 11:08 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
240571
Default Alt Text
AphrontFormLayoutView.php (942 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment