Repository navigation
Internals Vfs Transient Interfaces ITransientStorage
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/vfs/transient/interfaces/ITransientStorage.php · Snapshot 8411f4287706.
VFS includes package resource lookup, database-backed file metadata, filesystem collaborators, transient pools and persistent PHP-array caches.
use vfs\transient\enums\ETransientType;interface ITransientStorageNo own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| setPool | public function setPool(string $pool): self |
| setSubPool | public function setSubPool(string $subPool): self |
| getFile | public function getFile(string $name): ?ITransientStorageEntry |
| createFile | public function createFile( string $name, ETransientType $type, string|array $content ): ITransientStorageEntry |
| deleteFile | public function deleteFile(ITransientStorageEntry $file): bool |
| renameFile | public function renameFile( ITransientStorageEntry $file, string $newName ): ITransientStorageEntry |
| moveFile | public function moveFile( ITransientStorageEntry $file, string $newPool ): ITransientStorageEntry |
| copyFile | public function copyFile( ITransientStorageEntry $file, string $newName ): ITransientStorageEntry |
| getFiles | public function getFiles(): array |
public function setPool(string $pool): self;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$pool |
string $pool |
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 setSubPool(string $subPool): self;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$subPool |
string $subPool |
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 getFile(string $name): ?ITransientStorageEntry;| 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 createFile(
string $name,
ETransientType $type,
string|array $content
): ITransientStorageEntry;| 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. |
$type |
ETransientType $type |
Expected class/type or enum selection according to the signature. |
$content |
string|array $content |
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 deleteFile(ITransientStorageEntry $file): bool;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$file |
ITransientStorageEntry $file |
Uploaded file array, file object or path according to the declared contract. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function renameFile(
ITransientStorageEntry $file,
string $newName
): ITransientStorageEntry;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$file |
ITransientStorageEntry $file |
Uploaded file array, file object or path according to the declared contract. |
$newName |
string $newName |
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 moveFile(
ITransientStorageEntry $file,
string $newPool
): ITransientStorageEntry;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$file |
ITransientStorageEntry $file |
Uploaded file array, file object or path according to the declared contract. |
$newPool |
string $newPool |
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 copyFile(
ITransientStorageEntry $file,
string $newName
): ITransientStorageEntry;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$file |
ITransientStorageEntry $file |
Uploaded file array, file object or path according to the declared contract. |
$newName |
string $newName |
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 getFiles(): array;@return ITransientStorageEntry[]
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