PHP 클래스 PHPDaemon\Config\Object

저자: Zorin Vasily ([email protected])
상속: implements ArrayAccess, use trait PHPDaemon\Traits\ClassWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$addincludepath string | PHPDaemon\Config\Entry\Generic Additional include path
$autogc integer | PHPDaemon\Config\Entry\Number Automatic garbage collector, number of iterations between GC call
$autoreimport boolean | PHPDaemon\Config\Entry\Generic Try to import updated code (runkit required)
$autoreload time Autoreload interval. Time interval between checks.
$chroot string | PHPDaemon\Config\Entry\Generic Chroot
$configfile string | PHPDaemon\Config\Entry\ConfigFile Config file
$cwd string Current directory
$defaultns path Default namespace
$defaultpidfile path Default PID file
$eioenabled boolean EIO enabled?
$eiosetmaxidle time EIO maximum idle time
$eiosetmaxparallel integer | PHPDaemon\Config\Entry\Number EIO maximum parallel threads
$eiosetmaxpollreqs integer | PHPDaemon\Config\Entry\Number EIO maximum poll requests
$eiosetmaxpolltime time EIO maximum poll time
$eiosetminparallel integer | PHPDaemon\Config\Entry\Number EIO minimum parallel threads
$group string | PHPDaemon\Config\Entry\Generic System group (setgid)
$ipcthreadpriority integer IPC thread priority
$lambdacachecapwindow integer Lambda cache cap window
$lambdacachemaxsize integer Lambda cache size
$lambdacachettl integer Lambda cache ttl
$lastRevision integer
$locale string | PHPDaemon\Config\Entry\Generic Comma-separated list of locales
$logerrors boolean Log errors?
$logformat string Log format
$logging boolean Logging?
$logsignals boolean Log signals?
$logstorage boolean | PHPDaemon\Config\Entry\Generic Log storage
$logworkersetstate boolean Log Worker->setState() ?
$masterpriority integer Master thread priority
$maxidle time Maximum idle time
$maxmemoryusage size Maximum memory usage
$maxrequests integer | PHPDaemon\Config\Entry\Number Max. requests before worker restart
$maxspareworkers integer | PHPDaemon\Config\Entry\Number Maximum number of spare workes
$maxworkers integer | PHPDaemon\Config\Entry\Number Maximum number of workers
$minspareworkers integer | PHPDaemon\Config\Entry\Number Minimum number of spare workes
$minworkers integer | PHPDaemon\Config\Entry\Number Minimum number of workers
$mpmdelay time Multi-Process Manager delay
$obfilterauto boolean IPC thread priority
$path string | PHPDaemon\Config\Entry\Generic Application resolver
$pidfile string | PHPDaemon\Config\Entry\Generic PID file
$restricterrorcontrol boolean Restrict usage of error-control functions (like @ operator), useful in debugging
$startworkers integer | PHPDaemon\Config\Entry\Number Start workers
$throwexceptiononshutdown boolean Throw exception on shutdown?
$user string | PHPDaemon\Config\Entry\Generic System user (setuid)
$verbosetty boolean Do not close STDOUT and STDERR pipes and send log messages there
$workerpriority integer Worker thread priority

공개 메소드들

메소드 설명
__construct ( ) : object Constructor
getRealPropertyName ( $prop ) : string Get real property name
loadCmdLineArgs ( $settings ) : boolean Imports parameters from command line args
loadFile ( $path ) : boolean Load config file
offsetExists ( $prop ) : boolean Checks if property exists
offsetGet ( $prop ) : mixed Get property by name
offsetSet ( $prop, $value ) : void Set property
offsetUnset ( $prop ) : void Unset property
parseCfgUri ( $uri, $source = null ) : boolean Checks if property exists
renameSection ( string $old, string $new, booelan $log = false ) : void Renames section

보호된 메소드들

메소드 설명
onLoad ( ) : void Called when config is loaded

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( ) : object
리턴 object

getRealPropertyName() 공개 메소드

Get real property name
public getRealPropertyName ( $prop ) : string
리턴 string Real property name

loadCmdLineArgs() 공개 정적인 메소드

Imports parameters from command line args
public static loadCmdLineArgs ( $settings ) : boolean
리턴 boolean - Success.

loadFile() 공개 메소드

Load config file
public loadFile ( $path ) : boolean
리턴 boolean Success

offsetExists() 공개 메소드

Checks if property exists
public offsetExists ( $prop ) : boolean
리턴 boolean Exists?

offsetGet() 공개 메소드

Get property by name
public offsetGet ( $prop ) : mixed
리턴 mixed

offsetSet() 공개 메소드

Set property
public offsetSet ( $prop, $value ) : void
리턴 void

offsetUnset() 공개 메소드

Unset property
public offsetUnset ( $prop ) : void
리턴 void

onLoad() 보호된 메소드

Called when config is loaded
protected onLoad ( ) : void
리턴 void

parseCfgUri() 공개 정적인 메소드

Checks if property exists
public static parseCfgUri ( $uri, $source = null ) : boolean
리턴 boolean Exists?

renameSection() 공개 메소드

Renames section
public renameSection ( string $old, string $new, booelan $log = false ) : void
$old string
$new string
$log booelan Log?
리턴 void

프로퍼티 상세

$addincludepath 공개적으로 프로퍼티

Additional include path
public string|Generic,PHPDaemon\Config\Entry $addincludepath
리턴 string | PHPDaemon\Config\Entry\Generic

$autogc 공개적으로 프로퍼티

Automatic garbage collector, number of iterations between GC call
public int|Number,PHPDaemon\Config\Entry $autogc
리턴 integer | PHPDaemon\Config\Entry\Number

$autoreimport 공개적으로 프로퍼티

Try to import updated code (runkit required)
public bool|Generic,PHPDaemon\Config\Entry $autoreimport
리턴 boolean | PHPDaemon\Config\Entry\Generic

$autoreload 공개적으로 프로퍼티

Autoreload interval. Time interval between checks.
public time $autoreload
리턴 time

$chroot 공개적으로 프로퍼티

Chroot
public string|Generic,PHPDaemon\Config\Entry $chroot
리턴 string | PHPDaemon\Config\Entry\Generic

$configfile 공개적으로 프로퍼티

Config file
public string|ConfigFile,PHPDaemon\Config\Entry $configfile
리턴 string | PHPDaemon\Config\Entry\ConfigFile

$cwd 공개적으로 프로퍼티

Current directory
public string $cwd
리턴 string

$defaultns 공개적으로 프로퍼티

Default namespace
public path $defaultns
리턴 path

$defaultpidfile 공개적으로 프로퍼티

Default PID file
public path $defaultpidfile
리턴 path

$eioenabled 공개적으로 프로퍼티

EIO enabled?
public bool $eioenabled
리턴 boolean

$eiosetmaxidle 공개적으로 프로퍼티

EIO maximum idle time
public time $eiosetmaxidle
리턴 time

$eiosetmaxparallel 공개적으로 프로퍼티

EIO maximum parallel threads
public int|Number,PHPDaemon\Config\Entry $eiosetmaxparallel
리턴 integer | PHPDaemon\Config\Entry\Number

$eiosetmaxpollreqs 공개적으로 프로퍼티

EIO maximum poll requests
public int|Number,PHPDaemon\Config\Entry $eiosetmaxpollreqs
리턴 integer | PHPDaemon\Config\Entry\Number

$eiosetmaxpolltime 공개적으로 프로퍼티

EIO maximum poll time
public time $eiosetmaxpolltime
리턴 time

$eiosetminparallel 공개적으로 프로퍼티

EIO minimum parallel threads
public int|Number,PHPDaemon\Config\Entry $eiosetminparallel
리턴 integer | PHPDaemon\Config\Entry\Number

$group 공개적으로 프로퍼티

System group (setgid)
public string|Generic,PHPDaemon\Config\Entry $group
리턴 string | PHPDaemon\Config\Entry\Generic

$ipcthreadpriority 공개적으로 프로퍼티

IPC thread priority
public int $ipcthreadpriority
리턴 integer

$lambdacachecapwindow 공개적으로 프로퍼티

Lambda cache cap window
public int $lambdacachecapwindow
리턴 integer

$lambdacachemaxsize 공개적으로 프로퍼티

Lambda cache size
public int $lambdacachemaxsize
리턴 integer

$lambdacachettl 공개적으로 프로퍼티

Lambda cache ttl
public int $lambdacachettl
리턴 integer

$lastRevision 공개적으로 정적으로 프로퍼티

public static int $lastRevision
리턴 integer

$locale 공개적으로 프로퍼티

Comma-separated list of locales
public string|Generic,PHPDaemon\Config\Entry $locale
리턴 string | PHPDaemon\Config\Entry\Generic

$logerrors 공개적으로 프로퍼티

Log errors?
public bool $logerrors
리턴 boolean

$logformat 공개적으로 프로퍼티

Log format
public string $logformat
리턴 string

$logging 공개적으로 프로퍼티

Logging?
public bool $logging
리턴 boolean

$logsignals 공개적으로 프로퍼티

Log signals?
public bool $logsignals
리턴 boolean

$logstorage 공개적으로 프로퍼티

Log storage
public bool|Generic,PHPDaemon\Config\Entry $logstorage
리턴 boolean | PHPDaemon\Config\Entry\Generic

$logworkersetstate 공개적으로 프로퍼티

Log Worker->setState() ?
public bool $logworkersetstate
리턴 boolean

$masterpriority 공개적으로 프로퍼티

Master thread priority
public int $masterpriority
리턴 integer

$maxidle 공개적으로 프로퍼티

Maximum idle time
public time $maxidle
리턴 time

$maxmemoryusage 공개적으로 프로퍼티

Maximum memory usage
public size $maxmemoryusage
리턴 size

$maxrequests 공개적으로 프로퍼티

Max. requests before worker restart
public int|Number,PHPDaemon\Config\Entry $maxrequests
리턴 integer | PHPDaemon\Config\Entry\Number

$maxspareworkers 공개적으로 프로퍼티

Maximum number of spare workes
public int|Number,PHPDaemon\Config\Entry $maxspareworkers
리턴 integer | PHPDaemon\Config\Entry\Number

$maxworkers 공개적으로 프로퍼티

Maximum number of workers
public int|Number,PHPDaemon\Config\Entry $maxworkers
리턴 integer | PHPDaemon\Config\Entry\Number

$minspareworkers 공개적으로 프로퍼티

Minimum number of spare workes
public int|Number,PHPDaemon\Config\Entry $minspareworkers
리턴 integer | PHPDaemon\Config\Entry\Number

$minworkers 공개적으로 프로퍼티

Minimum number of workers
public int|Number,PHPDaemon\Config\Entry $minworkers
리턴 integer | PHPDaemon\Config\Entry\Number

$mpmdelay 공개적으로 프로퍼티

Multi-Process Manager delay
public time $mpmdelay
리턴 time

$obfilterauto 공개적으로 프로퍼티

IPC thread priority
public bool $obfilterauto
리턴 boolean

$path 공개적으로 프로퍼티

Application resolver
public string|Generic,PHPDaemon\Config\Entry $path
리턴 string | PHPDaemon\Config\Entry\Generic

$pidfile 공개적으로 프로퍼티

PID file
public string|Generic,PHPDaemon\Config\Entry $pidfile
리턴 string | PHPDaemon\Config\Entry\Generic

$restricterrorcontrol 공개적으로 프로퍼티

Restrict usage of error-control functions (like @ operator), useful in debugging
public bool $restricterrorcontrol
리턴 boolean

$startworkers 공개적으로 프로퍼티

Start workers
public int|Number,PHPDaemon\Config\Entry $startworkers
리턴 integer | PHPDaemon\Config\Entry\Number

$throwexceptiononshutdown 공개적으로 프로퍼티

Throw exception on shutdown?
public bool $throwexceptiononshutdown
리턴 boolean

$user 공개적으로 프로퍼티

System user (setuid)
public string|Generic,PHPDaemon\Config\Entry $user
리턴 string | PHPDaemon\Config\Entry\Generic

$verbosetty 공개적으로 프로퍼티

Do not close STDOUT and STDERR pipes and send log messages there
public bool $verbosetty
리턴 boolean

$workerpriority 공개적으로 프로퍼티

Worker thread priority
public int $workerpriority
리턴 integer