PEAR_Config::getDefaultChannel() – Retrieve the default channel.


require_once '/Config.php'; (since PEAR 1.4.0)

string|false PEAR_Config::getDefaultChannel ( string $layer = null )


On startup, channels are not initialized, so if the default channel is not, then initialize the config.


string $layer

layer from which to retrieve the registry, or null for the first to match


throws no exceptions thrown


This function can not be called statically.

Gets the file used for storing the config for a layer (Previous) Get the documentation for a config value (Next)
Last updated: Thu, 19 Jan 2017 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.