Repository navigation
Internals Vfs Storage Interfaces IStorageRepository
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/vfs/storage/interfaces/IStorageRepository.php · Snapshot 8411f4287706.
VFS includes package resource lookup, database-backed file metadata, filesystem collaborators, transient pools and persistent PHP-array caches.
use vfs\storage\StorageEntry;
use vfs\storage\enums\EOwnerType;interface IStorageRepositorySource description (behavioral corrections are recorded in Known discrepancies):
Interface IStorageRepository
Defines the persistence contract for StorageEntry objects (DIP). High-level modules (StorageManager) depend on this abstraction, not the concrete StorageRepository class.
No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| fetchAll | public function fetchAll(): array |
| fetchById | public function fetchById(int $id): StorageEntry |
| fetchByOwner | public function fetchByOwner(int $ownerId): array |
| fetchByName | public function fetchByName(string $name): array |
| fetchByOwnerType | public function fetchByOwnerType(EOwnerType $ownerType): array |
| fetchByOwnerTypeAndOwner | public function fetchByOwnerTypeAndOwner(EOwnerType $ownerType, int $ownerId): array |
| fetchByOwnerAndName | public function fetchByOwnerAndName(int $ownerId, string $name): ?StorageEntry |
| create | public function create(StorageEntry $entry): StorageEntry |
| update | public function update(StorageEntry $entry): bool |
| delete | public function delete(StorageEntry $entry): bool |
public function fetchAll(): 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 fetchById(int $id): StorageEntry;| 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.
public function fetchByOwner(int $ownerId): array;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$ownerId |
int $ownerId |
Owning record ID or null. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function fetchByName(string $name): array;| 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.
public function fetchByOwnerType(EOwnerType $ownerType): array;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$ownerType |
EOwnerType $ownerType |
Storage owner category; a matching registered strategy is required for registration. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function fetchByOwnerTypeAndOwner(EOwnerType $ownerType, int $ownerId): array;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$ownerType |
EOwnerType $ownerType |
Storage owner category; a matching registered strategy is required for registration. |
$ownerId |
int $ownerId |
Owning record ID or null. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function fetchByOwnerAndName(int $ownerId, string $name): ?StorageEntry;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$ownerId |
int $ownerId |
Owning record ID or null. |
$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.
public function create(StorageEntry $entry): StorageEntry;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$entry |
StorageEntry $entry |
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.
public function update(StorageEntry $entry): bool;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$entry |
StorageEntry $entry |
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.
public function delete(StorageEntry $entry): bool;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$entry |
StorageEntry $entry |
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.
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