Skip to content

Latest commit

 

History

History
146 lines (101 loc) · 1.95 KB

Configuration.md

File metadata and controls

146 lines (101 loc) · 1.95 KB

Configuration

  • class Configuration (php\util\Configuration)
  • package std
  • source php/util/Configuration.php

Description

Class Configuration


Methods


Methods

__construct()

__construct(string|Stream $source, string $encoding): void

has()

has(string $key): bool

get()

get(string $key, null|string $def): string

getArray()

getArray(string $key, array $def): string[]

getBoolean()

getBoolean(string $key, bool $def): bool

getNumber()

getNumber(string $key, int|float $def): int|float

getInteger()

getInteger(string $key, int $def): int

set()

set(string $key, string|array $value): string

put()

put(array|Traversable $values): void

clear()

clear(): void

Remove all values.


load()

load(string|Stream $in, string $encoding): void

save()

save(string|Stream $out, string $encoding): void

toArray()

toArray(): array