Exemple #1
0
 public function __construct($config, $name, $catMetric = null)
 {
     parent::__construct();
     $this->filename = $config;
     $this->category = $name;
     if (null !== $catMetric) {
         $this->cat_metric = $catMetric;
     }
 }
Exemple #2
0
 public static function create(PbxTrunk $trunk)
 {
     $pbxTrunk = parent::create($trunk);
     $pbxTrunk->applyDefinitions($trunk->getDefinition());
     return $pbxTrunk;
 }
Exemple #3
0
 public static function create(PbxQueue $trunk)
 {
     $pbxQueue = parent::create($trunk);
     $pbxQueue->applyDefinitions($trunk->getDefinition());
     return $pbxQueue;
 }
Exemple #4
0
 public function __construct($name)
 {
     parent::__construct();
     $this->filename = self::FILE_NAME;
     $this->category = $name;
 }
Exemple #5
0
 public static function prepareAttributes()
 {
     if (count(self::$attributes) == 0) {
         $class = static::class;
         $file = constant($class . '::FILE_NAME');
         $file = str_replace('.conf', '', $file);
         $config = new Zend_Config_Ini('configs/ini/configs.ini', APPLICATION_ENV);
         self::$attributes = array_keys($config->toArray()[$file]['entry']);
         sort(self::$attributes);
     }
 }
Exemple #6
0
 public static function create(PbxAccountSip $trunk, $addDefaults = false)
 {
     $pbxAccount = parent::create($trunk, $addDefaults);
     $pbxAccount->applyDefinitions($trunk->getDefinition());
     return $pbxAccount;
 }