MediaWiki master
SwiftFileOpHandle.php
Go to the documentation of this file.
1<?php
12
13use Closure;
15
18 public $httpOp;
20 public $callback;
21
23 public $state = self::CONTINUE_IF_OK;
24
26 public const CONTINUE_IF_OK = 0;
28 public const CONTINUE_NO = 1;
29
41 public function __construct( SwiftFileBackend $backend, Closure $callback, array $httpOp ) {
42 $this->backend = $backend;
43 $this->callback = $callback;
44 $this->httpOp = $httpOp;
45 }
46}
47
49class_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.