LoadConfig

Loads and parses all asterisk configuration files into an associative array.

This is an internal class and therefore should NOT be referenced externally. Please use the proper functionality from within your module. See FreePBX Big Module Object (BMO) for more information

$file = FreePBX::LoadConfig()->loadConfig('modules.conf');

Alternatively you can load a file as so

$file = FreePBX::LoadConfig('modules.conf')

All data is accessed through public definitions:

$file->PlainConfig; $file->BaseConfig; $file->ProcessedConfig;

loadConfig()

getRaw()

getConfig()

Return to Documentation Home I Return to Sangoma Support