Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93019616
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
Mon, Nov 25, 15:03
Size
763 B
Mime Type
text/x-php
Expires
Wed, Nov 27, 15:03 (2 d)
Engine
blob
Format
Raw Data
Handle
22559362
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