PEAR_Config::mergeConfigFile()
PEAR_Config::mergeConfigFile() -- Merges data into a config layer from a file
概要
require_once 'PEAR/config.php'; |
bool PEAR_Config::mergeConfigFile (string $file [, bool $override = TRUE [, string $layer = 'user']])
説明
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.
パラメータ
- string
$file
file to read from
- boolean
$override
whether to overwrite existing data
- string
$layer
config layer to insert data into ('user' or
'system')
返り値
bool -
成功時には TRUE、
失敗時には PEAR_Error を返します。
例外・エラー
表 27-1PEAR_Error の値
| Error code | Error value | Meaning | Solution |
|---|
| | "" | | |
注意
この関数は、スタティックにコールする
ことはできません。