PEAR_Config::setChannels()

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

概要

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

bool PEAR_Config::setChannels (array $channels [, bool $merge = FALSE])

説明

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.

パラメータ

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.

返り値

returns success of operation

例外・エラー

throws no exceptions thrown

注意

この関数は、スタティックにコールする ことはできません。