Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F68298763
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
Wed, Jun 26, 19:19
Size
913 B
Mime Type
text/x-php
Expires
Fri, Jun 28, 19:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
18559258
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