Update¶
-
class
OC\Encryption\Update¶ - update encrypted files, e.g. because a file was shared
Source: lib/private/Encryption/Update.php#39
Properties¶
-
protected static property
OC\Encryption\Update::$view¶ Source: lib/private/Encryption/Update.php#42 Type: \OC\Files\View
-
protected static property
OC\Encryption\Update::$util¶ Source: lib/private/Encryption/Update.php#45 Type: \OC\Encryption\Util
-
protected static property
OC\Encryption\Update::$mountManager¶ Source: lib/private/Encryption/Update.php#48 Type: \OC\Files\Mount\Manager
-
protected static property
OC\Encryption\Update::$encryptionManager¶ Source: lib/private/Encryption/Update.php#51 Type: \OC\Encryption\Manager
-
protected static property
OC\Encryption\Update::$uid¶ Source: lib/private/Encryption/Update.php#54 Type: string
-
protected static property
OC\Encryption\Update::$file¶ Source: lib/private/Encryption/Update.php#57 Type: \OC\Encryption\File
-
protected static property
OC\Encryption\Update::$logger¶ Source: lib/private/Encryption/Update.php#60 Type: \Psr\Log\LoggerInterface
Methods¶
-
public
OC\Encryption\Update::__construct($view, $util, $mountManager, $encryptionManager, $file, $logger, $uid)¶ Source: Parameters: - $uid (string)
- hook after file was shared
Source: Parameters: - $params (array)
- hook after file was unshared
Source: Parameters: - $params (array)
-
public
OC\Encryption\Update::postRestore($params)¶ - inform encryption module that a file was restored from the trash bin,e.g. to update the encryption keys
Source: Parameters: - $params (array)
-
public
OC\Encryption\Update::postRename($params)¶ - inform encryption module that a file was renamed,e.g. to update the encryption keys
Source: Parameters: - $params (array)
-
protected
OC\Encryption\Update::getOwnerPath($path)¶ - get owner and path relative to data/<owner>/files
Source: Parameters: - $path (string) path to file for current user
Returns: array [‘owner’ => $owner, ‘path’ => $path]
Throws: \InvalidArgumentException
-
public
OC\Encryption\Update::update($path)¶ - notify encryption module about added/removed users from a file/folder
Source: Parameters: - $path (string) relative to data/
Throws: