Documentation

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

Methods

sanitizeProcessTitleFormat()

Sanitizes the process title format string

public static sanitizeProcessTitleFormat(string $string) : string
Parameters
$string : string

the process title

Tags
throws
DomainException

in case the $string value is not within the permitted range

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


        
On this page

Search results