MediaWiki  master
SwiftFileOpHandle.php
Go to the documentation of this file.
1 <?php
27  public $httpOp;
29  public $callback;
30 
32  public $state = self::CONTINUE_IF_OK;
33 
35  public const CONTINUE_IF_OK = 0;
37  public const CONTINUE_NO = 1;
38 
50  public function __construct( SwiftFileBackend $backend, Closure $callback, array $httpOp ) {
51  $this->backend = $backend;
52  $this->callback = $callback;
53  $this->httpOp = $httpOp;
54  }
55 }
SwiftFileOpHandle
Definition: SwiftFileOpHandle.php:25
SwiftFileOpHandle\$httpOp
array[] $httpOp
List of HTTP request maps for MultiHttpClient.
Definition: SwiftFileOpHandle.php:27
SwiftFileBackend
Class for an OpenStack Swift (or Ceph RGW) based file backend.
Definition: SwiftFileBackend.php:36
FileBackendStoreOpHandle\$backend
FileBackendStore $backend
Definition: FileBackendStoreOpHandle.php:36
SwiftFileOpHandle\$state
int $state
Class CONTINUE_* constant.
Definition: SwiftFileOpHandle.php:32
FileBackendStoreOpHandle
FileBackendStore helper class for performing asynchronous file operations.
Definition: FileBackendStoreOpHandle.php:32
SwiftFileOpHandle\$callback
Closure $callback
Function to run after each HTTP request finishes.
Definition: SwiftFileOpHandle.php:29
SwiftFileOpHandle\__construct
__construct(SwiftFileBackend $backend, Closure $callback, array $httpOp)
Construct a handle to be use with SwiftFileOpHandle::doExecuteOpHandlesInternal()
Definition: SwiftFileOpHandle.php:50