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

Class: System_ProcWatch_Parser

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

Class Overview


System_ProcWatch_Parser


Author(s):

Version:

  • $Revision: 304228 $

Methods


Inherited Variables

Inherited Methods


Class Details

[line 34]
System_ProcWatch_Parser

Fetches output from `ps` and parses it into an associative array

Usage:

  1.  $ps &new System_ProcWatch_Parser();
  2.  $pd &$ps->getParsedData();

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


[ Top ]


Method Detail

__construct (Constructor)   [line 71]

object System_ProcWatch_Parser __construct( [string $ps_args = 'aux'])

Constructor (ZE2)
  • Access: protected

Parameters:

string   $ps_args     ps' args

[ Top ]

System_ProcWatch_Parser (Constructor)   [line 59]

object System_ProcWatch_Parser System_ProcWatch_Parser( [string $ps_args = 'aux'])

Constructor
  • Access: protected

Parameters:

string   $ps_args     ps' args

[ Top ]

fetch   [line 83]

string fetch( [string $ps_args = ''])

Fetch ps' data
  • Return: ps' output
  • Access: public

Parameters:

string   $ps_args     ps' args

[ Top ]

getParsedData   [line 124]

array &getParsedData( [string $ps_args = 'aux'], [bool $refresh = false])

Get parsed data
  • Access: public

Parameters:

string   $ps_args     ps' arguments
bool   $refresh     whether to refresh our data

[ Top ]

getProcByPid   [line 140]

array getProcByPid( int $pid)

Get info about a process by its PID
  • Access: public

Parameters:

int   $pid     the PID of the process

[ Top ]

getProcInfo   [line 158]

array getProcInfo( string $pattern, string $search)

Get information about processes
  • Access: public

Parameters:

string   $pattern     PCRE to match for process
string   $search     the ps field to search for

[ Top ]

parse   [line 99]

array &parse( string $data)

Parse
  • Access: public

Parameters:

string   $data     

[ Top ]


Documentation generated on Sun, 10 Oct 2010 05:00:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.