Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92675809
PhabricatorEditEngineCheckboxesCommentAction.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, Nov 22, 16:19
Size
723 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 16:19 (2 d)
Engine
blob
Format
Raw Data
Handle
22484848
Attached To
rPH Phabricator
PhabricatorEditEngineCheckboxesCommentAction.php
View Options
<?php
final
class
PhabricatorEditEngineCheckboxesCommentAction
extends
PhabricatorEditEngineCommentAction
{
private
$options
=
array
();
public
function
setOptions
(
array
$options
)
{
$this
->
options
=
$options
;
return
$this
;
}
public
function
getOptions
()
{
return
$this
->
options
;
}
public
function
getPHUIXControlType
()
{
return
'checkboxes'
;
}
public
function
getPHUIXControlSpecification
()
{
$options
=
$this
->
getOptions
();
$labels
=
array
();
foreach
(
$options
as
$key
=>
$option
)
{
$labels
[
$key
]
=
hsprintf
(
'%s'
,
$option
);
}
return
array
(
'value'
=>
$this
->
getValue
(),
'keys'
=>
array_keys
(
$options
),
'labels'
=>
$labels
,
);
}
}
Event Timeline
Log In to Comment