Skip to content

Internals Package Model Repository Interfaces IPackageRepository

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

package\model\repository\interfaces\IPackageRepository

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/package/model/repository/interfaces/IPackageRepository.php · Snapshot 8411f4287706.

Package metadata is persisted in awt_package. Manifest readers validate input and package services build installed models; startup executes enabled nonzero-type packages.

IPackageRepository

Declaration and architectural role

interface IPackageRepository

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
getActive public function getActive(): array
getDisabled public function getDisabled(): array
getAll public function getAll(): array
getPackage public function getPackage(string $name): ?array
getPackageById public function getPackageById(int $id): ?array
setStatus public function setStatus(int $id, bool $status): bool
updatePackage public function updatePackage(int $id, array $data): bool
newPackage public function newPackage(array $data): ?int

getActive

Source line 8

public function getActive(): array;

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

getDisabled

Source line 10

public function getDisabled(): array;

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

getAll

Source line 12

public function getAll(): array;

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

getPackage

Source line 14

public function getPackage(string $name): ?array;

Parameters

Parameter Type, modifiers and default Purpose
$name string $name Named key/label selected by this API; its exact scope is shown by the implementation trace.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

getPackageById

Source line 16

public function getPackageById(int $id): ?array;

Parameters

Parameter Type, modifiers and default Purpose
$id int $id Record or runtime identifier selected by this operation.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

setStatus

Source line 18

public function setStatus(int $id, bool $status): bool;

Parameters

Parameter Type, modifiers and default Purpose
$id int $id Record or runtime identifier selected by this operation.
$status bool $status Operation input; the exact use, validation and propagation are shown in the implementation trace.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

updatePackage

Source line 20

public function updatePackage(int $id, array $data): bool;

Parameters

Parameter Type, modifiers and default Purpose
$id int $id Record or runtime identifier selected by this operation.
$data array $data Input data array or payload; see allowed fields and validation guards below.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

newPackage

Source line 22

public function newPackage(array $data): ?int;

Parameters

Parameter Type, modifiers and default Purpose
$data array $data Input data array or payload; see allowed fields and validation guards below.

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