[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/config/schema/ -> PhabricatorConfigServerSchema.php (source)

   1  <?php
   2  
   3  final class PhabricatorConfigServerSchema
   4    extends PhabricatorConfigStorageSchema {
   5  
   6    private $databases = array();
   7  
   8    public function addDatabase(PhabricatorConfigDatabaseSchema $database) {
   9      $key = $database->getName();
  10      if (isset($this->databases[$key])) {
  11        throw new Exception(
  12          pht('Trying to add duplicate database "%s"!', $key));
  13      }
  14      $this->databases[$key] = $database;
  15      return $this;
  16    }
  17  
  18    public function getDatabases() {
  19      return $this->databases;
  20    }
  21  
  22    public function getDatabase($key) {
  23      return idx($this->getDatabases(), $key);
  24    }
  25  
  26    protected function getSubschemata() {
  27      return $this->getDatabases();
  28    }
  29  
  30    public function compareToSimilarSchema(
  31      PhabricatorConfigStorageSchema $expect) {
  32      return array();
  33    }
  34  
  35    public function newEmptyClone() {
  36      $clone = clone $this;
  37      $clone->databases = array();
  38      return $clone;
  39    }
  40  
  41  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1