Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F464997
PhabricatorSearchSelectField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
703 B
Referenced Files
None
Subscribers
None
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
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 10:12 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
74276
Default Alt Text
PhabricatorSearchSelectField.php (703 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment