PermissionsMask

class OC\Files\Storage\Wrapper\PermissionsMask
Mask the permissions of a storage
This can be used to restrict update, create, delete and/or share permissions of a storage

Note that the read permissions can’t be masked
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#41
Parent:OC\Files\Storage\Wrapper\Wrapper

Properties

Methods

public OC\Files\Storage\Wrapper\PermissionsMask::__construct($arguments)
Source:

lib/private/Files/Storage/Wrapper/PermissionsMask.php#53

Parameters:
  • $arguments (array) [‘storage’ => $storage, ‘mask’ => $mask]

$storage: The storage the permissions mask should be applied on $mask: The permission bits that should be kept, a combination of the OCPConstant::PERMISSION_ constants

public OC\Files\Storage\Wrapper\PermissionsMask::isUpdatable($path)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#62
public OC\Files\Storage\Wrapper\PermissionsMask::isCreatable($path)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#66
public OC\Files\Storage\Wrapper\PermissionsMask::isDeletable($path)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#70
public OC\Files\Storage\Wrapper\PermissionsMask::isSharable($path)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#74
public OC\Files\Storage\Wrapper\PermissionsMask::getPermissions($path)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#78
public OC\Files\Storage\Wrapper\PermissionsMask::rename($path1, $path2)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#82
public OC\Files\Storage\Wrapper\PermissionsMask::copy($path1, $path2)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#90
public OC\Files\Storage\Wrapper\PermissionsMask::touch($path, $mtime=null)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#94
public OC\Files\Storage\Wrapper\PermissionsMask::mkdir($path)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#99
public OC\Files\Storage\Wrapper\PermissionsMask::rmdir($path)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#103
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#107
public OC\Files\Storage\Wrapper\PermissionsMask::file_put_contents($path, $data)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#111
public OC\Files\Storage\Wrapper\PermissionsMask::fopen($path, $mode)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#116
public OC\Files\Storage\Wrapper\PermissionsMask::getCache($path="", $storage=null)
get a cache instance for the storage
Source:

lib/private/Files/Storage/Wrapper/PermissionsMask.php#132

Parameters:
  • $path (string)
Returns:

\OC\Files\Cache\Cache

public OC\Files\Storage\Wrapper\PermissionsMask::getMetaData($path)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#140
public OC\Files\Storage\Wrapper\PermissionsMask::getScanner($path="", $storage=null)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#150
public OC\Files\Storage\Wrapper\PermissionsMask::getDirectoryContent($directory)
Source:lib/private/Files/Storage/Wrapper/PermissionsMask.php#157