Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2891854
AphrontFormTypeaheadControl.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
1 KB
Referenced Files
None
Subscribers
None
AphrontFormTypeaheadControl.php
View Options
<?php
final
class
AphrontFormTypeaheadControl
extends
AphrontFormControl
{
private
$hardpointID
;
private
$placeholder
;
public
function
setHardpointID
(
$hardpoint_id
)
{
$this
->
hardpointID
=
$hardpoint_id
;
return
$this
;
}
public
function
getHardpointID
(
)
{
return
$this
->
hardpointID
;
}
public
function
setPlaceholder
(
$placeholder
)
{
$this
->
placeholder
=
$placeholder
;
return
$this
;
}
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
(
)
,
'placeholder'
=>
$this
->
placeholder
,
'disabled'
=>
$this
->
getDisabled
(
)
?
'disabled'
:
null
,
'autocomplete'
=>
'off'
,
'id'
=>
$this
->
getID
(
)
,
)
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 15:51 (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1126181
Default Alt Text
AphrontFormTypeaheadControl.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment