Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7112485
ArcanistMultiSourceConfigOption.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
902 B
Referenced Files
None
Subscribers
None
ArcanistMultiSourceConfigOption.php
View Options
<?php
abstract
class
ArcanistMultiSourceConfigOption
extends
ArcanistConfigOption
{
public
function
getValueFromStorageValueList
(
array
$list
)
{
assert_instances_of
(
$list
,
'ArcanistConfigurationSourceValue'
);
$result_list
=
array
();
foreach
(
$list
as
$source_value
)
{
$source
=
$source_value
->
getConfigurationSource
();
$storage_value
=
$this
->
getStorageValueFromSourceValue
(
$source_value
);
$items
=
$this
->
getValueFromStorageValue
(
$storage_value
);
foreach
(
$items
as
$item
)
{
$result_list
[]
=
new
ArcanistConfigurationSourceValue
(
$source
,
$item
);
}
}
$result_list
=
$this
->
didReadStorageValueList
(
$result_list
);
return
$result_list
;
}
protected
function
didReadStorageValueList
(
array
$list
)
{
assert_instances_of
(
$list
,
'ArcanistConfigurationSourceValue'
);
return
mpull
(
$list
,
'getValue'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jul 3, 17:59 (5 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
793786
Default Alt Text
ArcanistMultiSourceConfigOption.php (902 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment