Beispiel #1
0
 /**
  * Constructor
  *
  * Sets up SMS carriers and other settings from sms.ini.
  *
  * @access  public
  */
 public function __construct()
 {
     global $configArray;
     // if using sms.ini, then load the carriers from it
     // otherwise, fall back to the default list of US carriers
     if (isset($configArray['Extra_Config']['sms'])) {
         $smsConfig = getExtraConfigArray('sms');
         if (isset($smsConfig['Carriers']) && !empty($smsConfig['Carriers'])) {
             $this->carriers = array();
             foreach ($smsConfig['Carriers'] as $id => $config) {
                 list($domain, $name) = explode(':', $config, 2);
                 $this->carriers[$id] = array('name' => $name, 'domain' => $domain);
             }
         }
     }
     parent::__construct();
 }