Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F430311
PhabricatorConfigDictionarySource.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
688 B
Referenced Files
None
Subscribers
None
PhabricatorConfigDictionarySource.php
View Options
<?php
final
class
PhabricatorConfigDictionarySource
extends
PhabricatorConfigSource
{
private
$dictionary
;
public
function
__construct
(
array
$dictionary
)
{
$this
->
dictionary
=
$dictionary
;
}
public
function
getAllKeys
()
{
return
$this
->
dictionary
;
}
public
function
getKeys
(
array
$keys
)
{
return
array_select_keys
(
$this
->
dictionary
,
$keys
);
}
public
function
canWrite
()
{
return
true
;
}
public
function
setKeys
(
array
$keys
)
{
$this
->
dictionary
=
$keys
+
$this
->
dictionary
;
return
$this
;
}
public
function
deleteKeys
(
array
$keys
)
{
foreach
(
$keys
as
$key
)
{
unset
(
$this
->
dictionary
[
$key
]);
}
return
$keys
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 10:18 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
60144
Default Alt Text
PhabricatorConfigDictionarySource.php (688 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment