2013-01-15 21:04:05 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorSendGridConfigOptions
|
|
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
|
|
|
|
public function getName() {
|
2014-06-09 20:36:49 +02:00
|
|
|
return pht('Integration with SendGrid');
|
2013-01-15 21:04:05 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getDescription() {
|
2014-06-09 20:36:49 +02:00
|
|
|
return pht('Configure SendGrid integration.');
|
2013-01-15 21:04:05 +01:00
|
|
|
}
|
|
|
|
|
2015-02-02 19:17:25 +01:00
|
|
|
public function getFontIcon() {
|
|
|
|
return 'fa-send-o';
|
|
|
|
}
|
|
|
|
|
2015-02-09 22:10:56 +01:00
|
|
|
public function getGroup() {
|
|
|
|
return 'core';
|
|
|
|
}
|
|
|
|
|
2013-01-15 21:04:05 +01:00
|
|
|
public function getOptions() {
|
|
|
|
return array(
|
|
|
|
$this->newOption('sendgrid.api-user', 'string', null)
|
2014-05-01 19:23:49 +02:00
|
|
|
->setLocked(true)
|
2013-01-15 21:04:05 +01:00
|
|
|
->setDescription(pht('SendGrid API username.')),
|
|
|
|
$this->newOption('sendgrid.api-key', 'string', null)
|
|
|
|
->setMasked(true)
|
|
|
|
->setDescription(pht('SendGrid API key.')),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|