Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104582853
PhabricatorSearchStringListField.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, Mar 10, 16:05
Size
929 B
Mime Type
text/x-php
Expires
Wed, Mar 12, 16:05 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
24800524
Attached To
rPH Phabricator
PhabricatorSearchStringListField.php
View Options
<?php
final
class
PhabricatorSearchStringListField
extends
PhabricatorSearchField
{
private
$placeholder
;
public
function
setPlaceholder
(
$placeholder
)
{
$this
->
placeholder
=
$placeholder
;
return
$this
;
}
public
function
getPlaceholder
()
{
return
$this
->
placeholder
;
}
protected
function
getDefaultValue
()
{
return
array
();
}
protected
function
getValueFromRequest
(
AphrontRequest
$request
,
$key
)
{
return
$request
->
getStrList
(
$key
);
}
protected
function
newControl
()
{
$control
=
new
AphrontFormTextControl
();
$placeholder
=
$this
->
getPlaceholder
();
if
(
$placeholder
!==
null
)
{
$control
->
setPlaceholder
(
$placeholder
);
}
return
$control
;
}
protected
function
getValueForControl
()
{
return
implode
(
', '
,
parent
::
getValueForControl
());
}
protected
function
newConduitParameterType
()
{
return
new
ConduitStringListParameterType
();
}
}
Event Timeline
Log In to Comment