MediaWiki
master
SwiftFileOpHandle.php
Go to the documentation of this file.
1
<?php
25
namespace
Wikimedia\FileBackend\FileOpHandle
;
26
27
use Closure;
28
use
Wikimedia\FileBackend\SwiftFileBackend
;
29
30
class
SwiftFileOpHandle
extends
FileBackendStoreOpHandle
{
32
public
$httpOp
;
34
public
$callback
;
35
37
public
$state
= self::CONTINUE_IF_OK;
38
40
public
const
CONTINUE_IF_OK = 0;
42
public
const
CONTINUE_NO = 1;
43
55
public
function
__construct
(
SwiftFileBackend
$backend
, Closure
$callback
, array
$httpOp
) {
56
$this->backend =
$backend
;
57
$this->callback =
$callback
;
58
$this->httpOp =
$httpOp
;
59
}
60
}
61
63
class_alias( SwiftFileOpHandle::class,
'SwiftFileOpHandle'
);
Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle
FileBackendStore helper class for performing asynchronous file operations.
Definition
FileBackendStoreOpHandle.php:36
Wikimedia\FileBackend\FileOpHandle\FileBackendStoreOpHandle\$backend
FileBackendStore $backend
Definition
FileBackendStoreOpHandle.php:40
Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle
Definition
SwiftFileOpHandle.php:30
Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle\$state
int $state
Class CONTINUE_* constant.
Definition
SwiftFileOpHandle.php:37
Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle\$callback
Closure $callback
Function to run after each HTTP request finishes.
Definition
SwiftFileOpHandle.php:34
Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle\$httpOp
array[] $httpOp
List of HTTP request maps for SwiftFileBackend::requestWithAuth.
Definition
SwiftFileOpHandle.php:32
Wikimedia\FileBackend\FileOpHandle\SwiftFileOpHandle\__construct
__construct(SwiftFileBackend $backend, Closure $callback, array $httpOp)
Construct a handle to be use with SwiftFileOpHandle::doExecuteOpHandlesInternal()
Definition
SwiftFileOpHandle.php:55
Wikimedia\FileBackend\SwiftFileBackend
Class for an OpenStack Swift (or Ceph RGW) based file backend.
Definition
SwiftFileBackend.php:55
Wikimedia\FileBackend\FileOpHandle
Definition
FileBackendStoreOpHandle.php:22
includes
libs
filebackend
fileophandle
SwiftFileOpHandle.php
Generated on Mon Nov 4 2024 17:24:23 for MediaWiki by
1.10.0