PEAR_ChannelFile::setAlias() – Set the channel alias


require_once '/ChannelFile.php';

boolean PEAR_ChannelFile::setAlias ( string $alias , boolean $local = false )


Set the suggested alias that users can use on the command-line as a shortcut access to this channel. For instance, channel's alias is pear.


string $alias

The alias

boolean $local

determines whether the alias is in channel.xml or local. If local, then this is the result of a pear channel-alias command.

Return value

returns success


throws no exceptions thrown


This function can not be called statically.

Since REST does not implement RPC, provide this as a logical wrapper around resetFunctions for REST (Previous) set the base URL for a REST resource, or set of REST resources (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.