PEAR_ChannelFile::fromArray() – fromArray


require_once '/ChannelFile.php';

PEAR_ChannelFile |false PEAR_ChannelFile::fromArray ( array $data , mixed $compatibility = false , mixed $stackClass = 'PEAR_ErrorStack' )


Use this method with caution. This is intended to allow easy import of a pre-parsed channel.xml from another PEAR_ChannelFile class. It also makes possible the registry storage of channel.xml.


array $data

The pre-parsed channel data

mixed $compatibility

mixed $stackClass

Return value

returns false if invalid


throws no exceptions thrown


This function should be called statically.

Returns channel information from different sources (Previous) Parse a channel.xml file. Expects the name of a channel xml file as input. (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.