public function __construct($freepbx = null) { parent::__construct($freepbx); //other options $this->database = $freepbx->Database; $this->config = $freepbx->Config; $this->freepbx = $freepbx; $this->astman = $freepbx->astman; //load drivers $this->loadDrivers(); }
public function __construct($freepbx = null) { parent::__construct($freepbx); //Hackery-Jackery for Core only really if (!class_exists('PJSip') && file_exists(__DIR__ . '/functions.inc/PJSip.class.php')) { include __DIR__ . '/functions.inc/PJSip.class.php'; //Think about using BMO Inject here instead $this->FreePBX->PJSip = new \FreePBX\modules\Core\PJSip($this->FreePBX); } $this->database = $freepbx->Database; $this->config = $freepbx->Config; }
public function __construct($freepbx = null) { parent::__construct($freepbx); $this->freepbx = $freepbx; $this->db = $this->freepbx->Database; }
public function __construct($freepbx) { parent::__construct($freepbx); $this->db = $freepbx->Database; $this->version = $freepbx->Config->get('ASTVERSION'); }