Remove product literal strings in "pht()", part 4
[phabricator.git] / src / applications / config / option / PhabricatorMySQLConfigOptions.php
blob7b472cf379143abdca3c8554c18d5ff947ce4704
1 <?php
3 final class PhabricatorMySQLConfigOptions
4 extends PhabricatorApplicationConfigOptions {
6 public function getName() {
7 return pht('MySQL');
10 public function getDescription() {
11 return pht('Database configuration.');
14 public function getIcon() {
15 return 'fa-database';
18 public function getGroup() {
19 return 'core';
22 public function getOptions() {
23 return array(
24 $this->newOption('mysql.host', 'string', 'localhost')
25 ->setLocked(true)
26 ->setDescription(
27 pht('MySQL database hostname.'))
28 ->addExample('localhost', pht('MySQL on this machine'))
29 ->addExample('db.example.com:3300', pht('Nonstandard port')),
30 $this->newOption('mysql.user', 'string', 'root')
31 ->setLocked(true)
32 ->setDescription(
33 pht('MySQL username to use when connecting to the database.')),
34 $this->newOption('mysql.pass', 'string', null)
35 ->setHidden(true)
36 ->setDescription(
37 pht('MySQL password to use when connecting to the database.')),
38 $this->newOption('storage.default-namespace', 'string', 'phabricator')
39 ->setLocked(true)
40 ->setSummary(
41 pht('The namespace that databases should use.'))
42 ->setDescription(
43 pht(
44 "Databases are created in a namespace, which defaults to ".
45 "'phabricator' -- for instance, the Differential database is ".
46 "named 'phabricator_differential' by default. You can change ".
47 "this namespace if you want. Normally, you should not do this ".
48 "unless you are developing extensions and using namespaces to ".
49 "separate multiple sandbox datasets.")),
50 $this->newOption('mysql.port', 'string', null)
51 ->setLocked(true)
52 ->setDescription(
53 pht('MySQL port to use when connecting to the database.')),