Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F74176426
AphrontFormPasswordControl.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
Fri, Jul 26, 07:30
Size
748 B
Mime Type
text/x-php
Expires
Sun, Jul 28, 07:30 (2 d)
Engine
blob
Format
Raw Data
Handle
19348291
Attached To
rPH Phabricator
AphrontFormPasswordControl.php
View Options
<?php
final
class
AphrontFormPasswordControl
extends
AphrontFormControl
{
private
$disableAutocomplete
;
public
function
setDisableAutocomplete
(
$disable_autocomplete
)
{
$this
->
disableAutocomplete
=
$disable_autocomplete
;
return
$this
;
}
protected
function
getCustomControlClass
()
{
return
'aphront-form-control-password'
;
}
protected
function
renderInput
()
{
return
phutil_tag
(
'input'
,
array
(
'type'
=>
'password'
,
'name'
=>
$this
->
getName
(),
'value'
=>
$this
->
getValue
(),
'disabled'
=>
$this
->
getDisabled
()
?
'disabled'
:
null
,
'autocomplete'
=>
(
$this
->
disableAutocomplete
?
'off'
:
null
),
'id'
=>
$this
->
getID
(),
));
}
}
Event Timeline
Log In to Comment