PEAR_Config::mergeConfigFile()

PEAR_Config::mergeConfigFile() -- Merges data into a config layer from a file

Referentiesamenvatting

require_once 'PEAR/config.php';

bool PEAR_Config::mergeConfigFile (string $file [, bool $override = TRUE [, string $layer = 'user']])

Beschrijving

Merges data into a config layer from a file. Does the same thing as readConfigFile(), except it does not replace all existing values in the config layer.

Parameter

string $file

file to read from

boolean $override

whether to overwrite existing data

string $layer

config layer to insert data into ('user' or 'system')

Return waarde

bool - Geeft TRUE terug bij success, PEAR_Error als het faalt.

Throws

Tabel 28-1. Mogelijke PEAR_Error waarden

Error codeError valueMeaningSolution
 ""  

Note

Deze functie kan niet statisch worden aangeroepen.