Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96591693
AphrontFormTextControl.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
Sat, Dec 28, 16:07
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Dec 30, 16:07 (2 d)
Engine
blob
Format
Raw Data
Handle
23213263
Attached To
rPH Phabricator
AphrontFormTextControl.php
View Options
<?php
final
class
AphrontFormTextControl
extends
AphrontFormControl
{
private
$disableAutocomplete
;
private
$sigil
;
public
function
setDisableAutocomplete
(
$disable
)
{
$this
->
disableAutocomplete
=
$disable
;
return
$this
;
}
private
function
getDisableAutocomplete
()
{
return
$this
->
disableAutocomplete
;
}
public
function
getSigil
()
{
return
$this
->
sigil
;
}
public
function
setSigil
(
$sigil
)
{
$this
->
sigil
=
$sigil
;
return
$this
;
}
protected
function
getCustomControlClass
()
{
return
'aphront-form-control-text'
;
}
protected
function
renderInput
()
{
return
javelin_tag
(
'input'
,
array
(
'type'
=>
'text'
,
'name'
=>
$this
->
getName
(),
'value'
=>
$this
->
getValue
(),
'disabled'
=>
$this
->
getDisabled
()
?
'disabled'
:
null
,
'autocomplete'
=>
$this
->
getDisableAutocomplete
()
?
'off'
:
null
,
'id'
=>
$this
->
getID
(),
'sigil'
=>
$this
->
getSigil
(),
));
}
}
Event Timeline
Log In to Comment