[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/config/option/ -> PhabricatorSMSConfigOptions.php (source)

   1  <?php
   2  
   3  final class PhabricatorSMSConfigOptions
   4    extends PhabricatorApplicationConfigOptions {
   5  
   6    public function getName() {
   7      return pht('SMS');
   8    }
   9  
  10    public function getDescription() {
  11      return pht('Configure SMS.');
  12    }
  13  
  14    public function getOptions() {
  15      $adapter_description = $this->deformat(pht(<<<EODOC
  16  Adapter class to use to transmit SMS to an external provider. A given external
  17  provider will most likely need more configuration which will most likely
  18  require registration and payment for the service.
  19  EODOC
  20    ));
  21  
  22      return array(
  23        $this->newOption(
  24          'sms.default-sender',
  25          'string',
  26          null)
  27          ->setDescription(pht('Default "from" number.'))
  28          ->addExample('8675309', 'Jenny still has this number')
  29          ->addExample('18005555555', 'Maybe not a real number'),
  30        $this->newOption(
  31          'sms.default-adapter',
  32          'class',
  33          null)
  34          ->setBaseClass('PhabricatorSMSImplementationAdapter')
  35          ->setSummary(pht('Control how sms is sent.'))
  36          ->setDescription($adapter_description),
  37        $this->newOption(
  38          'twilio.account-sid',
  39          'string',
  40          null)
  41          ->setDescription(pht('Account ID on Twilio service.'))
  42          ->setLocked(true)
  43          ->addExample('gf5kzccfn2sfknpnadvz7kokv6nz5v', pht('30 characters')),
  44        $this->newOption(
  45          'twilio.auth-token',
  46          'string',
  47          null)
  48          ->setDescription(pht('Authorization token from Twilio service.'))
  49          ->setLocked(true)
  50          ->setHidden(true)
  51          ->addExample('f3jsi4i67wiwt6w54hf2zwvy3fjf5h', pht('30 characters')),
  52      );
  53    }
  54  
  55  }


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1