Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F430253
PhabricatorConfigDatabaseSource.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
620 B
Referenced Files
None
Subscribers
None
PhabricatorConfigDatabaseSource.php
View Options
<?php
final
class
PhabricatorConfigDatabaseSource
extends
PhabricatorConfigProxySource
{
public
function
__construct
(
$namespace
)
{
$config
=
$this
->
loadConfig
(
$namespace
);
$this
->
setSource
(
new
PhabricatorConfigDictionarySource
(
$config
));
}
public
function
isWritable
()
{
// While this is writable, writes occur through the Config application.
return
false
;
}
private
function
loadConfig
(
$namespace
)
{
$objects
=
id
(
new
PhabricatorConfigEntry
())->
loadAllWhere
(
'namespace = %s AND isDeleted = 0'
,
$namespace
);
return
mpull
(
$objects
,
'getValue'
,
'getConfigKey'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 10:07 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
60146
Default Alt Text
PhabricatorConfigDatabaseSource.php (620 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment