Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F436242
AphrontFormSubmitControl.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
846 B
Referenced Files
None
Subscribers
None
AphrontFormSubmitControl.php
View Options
<?php
final
class
AphrontFormSubmitControl
extends
AphrontFormControl
{
protected
$cancelButton
;
public
function
addCancelButton
(
$href
,
$label
=
'Cancel'
)
{
$this
->
cancelButton
=
phutil_tag
(
'a'
,
array
(
'href'
=>
$href
,
'class'
=>
'button grey'
,
),
$label
);
return
$this
;
}
protected
function
getCustomControlClass
()
{
return
'aphront-form-control-submit'
;
}
protected
function
renderInput
()
{
$submit_button
=
null
;
if
(
$this
->
getValue
())
{
$submit_button
=
phutil_tag
(
'button'
,
array
(
'type'
=>
'submit'
,
'name'
=>
'__submit__'
,
'disabled'
=>
$this
->
getDisabled
()
?
'disabled'
:
null
,
),
$this
->
getValue
());
}
return
hsprintf
(
'%s%s'
,
$submit_button
,
$this
->
cancelButton
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 10:41 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
61628
Default Alt Text
AphrontFormSubmitControl.php (846 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment