Methods |
public
|
__construct(string $svc, SiteConfiguration $container)
ConfigurationContext constructor.
ConfigurationContext constructor.
Parameters
$svc |
current service name
|
|
#
|
public
|
__debugInfo()
|
#
|
public
|
set(string $name, mixed|null $value): void
Set configuration parameter in active service class
Set configuration parameter in active service class
|
#
|
public
|
getDefaultServiceValue(null|string $svc = null, null|string $name = null): mixed
Get default service value Reads from templates/plans/default/
Get default service value Reads from templates/plans/default/
Parameters
$svc |
service name, null for current service
|
|
#
|
public
|
preflight(): bool
Perform basic validations in _verify_conf
Perform basic validations in _verify_conf
|
#
|
public
|
key()
|
#
|
public
|
next(): void
|
#
|
public
|
rewind(): void
|
#
|
public
|
getValidatorClass($var): string
Get checker for configuration variable
Get checker for configuration variable
|
#
|
public
|
isEdit(): bool
Service configuration is edit state
Service configuration is edit state
|
#
|
public
|
serviceValueChanged(string|null $service, string|null $type): bool
Service value has changed
Service value has changed
|
#
|
public
|
getNewServiceValue(string $svc = null, null|string $name = null): mixed
Get pending service changes
Get pending service changes
Returns
service or null if deleting
|
#
|
public
|
hasOld(): bool
Service configuration has old values Present during a delete or edit, but not add
Service configuration has old values Present during a delete or edit, but not add
|
#
|
public
|
hasNew(): bool
Service configuration has new values Present during an add or edit, but not delete
Service configuration has new values Present during an add or edit, but not delete
|
#
|
public
|
getOldServiceValue(null|string $svc = null, null|string $name = null): mixed
Get original service changes
Get original service changes
Returns
service value or null if creating
|
#
|
public
|
getServiceValue(string|null $svc = null, string $name = null, mixed $default = null): mixed
Get composite service value new => old => default => $default parameter
Get composite service value new => old => default => $default parameter
Parameters
$svc |
service class
|
$name |
service name
|
$default |
default value
|
|
#
|
public
|
getModuleName(): string
Get module name of current service
Get module name of current service
|
#
|
public
|
getConfigurationContainer(): SiteConfiguration
Get SiteConfiguration container
Get SiteConfiguration container
|
#
|
public
|
revalidateService()
Force revalidation of all variables within service
Force revalidation of all variables within service
|
#
|
public
|
applyDefaults(): void
Fill omitted configuration with defaults
Fill omitted configuration with defaults
|
#
|
public
|
isRevalidation(): bool
Service class is being revalidated
Service class is being revalidated
|
#
|
public
|
isCreate(): bool
Configuration in creation stage
Configuration in creation stage
|
#
|
public
|
getServiceName(): string
|
#
|
public
|
isDelete(): bool
Configuration in deletion stage
Configuration in deletion stage
|
#
|
public
|
commitService(): bool
|
#
|
public
|
offsetExists($offset)
|
#
|
public
|
offsetGet($offset)
Actually this should be return by ref but atm cannot be.
Actually this should be return by ref but atm cannot be.
Implements
|
#
|
public
|
offsetSet($offset, $value)
|
#
|
public
|
offsetUnset($offset)
|
#
|
public
|
valid(): bool
|
#
|
public
|
current()
|
#
|
public
|
toArray()
Get the instance as an array.
Get the instance as an array.
Implements
|
#
|
public
|
getRecomputedValues(): array
Get recomputed values after preflight()
Get recomputed values after preflight()
|
#
|