MediaWiki master
SwiftFileOpHandle.php
Go to the documentation of this file.
1<?php
26
27use Closure;
29
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
63class_alias( SwiftFileOpHandle::class, 'SwiftFileOpHandle' );
FileBackendStore helper class for performing asynchronous file operations.
Closure $callback
Function to run after each HTTP request finishes.
array[] $httpOp
List of HTTP request maps for SwiftFileBackend::requestWithAuth.
__construct(SwiftFileBackend $backend, Closure $callback, array $httpOp)
Construct a handle to be use with SwiftFileOpHandle::doExecuteOpHandlesInternal()
Class for an OpenStack Swift (or Ceph RGW) based file backend.