Repository navigation
Internals Installer Interfaces Package IPackageStorageTreeGenerator
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/installer/interfaces/package/IPackageStorageTreeGenerator.php · Snapshot 8411f4287706.
Installation validates archives and manifests, moves files, persists metadata, copies data into storage, invokes an optional hook and emits an event. These operations do not form one atomic transaction.
interface IPackageStorageTreeGeneratorNo own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| registerItems | public function registerItems(): bool |
| generate | public function generate(): self |
| getStorageTree | public function getStorageTree(): array |
| buildStorageTree | public function buildStorageTree(): self |
| setSource | public function setSource(string $source): void |
| setDestination | public function setDestination(string $destination): void |
| setPackageId | public function setPackageId(int $packageId): void |
| setBaseUrl | public function setBaseUrl(string $baseUrl): void |
public function registerItems(): bool;Registers all items from the storage tree into the database. @return bool
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function generate(): self;Generates the storage tree for the package in awt_data/public/packages/<name> directory.
Also copies all files and directories from the data directory of the package to the awt_data/public/packages/<name> directory.
@return self
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getStorageTree(): array;Returns the storage tree. @return array
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function buildStorageTree(): self;Takes the /data/ directory which is located in the package root and builds a storage tree recursively.
@return self
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setSource(string $source): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$source |
string $source |
* @return void |
Sets the source directory (package's data/ directory).
@param string $source
@return void
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setDestination(string $destination): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$destination |
string $destination |
* @return void |
Sets the destination directory (public packages directory). @param string $destination @return void
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setPackageId(int $packageId): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$packageId |
int $packageId |
* @return void |
Sets the package ID used when registering storage entries. @param int $packageId @return void
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setBaseUrl(string $baseUrl): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$baseUrl |
string $baseUrl |
* @return void |
Sets the base URL for public access to the package's data files. @param string $baseUrl @return void
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes