Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91142530
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 8, 08:17
Size
723 B
Mime Type
text/x-php
Expires
Sun, Nov 10, 08:17 (2 d)
Engine
blob
Format
Raw Data
Handle
22204463
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