Exemplo n.º 1
0
 public function __construct($config, $name, $catMetric = null)
 {
     parent::__construct();
     $this->filename = $config;
     $this->category = $name;
     if (null !== $catMetric) {
         $this->cat_metric = $catMetric;
     }
 }
Exemplo n.º 2
0
Arquivo: Sip.php Projeto: dafik/dfi
 public static function create(PbxTrunk $trunk)
 {
     $pbxTrunk = parent::create($trunk);
     $pbxTrunk->applyDefinitions($trunk->getDefinition());
     return $pbxTrunk;
 }
Exemplo n.º 3
0
Arquivo: Queue.php Projeto: dafik/dfi
 public static function create(PbxQueue $trunk)
 {
     $pbxQueue = parent::create($trunk);
     $pbxQueue->applyDefinitions($trunk->getDefinition());
     return $pbxQueue;
 }
Exemplo n.º 4
0
 public function __construct($name)
 {
     parent::__construct();
     $this->filename = self::FILE_NAME;
     $this->category = $name;
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 6
0
Arquivo: User.php Projeto: dafik/dfi
 public static function create(PbxAccountSip $trunk, $addDefaults = false)
 {
     $pbxAccount = parent::create($trunk, $addDefaults);
     $pbxAccount->applyDefinitions($trunk->getDefinition());
     return $pbxAccount;
 }