Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1010287
ManiphestDefaultTaskExtensions.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ManiphestDefaultTaskExtensions.php
View Options
<?php
/**
* @group maniphest
*/
final
class
ManiphestDefaultTaskExtensions
extends
ManiphestTaskExtensions
{
public
function
getAuxiliaryFieldSpecifications
()
{
$fields
=
PhabricatorEnv
::
getEnvConfig
(
'maniphest.custom-fields'
);
$specs
=
array
();
foreach
(
$fields
as
$aux
=>
$info
)
{
$spec
=
new
ManiphestAuxiliaryFieldDefaultSpecification
();
$spec
->
setAuxiliaryKey
(
$aux
);
$spec
->
setLabel
(
idx
(
$info
,
'label'
));
$spec
->
setCaption
(
idx
(
$info
,
'caption'
));
$spec
->
setFieldType
(
idx
(
$info
,
'type'
));
$spec
->
setRequired
(
idx
(
$info
,
'required'
));
$spec
->
setCheckboxLabel
(
idx
(
$info
,
'checkbox-label'
));
$spec
->
setCheckboxValue
(
idx
(
$info
,
'checkbox-value'
,
1
));
if
(
$spec
->
getFieldType
()
==
ManiphestAuxiliaryFieldDefaultSpecification
::
TYPE_SELECT
)
{
$spec
->
setSelectOptions
(
idx
(
$info
,
'options'
));
}
$spec
->
setShouldCopyWhenCreatingSimilarTask
(
idx
(
$info
,
'copy'
));
$spec
->
setDefaultValue
(
idx
(
$info
,
'default'
));
$specs
[]
=
$spec
;
}
return
$specs
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jun 19, 1:40 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
245773
Default Alt Text
ManiphestDefaultTaskExtensions.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment