Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F447967
AphrontFormTextControl.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
AphrontFormTextControl.php
View Options
<?php
final
class
AphrontFormTextControl
extends
AphrontFormControl
{
private
$disableAutocomplete
;
private
$sigil
;
private
$placeholder
;
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
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
(),
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 4, 5:40 PM (1 d, 10 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
59362
Default Alt Text
AphrontFormTextControl.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment