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' )

Description

Utilisez cette méthode avec précaution. Elle est prévue pour autoriser l'importation d'un fichier channel.xml pré-analysé depuis une autre classe PEAR_ChannelFile. Elle rend également possible le stockage dans le registre du fichier channel.xml.

Parameter

array $data

Les données pré-analysées d'un canal

mixed $compatibility

mixed $stackClass

Return value

retourne FALSE si invalide.

Throws

No exceptions thrown.

Note

This function should be called statically.