Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93521634
PhabricatorConfigDictionarySource.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
Fri, Nov 29, 10:30
Size
688 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 10:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22657013
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment