PEAR Manual
Prev |  | Next

# System_ProcWatch_Config::fromArray()

System_ProcWatch_Config::fromArray() -- Get config array from an array

## Synopsis

    require_once 'System/ProcWatch/Config.php';

``mixed System_ProcWatch_Config::fromArray` (mixed $array)`

## Description

This method in fact does a sanity check on the supplied config array and should only be used for testing purposes.

## Parameter

array `$array`

  config array to check

## Return value

Returns the same array on success or PEAR_Error on failure.

## Throws

Throws PEAR_Error if an invalid configuration array was supplied.

## Note

This function should be called statically.

Prev | Home | Next
System_ProcWatch_Config::fromIniFile() | Up | System_ProcWatch_Parser