PEAR_Config::setChannels

PEAR_Config::setChannels() – Set the list of channels.

Synopsis

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

bool PEAR_Config::setChannels ( array $channels , bool $merge = false )

Description

This should be set via a call to PEAR_Registry::listChannels(). A call to this function sets up empty arrays for each channel in configurations.

Parameter

array $channels

a simple list of channel names.

boolean $merge

if true, then the list of channel is merged with the existing list, otherwise it replaces the existing list.

Return value

returns success of operation

Throws

throws no exceptions thrown

Note

This function can not be called statically.

Set config value in specific layer (Previous) setInstallRoot (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.