Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99047175
PhabricatorCheckboxesEditField.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, Jan 18, 17:13
Size
737 B
Mime Type
text/x-php
Expires
Mon, Jan 20, 17:13 (2 d)
Engine
blob
Format
Raw Data
Handle
23697173
Attached To
rPH Phabricator
PhabricatorCheckboxesEditField.php
View Options
<?php
final
class
PhabricatorCheckboxesEditField
extends
PhabricatorEditField
{
private
$options
;
protected
function
newControl
()
{
$options
=
$this
->
getOptions
();
return
id
(
new
AphrontFormCheckboxControl
())
->
setOptions
(
$options
);
}
protected
function
newConduitParameterType
()
{
return
new
ConduitStringListParameterType
();
}
protected
function
newHTTPParameterType
()
{
return
new
AphrontStringListHTTPParameterType
();
}
public
function
setOptions
(
array
$options
)
{
$this
->
options
=
$options
;
return
$this
;
}
public
function
getOptions
()
{
if
(
$this
->
options
===
null
)
{
throw
new
PhutilInvalidStateException
(
'setOptions'
);
}
return
$this
->
options
;
}
}
Event Timeline
Log In to Comment