Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8888137
AphrontFormTextControl.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
AphrontFormTextControl.php
View Options
<?php
final
class
AphrontFormTextControl
extends
AphrontFormControl
{
private
$disableAutocomplete
;
private
$sigil
;
private
$placeholder
;
private
$autofocus
;
public
function
setDisableAutocomplete
(
$disable
)
{
$this
->
disableAutocomplete
=
$disable
;
return
$this
;
}
private
function
getDisableAutocomplete
()
{
return
$this
->
disableAutocomplete
;
}
public
function
getPlaceholder
()
{
return
$this
->
placeholder
;
}
public
function
setPlaceholder
(
$placeholder
)
{
$this
->
placeholder
=
$placeholder
;
return
$this
;
}
public
function
setAutofocus
(
$autofocus
)
{
$this
->
autofocus
=
$autofocus
;
return
$this
;
}
public
function
getAutofocus
()
{
return
$this
->
autofocus
;
}
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
(),
'placeholder'
=>
$this
->
getPlaceholder
(),
'autofocus'
=>
(
$this
->
getAutofocus
()
?
'autofocus'
:
null
),
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jun 10, 5:02 AM (1 d, 23 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
3385879
Default Alt Text
AphrontFormTextControl.php (1 KB)
Attached To
rP Phabricator
Event Timeline
Log In to Comment