Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93611734
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, Nov 30, 03:56
Size
703 B
Mime Type
text/x-php
Expires
Mon, Dec 2, 03:56 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22673257
Attached To
rPH Phabricator
PhabricatorSearchSelectField.php
View Options
<?php
final
class
PhabricatorSearchSelectField
extends
PhabricatorSearchField
{
private
$options
;
private
$default
;
public
function
setOptions
(
array
$options
)
{
$this
->
options
=
$options
;
return
$this
;
}
public
function
getOptions
()
{
return
$this
->
options
;
}
protected
function
getDefaultValue
()
{
return
$this
->
default
;
}
public
function
setDefault
(
$default
)
{
$this
->
default
=
$default
;
return
$this
;
}
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