ProcessDetails
in package
The Process Details Class
Table of Contents
Properties
- $pid : int
- $socket : SimpleSocket
Methods
- __construct() : mixed
- The constructor
- getPid() : int
- Get the pid
- getSocket() : SimpleSocket
- Get the socket
- sanitizeProcessTitleFormat() : string
- Sanitizes the process title format string
- setProcessTitle() : void
- Sets the proccess title
Properties
$pid
protected
int
$pid
process id pid
$socket
protected
SimpleSocket
$socket
the socket
Methods
__construct()
The constructor
public
__construct(int $pid, SimpleSocket $socket) : mixed
Parameters
- $pid : int
- $socket : SimpleSocket
getPid()
Get the pid
public
getPid() : int
Return values
intgetSocket()
Get the socket
public
getSocket() : SimpleSocket
Return values
SimpleSocketsanitizeProcessTitleFormat()
Sanitizes the process title format string
public
static sanitizeProcessTitleFormat(string $string) : string
Parameters
- $string : string
-
the process title
Tags
Return values
string —the process sanitized title
setProcessTitle()
Sets the proccess title
public
static setProcessTitle(string $title[, array<string|int, mixed> $replacements = array() ]) : void
This function call requires php5.5+ or the proctitle extension! Empty title strings won't be set.
Parameters
- $title : string
-
the new process title
- $replacements : array<string|int, mixed> = array()
-
an associative array of replacment values