2014-01-21 19:36:33 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorMailgunConfigOptions
|
|
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
|
|
|
|
public function getName() {
|
2014-06-09 20:36:49 +02:00
|
|
|
return pht('Integration with Mailgun');
|
2014-01-21 19:36:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getDescription() {
|
2014-06-09 20:36:49 +02:00
|
|
|
return pht('Configure Mailgun integration.');
|
2014-01-21 19:36:33 +01:00
|
|
|
}
|
|
|
|
|
2016-01-28 17:40:22 +01:00
|
|
|
public function getIcon() {
|
2015-02-02 19:17:25 +01:00
|
|
|
return 'fa-send-o';
|
|
|
|
}
|
|
|
|
|
2015-02-09 22:10:56 +01:00
|
|
|
public function getGroup() {
|
|
|
|
return 'core';
|
|
|
|
}
|
|
|
|
|
2014-01-21 19:36:33 +01:00
|
|
|
public function getOptions() {
|
|
|
|
return array(
|
|
|
|
$this->newOption('mailgun.domain', 'string', null)
|
2014-05-01 19:23:49 +02:00
|
|
|
->setLocked(true)
|
2014-01-21 19:36:33 +01:00
|
|
|
->setDescription(
|
|
|
|
pht(
|
2015-05-22 09:27:56 +02:00
|
|
|
'Mailgun domain name. See %s.',
|
|
|
|
'https://mailgun.com/cp/domains'))
|
|
|
|
->addExample('mycompany.com', pht('Use specific domain')),
|
2014-05-01 19:23:49 +02:00
|
|
|
$this->newOption('mailgun.api-key', 'string', null)
|
2015-02-13 19:59:50 +01:00
|
|
|
->setHidden(true)
|
2014-05-01 19:23:49 +02:00
|
|
|
->setDescription(pht('Mailgun API key.')),
|
2014-01-21 19:36:33 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|