Usage
All classes can be called with the quick constructor. This is a non destructive constructor.
FreePBX::<class>-><method>
Example:
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();