| Methods |
public
|
getNamespace(): string
Returns the canonical namespace of the module — the dotted token
(e.g. `io.pragmatiqu.portal`) that uniquely identifies…
Returns the canonical namespace of the module — the dotted token
(e.g. io.pragmatiqu.portal) that uniquely identifies it within the
installation. It is the registry key and the basis for URL/route
construction (dots → slashes), manifest generation, and module mapping.
Single source of truth. A module is a container, not an artifact —
it does not own its namespace, it reflects its root artifact's. The
abstract base derives this from getArtifactRoot()->getNamespace(), so
the module and its App/Library can never drift.
Returns
|
#
|
public
|
getVersion(): string
Returns the module's version (e.g. "1.2.0") — the one version every artifact of the module
runs under. It is part of…
Returns the module's version (e.g. "1.2.0") — the one version every artifact of the module
runs under. It is part of each routable artifact's address, so a new version is what tells a
browser to fetch the module's files again: bump it whenever you release changes.
A package that ships several modules gives them one version: the others refer to the one
that holds it (public const string VERSION = SdkModule::VERSION;).
|
#
|
public
|
requiresAuth(): bool
Indicates whether this module requires an authenticated user
in order to be served.
Indicates whether this module requires an authenticated user
in order to be served.
Returning true means the module is only accessible to
authenticated users. Public modules should return false.
|
#
|
public
|
getSourceStrategy(): Ui5SourceStrategyInterface
Returns the Ui5SourceStrategy used to resolve UI5 source artifacts
for this module.
Returns the Ui5SourceStrategy used to resolve UI5 source artifacts
for this module.
The source strategy defines how and from where UI5 resources
(manifest, preload bundles, i18n files, descriptors) are accessed,
depending on the module's origin (e.g. workspace-based or packaged).
The returned value is resolved by the Ui5Registry.
The strategy itself is responsible for:
- determining the runtime UI5 resource path,
- and optionally providing introspection capabilities.
Important:
- This method does NOT perform any filesystem access.
- It only declares which strategy applies to this module.
Returns
Strategy for resolving Ui5Source artifacts.
|
#
|
public
|
getArtifactRoot(): Ui5AppInterface|Ui5LibraryInterface
Returns the root artifact of the module — its one application or library. Builds the root
alone, never the rest of the…
Returns the root artifact of the module — its one application or library. Builds the root
alone, never the rest of the module's artifacts.
Returns
The root artifact (App or Library)
|
#
|
public
|
get<T is ArtifactInterface>(class-string<T> $contract): list<T>
Returns the module's artifacts that fulfil a contract, in declaration order —
`$module->get(Ui5ActionInterface::class)`.
Returns the module's artifacts that fulfil a contract, in declaration order —
$module->get(Ui5ActionInterface::class).
|
#
|
public
|
getAllArtifacts(): list<ArtifactInterface>
Returns all artifacts of this module, the root included, each built once.
Returns all artifacts of this module, the root included, each built once.
|
#
|