piwik/core/Config.php
/**
     * Write user configuration file
     *
     * @param array $configLocal
     * @param array $configGlobal
     * @param array $configCommon
     * @param array $configCache
     * @param string $pathLocal
     * @param bool $clear
     *
     * @throws \Exception if config file not writable
     */


@throws \Exception if config file not writable
@throws \ Exception if config file not writable
protected function writeConfig($configLocal, $configGlobal, $configCommon, $configCache, $pathLocal, $clear = true)
    {
        if ($this->doNotWriteConfigInTests) {
            return;
        }
        $output = $this->dumpConfig($configLocal, $configGlobal, $configCommon, $configCache);
        if ($output !== false) {
            $success = @file_put_contents($pathLocal, $output);
            if (!$success) {
                throw $this->getConfigNotWritableException();
            }
        }
        if ($clear) {
            $this->clear();
        }
    }
protected function writeConfig ( $ configLocal , $ configGlobal , $ configCommon , $ configCache , $ pathLocal , $ clear = true ) { if ( $ this -> doNotWriteConfigInTests ) { return ; } $ output = $ this -> dumpConfig ( $ configLocal , $ configGlobal , $ configCommon , $ configCache ) ; if ( $ output !== false ) { $ success = @ file_put_contents ( $ pathLocal , $ output ) ; if ( ! $ success ) { throw $ this -> getConfigNotWritableException ( ) ; } } if ( $ clear ) { $ this -> clear ( ) ; } }
Write user configuration file
 @param array $configLocal
 @param array $configGlobal
 @param array $configCommon
 @param array $configCache
 @param string $pathLocal
 @param bool $clear
Write user configuration file @param array $configLocal @param array $configGlobal @param array $configCommon @param array $configCache @param string $pathLocal @param bool $clear