Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890721
ArcanistWildConfigOption.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
867 B
Referenced Files
None
Subscribers
None
ArcanistWildConfigOption.php
View Options
<?php
/**
* This option type makes it easier to manage unknown options with unknown
* types.
*/
final
class
ArcanistWildConfigOption
extends
ArcanistConfigOption
{
public
function
getType
(
)
{
return
'wild'
;
}
public
function
getStorageValueFromStringValue
(
$value
)
{
return
(string)
$value
;
}
public
function
getDisplayValueFromValue
(
$value
)
{
return
json_encode
(
$value
)
;
}
public
function
getValueFromStorageValueList
(
array
$list
)
{
assert_instances_of
(
$list
,
'ArcanistConfigurationSourceValue'
)
;
$source_value
=
last
(
$list
)
;
$storage_value
=
$this
->
getStorageValueFromSourceValue
(
$source_value
)
;
return
$this
->
getValueFromStorageValue
(
$storage_value
)
;
}
public
function
getValueFromStorageValue
(
$value
)
{
return
$value
;
}
public
function
getStorageValueFromValue
(
$value
)
{
return
$value
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 13:58 (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1116242
Default Alt Text
ArcanistWildConfigOption.php (867 B)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment