Beispiel #1
0
 /**
  * Pull settings from config file/database if set.
  */
 function initialize()
 {
     $settings = array('webserver', 'webport', 'controlport', 'controlserver', 'channelbase', 'protocol');
     foreach ($settings as $name) {
         $val = common_config('meteor', $name);
         if ($val !== false) {
             $this->{$name} = $val;
         }
     }
     return parent::initialize();
 }