mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
fe5cd4ca2c
Summary: Normalizes all `setFontIcon` calls to `setIcon`. Test Plan: UIExamples, Almanac, Apps list, etc. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, hach-que, yelirekim Differential Revision: https://secure.phabricator.com/D15129
60 lines
1.7 KiB
PHP
60 lines
1.7 KiB
PHP
<?php
|
|
|
|
final class PhabricatorSMSConfigOptions
|
|
extends PhabricatorApplicationConfigOptions {
|
|
|
|
public function getName() {
|
|
return pht('SMS');
|
|
}
|
|
|
|
public function getDescription() {
|
|
return pht('Configure SMS.');
|
|
}
|
|
|
|
public function getIcon() {
|
|
return 'fa-mobile';
|
|
}
|
|
|
|
public function getGroup() {
|
|
return 'core';
|
|
}
|
|
|
|
public function getOptions() {
|
|
$adapter_description = pht(
|
|
'Adapter class to use to transmit SMS to an external provider. A given '.
|
|
'external provider will most likely need more configuration which will '.
|
|
'most likely require registration and payment for the service.');
|
|
|
|
return array(
|
|
$this->newOption(
|
|
'sms.default-sender',
|
|
'string',
|
|
null)
|
|
->setDescription(pht('Default "from" number.'))
|
|
->addExample('8675309', 'Jenny still has this number')
|
|
->addExample('18005555555', 'Maybe not a real number'),
|
|
$this->newOption(
|
|
'sms.default-adapter',
|
|
'class',
|
|
null)
|
|
->setBaseClass('PhabricatorSMSImplementationAdapter')
|
|
->setSummary(pht('Control how SMS is sent.'))
|
|
->setDescription($adapter_description),
|
|
$this->newOption(
|
|
'twilio.account-sid',
|
|
'string',
|
|
null)
|
|
->setDescription(pht('Account ID on Twilio service.'))
|
|
->setLocked(true)
|
|
->addExample('gf5kzccfn2sfknpnadvz7kokv6nz5v', pht('30 characters')),
|
|
$this->newOption(
|
|
'twilio.auth-token',
|
|
'string',
|
|
null)
|
|
->setDescription(pht('Authorization token from Twilio service.'))
|
|
->setHidden(true)
|
|
->addExample('f3jsi4i67wiwt6w54hf2zwvy3fjf5h', pht('30 characters')),
|
|
);
|
|
}
|
|
|
|
}
|