Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99275929
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
Thu, Jan 23, 00:17
Size
703 B
Mime Type
text/x-php
Expires
Sat, Jan 25, 00:17 (2 d)
Engine
blob
Format
Raw Data
Handle
23744624
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