IObjectStore¶
-
interface
OCP\Files\ObjectStore\IObjectStore¶ - Interface IObjectStore
Implemented by: OC\Files\ObjectStore\StorageObjectStoreOC\Files\ObjectStore\AzureOC\Files\ObjectStore\S3OC\Files\ObjectStore\SwiftSource: lib/public/Files/ObjectStore/IObjectStore.php#35
Methods¶
-
public
OCP\Files\ObjectStore\IObjectStore::getStorageId()¶ Source: lib/public/Files/ObjectStore/IObjectStore.php#41 Returns: string the container or bucket name where objects are stored Since: 7.0.0
-
public
OCP\Files\ObjectStore\IObjectStore::readObject($urn)¶ Source: Parameters: - $urn (string) the unified resource name used to identify the object
Returns: resource stream with the read data
Throws: \Exceptionwhen something goes wrong, message will be loggedThrows: \OCP\Files\NotFoundExceptionif file does not existThrows: \Exceptionwhen something goes wrong, message will be loggedThrows: \OCP\Files\NotFoundExceptionif file does not existSince: 7.0.0
-
public
OCP\Files\ObjectStore\IObjectStore::writeObject($urn, $stream, $mimetype=null)¶ Source: Parameters: - $urn (string) the unified resource name used to identify the object
- $stream (resource) stream with the data to write
- $mimetype (string | null) the mimetype to set for the remove object @since 22.0.0
Throws: \Exceptionwhen something goes wrong, message will be loggedSince: 7.0.0
-
public
OCP\Files\ObjectStore\IObjectStore::deleteObject($urn)¶ Source: Parameters: - $urn (string) the unified resource name used to identify the object
Returns: void
Throws: \Exceptionwhen something goes wrong, message will be loggedSince: 7.0.0
-
public
OCP\Files\ObjectStore\IObjectStore::objectExists($urn)¶ - Check if an object exists in the object store
Source: Parameters: - $urn (string)
Returns: bool
Since: 16.0.0
-
public
OCP\Files\ObjectStore\IObjectStore::copyObject($from, $to)¶ Source: Parameters: - $from (string) the unified resource name used to identify the source object
- $to (string) the unified resource name used to identify the target object
Returns: void
Since: 21.0.0