implements |
ArrayAccess, Arrayable, Iterator |
---|---|
uses |
NamespaceUtilitiesTrait |
Class Service
Service composition and validation
$config is merged configuration, $new => $cur => $old => $default
Methods | ||
---|---|---|
public
|
__construct(string $svc, SiteConfiguration $container)
|
# |
public
|
__debugInfo()
|
# |
public
|
set(string $name, mixed|null $value): void
|
# |
public
|
getDefaultServiceValue(null|string $svc = null, null|string $name = null): mixed
|
# |
public
|
preflight(): bool
|
# |
public
|
key()
|
# |
public
|
next(): void
|
# |
public
|
rewind(): void
|
# |
public
|
getValidatorClass($var): string
|
# |
public
|
isEdit(): bool
|
# |
public
|
serviceValueChanged(string|null $service, string|null $type): bool
|
# |
public
|
getNewServiceValue(string $svc = null, null|string $name = null): mixed
|
# |
public
|
hasOld(): bool
|
# |
public
|
hasNew(): bool
|
# |
public
|
getOldServiceValue(null|string $svc = null, null|string $name = null): mixed
|
# |
public
|
getServiceValue(string|null $svc = null, string $name = null, mixed $default = null): mixed
|
# |
public
|
getModuleName(): string
|
# |
public
|
getConfigurationContainer(): SiteConfiguration
|
# |
public
|
revalidateService()
|
# |
public
|
applyDefaults(): void
|
# |
public
|
isRevalidation(): bool
|
# |
public
|
isCreate(): bool
|
# |
public
|
getServiceName(): string
|
# |
public
|
isDelete(): bool
|
# |
public
|
commitService(): bool
|
# |
public
|
offsetExists($offset)
|
# |
public
|
offsetGet($offset)
|
# |
public
|
offsetSet($offset, $value)
|
# |
public
|
offsetUnset($offset)
|
# |
public
|
valid(): bool
|
# |
public
|
current()
|
# |
public
|
toArray()
|
# |
public
|
getRecomputedValues(): array
|
# |
Methods used from NamespaceUtilitiesTrait |
---|
getBaseClassName(), getParentClassName(), appendNamespace(), getNamespace() |