MediaWiki master
Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle Class Reference

FileBackendStore helper class for performing asynchronous file operations. More...

Inherited by Wikimedia\FileBackend\FileOpHandle\FSFileOpHandle, and Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle.

Collaboration diagram for Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle:

Public Member Functions

 closeResources ()
 Close all open file handles.
 

Public Attributes

FileBackendStore $backend
 
callable $call
 name that identifies the function called
 
array $params = []
 
array $resourcesToClose = []
 

Detailed Description

FileBackendStore helper class for performing asynchronous file operations.

For example, calling FileBackendStore::createInternal() with the "async" param flag may result in a StatusValue that contains this object as a value. This class is largely backend-specific and is mostly just "magic" to be passed to FileBackendStore::executeOpHandlesInternal().

Stability: stable
to extend

Definition at line 36 of file FileBackendStoreOpHandle.php.

Member Function Documentation

◆ closeResources()

Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle::closeResources ( )

Close all open file handles.

Definition at line 49 of file FileBackendStoreOpHandle.php.

Member Data Documentation

◆ $backend

FileBackendStore Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle::$backend

◆ $call

callable Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle::$call

name that identifies the function called

Definition at line 44 of file FileBackendStoreOpHandle.php.

Referenced by Wikimedia\FileBackend\FileOpHandle\FSFileOpHandle\__construct().

◆ $params

array Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle::$params = []

◆ $resourcesToClose

array Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle::$resourcesToClose = []

Definition at line 42 of file FileBackendStoreOpHandle.php.


The documentation for this class was generated from the following file: