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:

lib/private/Encryption/Update.php#65

Parameters:
  • $uid (string)
public OC\Encryption\Update::postShared($params)
hook after file was shared
Source:

lib/private/Encryption/Update.php#88

Parameters:
  • $params (array)
public OC\Encryption\Update::postUnshared($params)
hook after file was unshared
Source:

lib/private/Encryption/Update.php#104

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:

lib/private/Encryption/Update.php#121

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:

lib/private/Encryption/Update.php#134

Parameters:
  • $params (array)
protected OC\Encryption\Update::getOwnerPath($path)
get owner and path relative to data/<owner>/files
Source:

lib/private/Encryption/Update.php#154

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:

lib/private/Encryption/Update.php#172

Parameters:
  • $path (string) relative to data/
Throws:

\OC\Encryption\Exceptions\ModuleDoesNotExistsException