PEAR_ChannelFile::fromArray()

PEAR_ChannelFile::fromArray()  -- fromArray

Synopsis

require_once '/ChannelFile.php';

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

Beschreibung

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.

Parameter

array $data

The pre-parsed channel data

mixed $compatibility

mixed $stackClass

Rückgabewert

returns false if invalid

Fehler-Meldungen

throws no exceptions thrown

Hinweise

Diese Methode sollte statisch aufgerufen werden..