Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93279396
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
Wed, Nov 27, 14:05
Size
906 B
Mime Type
text/x-php
Expires
Fri, Nov 29, 14:05 (2 d)
Engine
blob
Format
Raw Data
Handle
22606770
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
();
}
protected
function
compareToSimilarSchema
(
PhabricatorConfigStorageSchema
$expect
)
{
return
array
();
}
public
function
newEmptyClone
()
{
$clone
=
clone
$this
;
$clone
->
databases
=
array
();
return
$clone
;
}
}
Event Timeline
Log In to Comment