PEAR Manual
Prev |  | Next

# PEAR_ChannelFile::getFunction()

PEAR_ChannelFile::getFunction() -- getFunction

## Synopsis

    require_once '/ChannelFile.php';

``array PEAR_ChannelFile::getFunction` (string $type, string [$name = `NULL`], string [$mirror = `FALSE`])`

## Description

Retrieve the xml representation of a function. If found, the array is of format:

    <?php
    array(
     '_content' => 'functionname',
     'attribs' => array('version' => 'version.number')
    );
    ?>

## Parameter

string `$type`

  Protocol type

string `$name`

  Function name (`NULL` to return the first protocol of the type requested)

string `$mirror`

  Mirror name, if any

## Throws

throws no exceptions thrown

## Note

This function can not be called statically.

Prev | Home | Next
PEAR_ChannelFile::getErrors() | Up | PEAR_ChannelFile::getFunctions()