Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92760982
PhabricatorPHIDsSearchField.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
Sat, Nov 23, 12:19
Size
681 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 12:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22506316
Attached To
rPH Phabricator
PhabricatorPHIDsSearchField.php
View Options
<?php
final
class
PhabricatorPHIDsSearchField
extends
PhabricatorSearchField
{
protected
function
getDefaultValue
()
{
return
array
();
}
protected
function
getValueFromRequest
(
AphrontRequest
$request
,
$key
)
{
return
$request
->
getStrList
(
$key
);
}
protected
function
newControl
()
{
if
(
strlen
(
$this
->
getValueForControl
()))
{
return
new
AphrontFormTextControl
();
}
else
{
return
null
;
}
}
protected
function
getValueForControl
()
{
return
implode
(
', '
,
parent
::
getValueForControl
());
}
protected
function
newConduitParameterType
()
{
return
id
(
new
ConduitPHIDListParameterType
())
->
setAllowEmptyList
(
false
);
}
}
Event Timeline
Log In to Comment