Skip to content

Latest commit

 

History

History
255 lines (180 loc) · 4.61 KB

System.ru.md

File metadata and controls

255 lines (180 loc) · 4.61 KB

System

  • класс System (php\lang\System)
  • пакет std
  • исходники php/lang/System.php

Описание

Class System


Статичные Методы


Методы


Статичные Методы

halt()

System::halt(int $status): void

Exit from program with status globally


gc()

System::gc(): void

Runs the garbage collector


getEnv()

System::getEnv(): string[]

getProperty()

System::getProperty(mixed $name, string $def): string

Gets a system property by name


setProperty()

System::setProperty(string $name, string $value): string

Sets a system property by name and value.


getProperties()

System::getProperties(): array

setProperties()

System::setProperties(array $properties): void

in()

System::in(): php\io\Stream

out()

System::out(): php\io\Stream

err()

System::err(): php\io\Stream

setIn()

System::setIn([ php\io\Stream $in): void

Set stdin stream.


setOut()

System::setOut([ php\io\Stream $out, string|null $encoding): void

Set stdout stream.


setErr()

System::setErr([ php\io\Stream $err, string|null $encoding): void

Set stderr stream.


tempDirectory()

System::tempDirectory(): string

Returns temp directory that has write access.


userDirectory()

System::userDirectory(): string

userHome()

System::userHome(): string

Returns user.home directory.


userName()

System::userName(): string

Returns os user name which logged.


osName()

System::osName(): string

Returns Operation System Name, eg: Windows.


osVersion()

System::osVersion(): string

Returns Operation System Version.


addClassPath()

System::addClassPath(mixed $file): void

Добавить jar файл или папку classpath во время выполнения.


setEngineLanguage()

System::setEngineLanguage([ string $lang): void

Меняет язык для движка, для его ошибок и сообщений


Методы

__construct()

__construct(): void