Skip to content

Internals Vfs Transient Interfaces ITransientStorage

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

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.

Imports and dependencies

use vfs\transient\enums\ETransientType;

ITransientStorage

Declaration and architectural role

interface ITransientStorage

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
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

setPool

Source line 9

public function setPool(string $pool): self;

Parameters

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.

setSubPool

Source line 11

public function setSubPool(string $subPool): self;

Parameters

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.

getFile

Source line 13

public function getFile(string $name): ?ITransientStorageEntry;

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.

createFile

Source line 15

public function createFile(
        string $name,
        ETransientType $type,
        string|array $content
    ): ITransientStorageEntry;

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.
$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.

deleteFile

Source line 21

public function deleteFile(ITransientStorageEntry $file): bool;

Parameters

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.

renameFile

Source line 23

public function renameFile(
        ITransientStorageEntry $file,
        string $newName
    ): ITransientStorageEntry;

Parameters

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.

moveFile

Source line 28

public function moveFile(
        ITransientStorageEntry $file,
        string $newPool
    ): ITransientStorageEntry;

Parameters

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.

copyFile

Source line 33

public function copyFile(
        ITransientStorageEntry $file,
        string $newName
    ): ITransientStorageEntry;

Parameters

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.

getFiles

Source line 41

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.

Related types

Clone this wiki locally