public function __construct($config, $name, $catMetric = null) { parent::__construct(); $this->filename = $config; $this->category = $name; if (null !== $catMetric) { $this->cat_metric = $catMetric; } }
public static function create(PbxTrunk $trunk) { $pbxTrunk = parent::create($trunk); $pbxTrunk->applyDefinitions($trunk->getDefinition()); return $pbxTrunk; }
public static function create(PbxQueue $trunk) { $pbxQueue = parent::create($trunk); $pbxQueue->applyDefinitions($trunk->getDefinition()); return $pbxQueue; }
public function __construct($name) { parent::__construct(); $this->filename = self::FILE_NAME; $this->category = $name; }
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); } }
public static function create(PbxAccountSip $trunk, $addDefaults = false) { $pbxAccount = parent::create($trunk, $addDefaults); $pbxAccount->applyDefinitions($trunk->getDefinition()); return $pbxAccount; }