Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93880532
PhabricatorSelectEditField.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
Mon, Dec 2, 05:43
Size
846 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 05:43 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22716403
Attached To
rPH Phabricator
PhabricatorSelectEditField.php
View Options
<?php
final
class
PhabricatorSelectEditField
extends
PhabricatorEditField
{
private
$options
;
public
function
setOptions
(
array
$options
)
{
$this
->
options
=
$options
;
return
$this
;
}
public
function
getOptions
()
{
if
(
$this
->
options
===
null
)
{
throw
new
PhutilInvalidStateException
(
'setOptions'
);
}
return
$this
->
options
;
}
protected
function
newControl
()
{
return
id
(
new
AphrontFormSelectControl
())
->
setOptions
(
$this
->
getOptions
());
}
protected
function
newHTTPParameterType
()
{
return
new
AphrontSelectHTTPParameterType
();
}
protected
function
newCommentAction
()
{
return
id
(
new
PhabricatorEditEngineSelectCommentAction
())
->
setOptions
(
$this
->
getOptions
());
}
protected
function
newConduitParameterType
()
{
return
new
ConduitStringParameterType
();
}
}
Event Timeline
Log In to Comment