Skip to content

Internals Installer Interfaces Package IPackageStorageTreeGenerator

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

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.

IPackageStorageTreeGenerator

Declaration and architectural role

interface IPackageStorageTreeGenerator

Constants, enum cases, traits and properties

No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.

Method index

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

registerItems

Source line 12

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.

generate

Source line 19

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.

getStorageTree

Source line 25

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.

buildStorageTree

Source line 31

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.

setSource

Source line 38

public function setSource(string $source): void;

Parameters

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.

setDestination

Source line 45

public function setDestination(string $destination): void;

Parameters

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.

setPackageId

Source line 52

public function setPackageId(int $packageId): void;

Parameters

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.

setBaseUrl

Source line 59

public function setBaseUrl(string $baseUrl): void;

Parameters

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.

Clone this wiki locally