FreePBX Open Source - BMO Built-In Classes 12+
Usage
All classes can be called with the quick constructor. This is a non destructive constructor.
FreePBX::<class>-><method>xample:
FreePBX::Config->get('AMPWEBROOT');Inside a BMO class
public function __construct($freepbx){
$this->FreePBX = $freepbx;
}
public function exampleMethod(){
$data = $this->FreePBX->Module->method();
}Single Call outside of a BMO class
$data = FreePBX::Module()->method();Multiple calls outside of a BMO class
$freepbx = FreePBX::Create();
$data = $freepbx->Module->methodOne();
$data2 = $freepbx->Module->methodTwo();
Core Classes
Return to Documentation Home | Sangoma Support