Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93922303
PhabricatorConfigServerSchema.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
Mon, Dec 2, 13:09
Size
903 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 13:09 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22725045
Attached To
rPH Phabricator
PhabricatorConfigServerSchema.php
View Options
<?php
final
class
PhabricatorConfigServerSchema
extends
PhabricatorConfigStorageSchema
{
private
$databases
=
array
();
public
function
addDatabase
(
PhabricatorConfigDatabaseSchema
$database
)
{
$key
=
$database
->
getName
();
if
(
isset
(
$this
->
databases
[
$key
]))
{
throw
new
Exception
(
pht
(
'Trying to add duplicate database "%s"!'
,
$key
));
}
$this
->
databases
[
$key
]
=
$database
;
return
$this
;
}
public
function
getDatabases
()
{
return
$this
->
databases
;
}
public
function
getDatabase
(
$key
)
{
return
idx
(
$this
->
getDatabases
(),
$key
);
}
protected
function
getSubschemata
()
{
return
$this
->
getDatabases
();
}
public
function
compareToSimilarSchema
(
PhabricatorConfigStorageSchema
$expect
)
{
return
array
();
}
public
function
newEmptyClone
()
{
$clone
=
clone
$this
;
$clone
->
databases
=
array
();
return
$clone
;
}
}
Event Timeline
Log In to Comment