Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F428677
PhabricatorConfigProxySource.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
(
pht
(
'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
(
$keys
);
return
$this
;
}
public
function
setName
(
$name
)
{
$this
->
getSource
()->
setName
(
$name
);
return
$this
;
}
public
function
getName
()
{
return
$this
->
getSource
()->
getName
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 3, 7:00 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
59340
Default Alt Text
PhabricatorConfigProxySource.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment