class ProcessInfo extends Model

Prozess-Info

{"Titles":["PID","TTY","TIME","CMD"],"Processes":[["1884","?","00:00:00","sleep"]]}

Properties

protected integer $pid
protected string $tty
protected Time $time
protected string $cmd

Methods

boolean
convertCollectionToArray(array $config, string $key)

Hilfsfunktion

from Model
__construct(integer $pid, boolean $tty, Time $time, string $cmd)

Neue Instanz erstellen

integer
getPID()

Prozess-ID

string
getTTY()

TTY

string
getCmd()

Befehl

Time
getTime()

Zeit

static ProcessInfo>
getInstanceFromArray(array|ArrayHelper $array)

Neues ProcessInfo Objekt erstellen

Details

in Model at line 43
protected boolean convertCollectionToArray(array $config, string $key)

Hilfsfunktion

Parameters

array $config Konfiguration
string $key Schlüssel

Return Value

boolean

at line 67
__construct(integer $pid, boolean $tty, Time $time, string $cmd)

Neue Instanz erstellen

Parameters

integer $pid Prozess-ID
boolean $tty TTY
Time $time Zeit
string $cmd Befehl

at line 82
integer getPID()

Prozess-ID

Return Value

integer PID

at line 91
string getTTY()

TTY

Return Value

string TTY

at line 100
string getCmd()

Befehl

Return Value

string Befehl

at line 109
Time getTime()

Zeit

Return Value

Time Zeit

at line 125
static ProcessInfo> getInstanceFromArray(array|ArrayHelper $array)

Neues ProcessInfo Objekt erstellen

Wichtig Das Ergebnis ist kein ProcessInfo, sondern eine Collection von Typ ProcessInfo

{"Titles":["PID","TTY","TIME","CMD"],"Processes":[["1884","?","00:00:00","sleep"]]}

Parameters

array|ArrayHelper $array Definition

Return Value

ProcessInfo> Sammlung mit ProccessInfos