Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7415017
FileBackendStoreOpHandle.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
FileBackendStoreOpHandle.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
* @ingroup FileBackend
*/
namespace
Wikimedia\FileBackend\FileOpHandle
;
use
Wikimedia\FileBackend\FileBackendStore
;
/**
* FileBackendStore helper class for performing asynchronous file operations.
*
* For example, calling FileBackendStore::createInternal() with the "async"
* param flag may result in a StatusValue that contains this object as a value.
* This class is largely backend-specific and is mostly just "magic" to be
* passed to FileBackendStore::executeOpHandlesInternal().
*
* @stable to extend
*/
abstract
class
FileBackendStoreOpHandle
{
/** @var array */
public
$params
=
[];
// params to caller functions
/** @var FileBackendStore */
public
$backend
;
/** @var array */
public
$resourcesToClose
=
[];
/** @var callable name that identifies the function called */
public
$call
;
/**
* Close all open file handles
*/
public
function
closeResources
()
{
// @phan-suppress-next-line PhanPluginUseReturnValueInternalKnown
array_map
(
'fclose'
,
$this
->
resourcesToClose
);
}
}
/** @deprecated class alias since 1.43 */
class_alias
(
FileBackendStoreOpHandle
::
class
,
'FileBackendStoreOpHandle'
);
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Nov 22, 01:57 (5 d, 10 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5f/f8/3c5cdbbf59ae90a1ac6453a69c35
Default Alt Text
FileBackendStoreOpHandle.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment