Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852675
AphrontFormTextWithSubmitControl.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
AphrontFormTextWithSubmitControl.php
View Options
<?php
final
class
AphrontFormTextWithSubmitControl
extends
AphrontFormControl
{
private
$submitLabel
;
public
function
setSubmitLabel
(
$submit_label
)
{
$this
->
submitLabel
=
$submit_label
;
return
$this
;
}
public
function
getSubmitLabel
(
)
{
return
$this
->
submitLabel
;
}
protected
function
getCustomControlClass
(
)
{
return
'aphront-form-control-text-with-submit'
;
}
protected
function
renderInput
(
)
{
return
phutil_tag
(
'div'
,
array
(
'class'
=>
'text-with-submit-control-outer-bounds'
,
)
,
array
(
phutil_tag
(
'div'
,
array
(
'class'
=>
'text-with-submit-control-text-bounds'
,
)
,
javelin_tag
(
'input'
,
array
(
'type'
=>
'text'
,
'class'
=>
'text-with-submit-control-text'
,
'name'
=>
$this
->
getName
(
)
,
'value'
=>
$this
->
getValue
(
)
,
'disabled'
=>
$this
->
getDisabled
(
)
?
'disabled'
:
null
,
'id'
=>
$this
->
getID
(
)
,
)
)
)
,
phutil_tag
(
'div'
,
array
(
'class'
=>
'text-with-submit-control-submit-bounds'
,
)
,
javelin_tag
(
'input'
,
array
(
'type'
=>
'submit'
,
'class'
=>
'text-with-submit-control-submit grey'
,
'value'
=>
coalesce
(
$this
->
getSubmitLabel
(
)
,
pht
(
'Submit'
)
)
,
)
)
)
,
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:47 (3 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1761810
Default Alt Text
AphrontFormTextWithSubmitControl.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment