Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90343931
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
Thu, Oct 31, 18:11
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Nov 2, 18:11 (2 d)
Engine
blob
Format
Raw Data
Handle
22057826
Attached To
rPH Phabricator
PhabricatorConfigServerSchema.php
View Options
<?php
final
class
PhabricatorConfigServerSchema
extends
PhabricatorConfigStorageSchema
{
private
$ref
;
private
$databases
=
array
();
public
function
setRef
(
PhabricatorDatabaseRef
$ref
)
{
$this
->
ref
=
$ref
;
return
$this
;
}
public
function
getRef
()
{
return
$this
->
ref
;
}
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