Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81300751
AphrontFormTypeaheadControl.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
Thu, Sep 5, 06:04
Size
913 B
Mime Type
text/x-php
Expires
Sat, Sep 7, 06:04 (2 d)
Engine
blob
Format
Raw Data
Handle
20533121
Attached To
rPH Phabricator
AphrontFormTypeaheadControl.php
View Options
<?php
final
class
AphrontFormTypeaheadControl
extends
AphrontFormControl
{
private
$hardpointID
;
public
function
setHardpointID
(
$hardpoint_id
)
{
$this
->
hardpointID
=
$hardpoint_id
;
return
$this
;
}
public
function
getHardpointID
()
{
return
$this
->
hardpointID
;
}
protected
function
getCustomControlClass
()
{
return
'aphront-form-control-typeahead'
;
}
protected
function
renderInput
()
{
return
javelin_tag
(
'div'
,
array
(
'style'
=>
'position: relative;'
,
'id'
=>
$this
->
getHardpointID
(),
),
javelin_tag
(
'input'
,
array
(
'type'
=>
'text'
,
'name'
=>
$this
->
getName
(),
'value'
=>
$this
->
getValue
(),
'disabled'
=>
$this
->
getDisabled
()
?
'disabled'
:
null
,
'autocomplete'
=>
'off'
,
'id'
=>
$this
->
getID
(),
)));
}
}
Event Timeline
Log In to Comment