2012-12-25 06:44:29 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
abstract class PhabricatorConfigSource {
|
|
|
|
|
2013-01-01 14:10:33 -08:00
|
|
|
private $name;
|
|
|
|
|
|
|
|
public function setName($name) {
|
|
|
|
$this->name = $name;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return $this->name;
|
|
|
|
}
|
|
|
|
|
2012-12-25 06:44:29 -08:00
|
|
|
abstract public function getKeys(array $keys);
|
|
|
|
abstract public function getAllKeys();
|
|
|
|
|
|
|
|
public function canWrite() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function setKeys(array $keys) {
|
|
|
|
throw new Exception("This configuration source does not support writes.");
|
|
|
|
}
|
|
|
|
|
|
|
|
public function deleteKeys(array $keys) {
|
|
|
|
throw new Exception("This configuration source does not support writes.");
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|