Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17826442
PhabricatorConfigServerSchema.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
906 B
Referenced Files
None
Subscribers
None
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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jul 28, 7:18 AM (1 w, 13 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8234158
Default Alt Text
PhabricatorConfigServerSchema.php (906 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment