Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98120072
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
Fri, Jan 10, 00:13
Size
737 B
Mime Type
text/x-php
Expires
Sun, Jan 12, 00:13 (2 d)
Engine
blob
Format
Raw Data
Handle
23509647
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