Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101683239
PhabricatorConfigProxySource.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
Wed, Feb 12, 18:00
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Feb 14, 18:00 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24211316
Attached To
rPH Phabricator
PhabricatorConfigProxySource.php
View Options
<?php
/**
* Configuration source which proxies some other configuration source.
*/
abstract
class
PhabricatorConfigProxySource
extends
PhabricatorConfigSource
{
private
$source
;
final
protected
function
getSource
()
{
if
(!
$this
->
source
)
{
throw
new
Exception
(
"No configuration source set!"
);
}
return
$this
->
source
;
}
final
protected
function
setSource
(
PhabricatorConfigSource
$source
)
{
$this
->
source
=
$source
;
return
$this
;
}
public
function
getAllKeys
()
{
return
$this
->
getSource
()->
getAllKeys
();
}
public
function
getKeys
(
array
$keys
)
{
return
$this
->
getSource
()->
getKeys
(
$keys
);
}
public
function
canWrite
()
{
return
$this
->
getSource
()->
canWrite
();
}
public
function
setKeys
(
array
$keys
)
{
$this
->
getSource
()->
setKeys
(
$keys
);
return
$this
;
}
public
function
deleteKeys
(
array
$keys
)
{
$this
->
getSource
()->
deleteKeys
();
return
$this
;
}
public
function
setName
(
$name
)
{
$this
->
getSource
()->
setName
(
$name
);
return
$this
;
}
public
function
getName
()
{
return
$this
->
getSource
()->
getName
();
}
}
Event Timeline
Log In to Comment