Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106121358
PhabricatorSearchSelectField.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, Mar 22, 16:53
Size
578 B
Mime Type
text/x-php
Expires
Mon, Mar 24, 16:53 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25111100
Attached To
rPH Phabricator
PhabricatorSearchSelectField.php
View Options
<?php
final
class
PhabricatorSearchSelectField
extends
PhabricatorSearchField
{
private
$options
;
public
function
setOptions
(
array
$options
)
{
$this
->
options
=
$options
;
return
$this
;
}
public
function
getOptions
()
{
return
$this
->
options
;
}
protected
function
getDefaultValue
()
{
return
null
;
}
protected
function
getValueFromRequest
(
AphrontRequest
$request
,
$key
)
{
return
$request
->
getStr
(
$key
);
}
protected
function
newControl
()
{
return
id
(
new
AphrontFormSelectControl
())
->
setOptions
(
$this
->
getOptions
());
}
}
Event Timeline
Log In to Comment