Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

BMO Built-In Classes 12+

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();


Core Classes

  • No labels