ObjectStoreStorage

class OC\Files\ObjectStore\ObjectStoreStorage
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#45
Parent:OC\Files\Storage\Common
Used traits:OC\Files\Storage\PolyFill\CopyDirectory

Properties

protected static property OC\Files\ObjectStore\ObjectStoreStorage::$objectStore
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#51
Type:\OCP\Files\ObjectStore\IObjectStore
protected static property OC\Files\ObjectStore\ObjectStoreStorage::$id
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#55
Type:string
protected static property OC\Files\ObjectStore\ObjectStoreStorage::$user
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#59
Type:\OC\User\User

Methods

public OC\Files\ObjectStore\ObjectStoreStorage::__construct($params)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#65
public OC\Files\ObjectStore\ObjectStoreStorage::mkdir($path)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#87
public OC\Files\ObjectStore\ObjectStoreStorage::getScanner($path="", $storage=null)
Object Stores use a NoopScanner because metadata is directly stored in
the file cache and cannot really scan the filesystem. The storage passed in is not used anywhere.
Source:

lib/private/Files/ObjectStore/ObjectStoreStorage.php#155

Parameters:
  • $path (string)
Returns:

\OC\Files\ObjectStore\NoopScanner

public OC\Files\ObjectStore\ObjectStoreStorage::getId()
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#165
public OC\Files\ObjectStore\ObjectStoreStorage::rmdir($path)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#169
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#202
public OC\Files\ObjectStore\ObjectStoreStorage::stat($path)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#228
public OC\Files\ObjectStore\ObjectStoreStorage::getPermissions($path)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#238
public OC\Files\ObjectStore\ObjectStoreStorage::getURN($fileId)
Override this method if you need a different unique resource identifier for your object storage implementation.
The default implementations just appends the fileId to ‘urn:oid:’. Make sure the URN is unique over all users.
You may need a mapping table to store your URN if it cannot be generated from the fileid.
Source:

lib/private/Files/ObjectStore/ObjectStoreStorage.php#256

Parameters:
  • $fileId (int) the fileid
Returns:

null | string the unified resource name used to identify the object

public OC\Files\ObjectStore\ObjectStoreStorage::opendir($path)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#263
public OC\Files\ObjectStore\ObjectStoreStorage::filetype($path)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#280
public OC\Files\ObjectStore\ObjectStoreStorage::fopen($path, $mode)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#293
public OC\Files\ObjectStore\ObjectStoreStorage::file_exists($path)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#361
public OC\Files\ObjectStore\ObjectStoreStorage::rename($source, $target)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#366
public OC\Files\ObjectStore\ObjectStoreStorage::getMimeType($path)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#375
public OC\Files\ObjectStore\ObjectStoreStorage::touch($path, $mtime=null)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#380
public OC\Files\ObjectStore\ObjectStoreStorage::writeBack($tmpFile, $path)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#423
public OC\Files\ObjectStore\ObjectStoreStorage::hasUpdated($path, $time)
external changes are not supported, exclusive access to the object storage is assumed
Source:

lib/private/Files/ObjectStore/ObjectStoreStorage.php#435

Parameters:
  • $path (string)
  • $time (int)
Returns:

bool

public OC\Files\ObjectStore\ObjectStoreStorage::needsPartFile()
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#439
public OC\Files\ObjectStore\ObjectStoreStorage::file_put_contents($path, $data)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#443
public OC\Files\ObjectStore\ObjectStoreStorage::writeStream($path, $stream, $size=null)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#450
public OC\Files\ObjectStore\ObjectStoreStorage::getObjectStore()
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#531
public OC\Files\ObjectStore\ObjectStoreStorage::copyFromStorage($sourceStorage, $sourceInternalPath, $targetInternalPath, $preserveMtime=false)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#535
public OC\Files\ObjectStore\ObjectStoreStorage::copy($path1, $path2)
Source:lib/private/Files/ObjectStore/ObjectStoreStorage.php#548