Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101218064
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
Thu, Feb 6, 22:21
Size
723 B
Mime Type
text/x-php
Expires
Sat, Feb 8, 22:21 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
24117095
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