System_ProcWatch
[ class tree: System_ProcWatch ] [ index: System_ProcWatch ] [ all elements ]

Class: System_ProcWatch_Config

Source Location: /System_ProcWatch-0.4.3/System/ProcWatch/Config.php

Class Overview


System_ProcWatch_Config


Author(s):

Version:

  • $Revision: 304228 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 39]
System_ProcWatch_Config

Build a configuration array for System_ProcWatch

Usage:

  1.  $cf System_ProcWatch_Config::fromXmlFile('/etc/procwatch.xml');
  2.  $pw &new System_ProcWatch($cf);

  • Author: Michael Wallner <mike@php.net>
  • Version: $Revision: 304228 $
  • Access: public


[ Top ]


Method Detail

fromArray   [line 151]

mixed fromArray( array $array)

Get config array from an array :)

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

  • Throws: PEAR_Error
  • Access: public

Parameters:

array   $array   —  config array to check

[ Top ]

fromIniFile   [line 89]

mixed fromIniFile( string $file)

Get config array from INI file
  • Throws: PEAR_Error
  • Access: public

Parameters:

string   $file   —  path to INI file

[ Top ]

fromXml   [line 68]

mixed fromXml( string $xml)

Get config array from XML string
  • Throws: PEAR_Error
  • Access: public

Parameters:

string   $xml   —  XML string

[ Top ]

fromXmlFile   [line 50]

mixed fromXmlFile( string $file)

Get config array from XML file
  • Throws: PEAR_Error
  • Access: public

Parameters:

string   $file   —  path to XML file

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.