WriteConfig
WriteConfig
Writes configuration files.
$files = array(
'modules.conf' => array(
'foo=>bar',
'line=>line',
'line=>line2'
)
);
FreePBX::WriteConfig($files);
//Alternatively
$config = FreePBX::WriteConfig();
$config->writeConfigs($files);
|
writeConfig()
/**
* Write single configuration file
*
* Simply builds an array and passes it to writeConfigs()
* @param string $filename File to write
* @param mixed $contents What should be written to the file
*/
public function writeConfig($filename = null, $contents)
|
writeConfigs()
/**
* Write multiple configuration files.
* This is the public call to write configuration files.
* @param array $array An array of [filename]=>array(line, line, line), or [filename]=>string
*/
public function writeConfigs($array)
|
/**
* Return the static header, as a function.
* @return string Header
*/
public function getHeader()
|