MediaWiki master
|
Inherits Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle.
Public Member Functions | |
__construct (SwiftFileBackend $backend, Closure $callback, array $httpOp) | |
Construct a handle to be use with SwiftFileOpHandle::doExecuteOpHandlesInternal() | |
Public Member Functions inherited from Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle | |
closeResources () | |
Close all open file handles. | |
Public Attributes | |
Closure | $callback |
Function to run after each HTTP request finishes. | |
array[] | $httpOp |
List of HTTP request maps for SwiftFileBackend::requestWithAuth. | |
int | $state = self::CONTINUE_IF_OK |
Class CONTINUE_* constant. | |
Public Attributes inherited from Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle | |
FileBackendStore | $backend |
callable | $call |
name that identifies the function called | |
array | $params = [] |
array | $resourcesToClose = [] |
Definition at line 30 of file SwiftFileOpHandle.php.
Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle::__construct | ( | SwiftFileBackend | $backend, |
Closure | $callback, | ||
array | $httpOp ) |
Construct a handle to be use with SwiftFileOpHandle::doExecuteOpHandlesInternal()
The callback returns a class CONTINUE_* constant and takes the following parameters:
SwiftFileBackend | $backend | |
Closure | $callback | |
array | $httpOp | Request to send via SwiftFileBackend::requestWithAuth() |
Definition at line 55 of file SwiftFileOpHandle.php.
References Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle\$backend, Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle\$callback, and Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle\$httpOp.
Closure Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle::$callback |
Function to run after each HTTP request finishes.
Definition at line 34 of file SwiftFileOpHandle.php.
Referenced by Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle\__construct().
array [] Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle::$httpOp |
List of HTTP request maps for SwiftFileBackend::requestWithAuth.
Definition at line 32 of file SwiftFileOpHandle.php.
Referenced by Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle\__construct().
int Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle::$state = self::CONTINUE_IF_OK |
Class CONTINUE_* constant.
Definition at line 37 of file SwiftFileOpHandle.php.